Skip to content

Commit

Permalink
Modififaciones en header.php y footer.php. Ahora es necesario añadir …
Browse files Browse the repository at this point in the history
…un div de clase row al inicio de cada template. Faltan modificar algunas plantillas. Esto se ha hecho para darle más posiblidades al renderizado de las páginas.
  • Loading branch information
evoratec committed Jun 12, 2012
1 parent 453c96a commit 44345bb
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 69 deletions.
9 changes: 4 additions & 5 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
</div><!-- Main Row -->
</div><!-- Row Contenido -->

</div><!-- Row Content-->

<!-- Footer -->

<div id ="row-footer">
Expand All @@ -10,13 +9,13 @@
<?php
evora_footer();
?>
<div class="twelve columns"><hr>
<hr>
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Sidebar')) : ?>
<h4>Hey! You!</h4>
<p>You should like, so test out this dynamic footer sidebar. Check it out in Appearance > Widgets!</p>
<?php endif; ?>

</div>



</footer>
Expand Down
22 changes: 10 additions & 12 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// directorio del tema. Ruta completa. Nos sirve para incluir las diferentes librerias
define(TEMPLATE_DIR,get_bloginfo('template_directory'));

define(THEMEEVORA, dirname(__FILE__));
require_once( THEMEEVORA .'/less/lessc.inc.php');
require_once (THEMEEVORA . '/less/evowpfless.php');
Expand All @@ -15,7 +14,7 @@
// Habilita los shortcodes en los widgets de texto
add_filter('widget_text', 'do_shortcode');

$dirtemplate =get_bloginfo('template_directory');
$dirtemplate = get_bloginfo('template_directory');



Expand Down Expand Up @@ -300,6 +299,7 @@ function menu_principal(){
array(
// - Header Navigation
'menu_principal' => 'Header Navigation',
'menu_mobil' => 'Navigation Mobil',
)
);
}
Expand All @@ -319,15 +319,6 @@ function menu_principal(){
'after_title' => '</h4>',
));

register_sidebar(array(
'name'=> 'Sidebar Menú',
'id' => 'sb_menu_checkout',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));

// Footer Sidebar

register_sidebar(array(
Expand Down Expand Up @@ -749,6 +740,13 @@ function evora_add_footer(){

echo '</div>';
}
add_action('evora_footer','evora_add_footer')
add_action('evora_footer','evora_add_footer');

function evowpf_limit_words($string, $word_limit)
{
$words = explode(' ', $string, ($word_limit + 1));
if(count($words) > $word_limit)
array_pop($words);
return implode(' ', $words);
}
?>
6 changes: 1 addition & 5 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,4 @@
evoratec_before_main();
?>
<!-- Main Row -->
<div id="row-content">
<div class="row content">



<div id="row-content">
8 changes: 4 additions & 4 deletions javascripts/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ jQuery(function() {


jQuery(".nav-js").click(function() {
jQuery('#menu-header').slideToggle();
jQuery('#menu-header').slideToggle('fast');
return false;

});



});

4 changes: 4 additions & 0 deletions loop-page.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<div class="row">


<div class="eight columns">

<!-- Start the Loop -->
Expand Down Expand Up @@ -28,4 +31,5 @@
<!--End the loop -->
<?php endif; ?>

</div>
</div>
8 changes: 4 additions & 4 deletions page-100w.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*
* Template Name: Page 100W
*/
* Template Name: Page 100W
*/
?>
<?php get_header(); ?>

<div class="row">
<div class="page tweelve columns">

<!-- Start the Loop -->
Expand Down Expand Up @@ -35,5 +35,5 @@
<?php endif; ?>

</div>

</div>
<?php get_footer(); ?>
4 changes: 2 additions & 2 deletions page.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php get_header(); ?>

<div class="row">
<?php get_template_part( 'loop', 'page' ); ?>

<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
34 changes: 0 additions & 34 deletions shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,4 @@

// Shortcodes

// [line]
function line_shortcode( $atts ) {
extract( shortcode_atts( array(
'sample' => false,
), $atts ) );
if ($sample) {
$html = '[line]';
return '<span class="sc_sample"><h5>Shortcode:</h5>' . $html . '</span><br />';
}
else {
return '<span class="devider"></span>';
}
}
add_shortcode('line', 'line_shortcode');

// [column]
function column_shortcode( $atts, $content = null ) {
extract( shortcode_atts( array(
'size' => '2x1',
'last' => false,
'title' => '',
'sample' => false,
), $atts ) );
$html = '<div style="margin-left:0px; float:left;" class="' . $size . ' ';
if ($last) $html .= ' last';
$html .= '">';
if ($title) $html .= '<h3>' . $title . '</h3>';
$html .= do_shortcode($content) . '</div>';

return $html;

}
add_shortcode('column', 'column_shortcode');

?>
5 changes: 2 additions & 3 deletions single.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php get_header(); ?>

<div class="row">
<?php get_template_part( 'loop', 'single' ); ?>

<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>

0 comments on commit 44345bb

Please sign in to comment.