This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="banner" class="clearfix"> | |
| <div class="container_12 clearfix"> | |
| <div class="grid_12" id="logotipo"> | |
| <h1><a href="<?php bloginfo("home"); ?>"><img src="<?php echo get_bloginfo('template_directory'). "/images/logo.jpg"; ?>" alt="<?php bloginfo('name'); ?>" /></a></h1> | |
| </div> | |
| <div class="grid_4" id="slogan"> | |
| <h2><span>Una forma de comprar mejor Sin membresia</span></h2> | |
| </div><!--//Slogan--> | |
| <div class="grid_8 menu-container"> | |
| <?php wp_nav_menu( array( 'menu_class' => 'sf-menu clean clearfix', 'theme_location' => 'primary', 'fallback_cb' => 'cudazi_fallback_menu' ) ); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (is_category()) { | |
| $this_category = get_category($cat); | |
| if (get_category_children($this_category->cat_ID) != "") { | |
| echo "<h1>Subcategories</h1>"; | |
| echo "<ul>"; | |
| wp_list_categories('orderby=id&show_count=0&title_li= | |
| &use_desc_for_title=1&child_of='.$this_category->cat_ID); | |
| echo "</ul>"; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php wp_nav_menu( array('menu' => 'nombre_del_menu','menu_class' => 'nombre_de_ la_clase' ) ); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if( is_search() ) : | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| query_posts("s=$s&paged=$paged&cat=1,2,3"); | |
| endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (in_category(array( '1' ))) {include (TEMPLATEPATH . '/single-recetas.php'); | |
| } | |
| if (in_category(array( '4', '5' ))) {include (TEMPLATEPATH . '/single-especiales.php'); | |
| } | |
| else { include (TEMPLATEPATH . '/single-original.php'); | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| global $post; | |
| $tmp_post = $post; | |
| $args = array( 'numberposts' => 8, 'offset'=> 0, 'category' => 1, 'orderby'=> 'rand' ); | |
| $myposts = get_posts( $args ); | |
| foreach( $myposts as $post ) : setup_postdata($post); ?> | |
| <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> | |
| <?php endforeach; ?> | |
| <?php $post = $tmp_post; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Es necesario contar con la librería básica de jQuery | |
| <script type='text/javascript'> | |
| $(document).ready(function(){ | |
| $("#el-platillo img.a").hover( //Aquí va la clase del elemento que se quiere afectar | |
| function() { | |
| $(this).stop().animate({"opacity": ".5"}, "slow"); // 0 es totalmente transparente .5 es el 50% | |
| }, | |
| function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="social-especiales" style="width:235px;"> | |
| <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show-faces=true&width=350&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:235px; height:60px"></iframe> | |
| <h3 style="font-size:16px; color:#333333;">Recomienda esta ubicación:</h3> | |
| <div class="send-FB" style="float:left; padding-right:10px;"> | |
| <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:send href=<?php echo urlencode(get_permalink($post->ID)); ?> font="arial"></fb:send></div> | |
| <div class="fb_share" style="float:left; "><a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php" >Recomendar</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div> | |
| <div style="clear:both;"></div><div id="twitter" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php // Custon login panel to make the site your own. | |
| function custom_login() { | |
| echo '<link rel="stylesheet" type="text/css" href="http://clientes.ldmedia.com.mx/wp-content/themes/GTD/style/css/login.css"" />'; | |
| } | |
| add_action('login_head', 'custom_login'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type='text/javascript'> | |
| $(document).ready(function(){ | |
| $("img.img-transp").hover( | |
| function() { | |
| $(this).stop().animate({"opacity": ".5"}, "slow"); | |
| }, | |
| function() { | |
| $(this).stop().animate({"opacity": "1"}, "slow"); | |
| }); |
OlderNewer