Ver Mensaje Individual
  #22 (permalink)  
Antiguo 19/05/2011, 14:40
ixac
 
Fecha de Ingreso: octubre-2008
Mensajes: 48
Antigüedad: 15 años, 7 meses
Puntos: 5
Respuesta: Colocar "balazo" al título (periódico digital)

wpzoom-functions.php

[URL="http://www.tuentorno.mx/00/wpzoom-functions.txt"]DESCARGAR AQUÍ[/URL]... es mucho código y no permite postearlo.

wpzoom_featured_categories.php

Código PHP:
          <div id="featCategories">

          <?php
          $cc 
0;
          
$c 10;
          
          while (
$cc $c)
          {
          
          
$cc++;
          
$category "wpzoom_featured_big_category_" "$cc";
          
          if ($
$category != 0)
          {
          
          
$cat get_category($$category,false);
          
          
$catlink get_category_link($$category);
          
            
    
$breaking_cat "cat=".$$category;  // Breaking tag slug
    
    
wp_reset_query();
    
    
query_posts("showposts=$wpzoom_featured_big_categories_posts&$breaking_cat&order_by=post_date&order=DESC");

    
?>

            <div class="category<?php if (!($cc &#37; 2)) {echo ' category-last';} ?>">
            
              <div class="title">
                <a href="<?php echo get_category_feed_link($$category$feed ); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/icon_rss.png" alt="" /></a>
                <h3><a href="<?php echo"$catlink";?>"><?php echo"$cat->name";?></a></h3>
              </div><!-- end .title -->
              
              <div class="box">
              
<?php if ( have_posts() ) : ?>
            <ul class="posts">
<?php    
$x 
0;
while (
have_posts()) : the_post(); 
$x++;
if (
$x == 1)

?>
                <li class="first">
                  <?php unset($img);
if ( 
current_theme_supports'post-thumbnails' ) && has_post_thumbnail() ) {
                        
$thumbURL wp_get_attachment_image_srcget_post_thumbnail_id($post->ID), '' );
            
$img $thumbURL[0]; 
                        }

            else {
                unset(
$img);
                if (
$wpzoom_cf_use == 'Yes')
                {
                  
$img get_post_meta($post->ID$wpzoom_cf_phototrue);
                }
                else
                {
                  if (!
$img)
                  {
                    
$img catch_that_image($post->ID);
                  }
                }
              }

         if (
$img){ 
         
$img wpzoom_wpmu($img);
         
?>
                  <div class="cover"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;h=160&amp;w=280&amp;zc=1" width="280" height="160" alt="<?php the_title(); ?>" /></a></div><?php ?>
                  <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                  <p><?php the_content_limit(140''); ?></p>
                </li>
<?php // if $x == 1
else{ ?>
                <li><h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2></li><?php // else ?>
<?php 
endwhile; //  ?>
            </ul>
  <?php else : ?>
  
  <p class="title"><?php _e('There are no posts in this category''wpzoom');?></p>
  
  <?php endif; ?>
              
              <div class="cleaner">&nbsp;</div>
              
              </div><!-- end .box -->
            
            </div><!-- end .category -->

      <?php // if category is set
          
// while categories    
      
?>
            
            <div class="cleaner">&nbsp;</div>
          
          </div><!-- end #featCategories -->
          
          <div class="cleaner">&nbsp;</div>
          <?php wp_reset_query(); ?>
wpzoom_featured_posts.php

Código PHP:
<?php
          $args 
= array('showposts' => $wpzoom_featured_posts_posts'orderby' => 'date''order' => 'DESC');

          
$featType $wpzoom_featured_type;
          
          if (
$featType == 'Tag')
          {
            
$args['tag'] = "$wpzoom_featured_slug";  // Breaking tag slug
          
}
          elseif (
$featType == 'Category')
          {
            
$args['cat'] = "$wpzoom_featured_slug";  // Breaking tag slug
          
}
?>

          <div id="featPosts">
          
            <div id="postsBig">
            <div class="box">
              <div class="container">
            
              <?php 
              query_posts
($args);
              
$i 0;
              if ( 
have_posts() ) : ?>
<?php $AE 
= new AutoEmbed(); // loading the AutoEmbed PHP Class ?>
              <ul class="posts slides">
                <?php while (have_posts()) : the_post(); update_post_caches($posts); 
                unset(
$videocode);
                
$videocode get_post_meta($post->ID'wpzoom_post_embed_code'true);
                
?>
                <li class="slide">
<?php
            
if ($videocode && $AE->parseUrl($videocode)) {
                
$AE->setParam('wmode','transparent');
                
$AE->setParam('autoplay','false');
                
$AE->setHeight(350);
                
$AE->setWidth(600);

                
?><div class="cover"><?php echo $AE->getEmbedCode(); ?></div><?php 
            
} else {
            
?>
                  <?php unset($img);
if ( 
current_theme_supports'post-thumbnails' ) && has_post_thumbnail() ) {
                        
$thumbURL wp_get_attachment_image_srcget_post_thumbnail_id($post->ID), '' );
            
$img $thumbURL[0]; 
                        }

            else {
                unset(
$img);
                if (
$wpzoom_cf_use == 'Yes')
                {
                  
$img get_post_meta($post->ID$wpzoom_cf_phototrue);
                }
                else
                {
                  if (!
$img)
                  {
                    
$img catch_that_image($post->ID);
                  }
                }
              }

         if (
$img){ 
         
$img wpzoom_wpmu($img);
         
?>
        <div class="cover"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;h=300&amp;w=600&amp;zc=1" alt="<?php the_title(); ?>" width="600" height="300" /></a></div>
        <?php // if an image exists
        
// if a video does not exist ?>
                  <div class="postcontent">
                    <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                    <div class="postmetadata">
                      <ul>
                        <li class="calendar"><?php the_time("$dateformat"); ?></li>
                        <li class="author"><?php _e('By''wpzoom');?> <?php the_author_posts_link(); ?></li>
                        <li class="category"><?php the_category(', '); ?></li>
                        <li class="comments"><a href="<?php the_permalink() ?>#commentspost" title="Jump to the comments"><?php comments_number(__('no comments''wpzoom'),__('1 comment''wpzoom'),__('% comments''wpzoom')); ?></a></li>
                      </ul>
                    </div>
                    <?php the_excerpt(); ?>
                  </div>
                  <div class="cleaner">&nbsp;</div>
                </li><?php endwhile; ?>
              </ul><?php endif; ?>
              <div class="cleaner">&nbsp;</div>
              </div><!-- end .container -->
            </div><!-- end .box -->
            </div><!-- end #postsBig -->
            
            <div id="postsSmall">
            <div class="box box-nopadd">
            
              <?php 
              query_posts
($args);
              
$i 0;
              if ( 
have_posts() ) : ?>
              <ul class="posts pagination">
                <?php while (have_posts()) : the_post(); update_post_caches($posts); ?>
                <li><a href="#" rel="nofollow">
                  <?php unset($img);
if ( 
current_theme_supports'post-thumbnails' ) && has_post_thumbnail() ) {
                        
$thumbURL wp_get_attachment_image_srcget_post_thumbnail_id($post->ID), '' );
            
$img $thumbURL[0]; 
                        }

            else {
                unset(
$img);
                if (
$wpzoom_cf_use == 'Yes')
                {
                  
$img get_post_meta($post->ID$wpzoom_cf_phototrue);
                }
                else
                {
                  if (!
$img)
                  {
                    
$img catch_that_image($post->ID);
                  }
                }
              }

         if (
$img){ 
         
$img wpzoom_wpmu($img);
         
?>
        <div class="cover"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;h=30&amp;w=45&amp;zc=1" height="30" width="45" alt="<?php the_title(); ?>" /></div><?php ?>
                  <div class="postcontent">
                    <h2><?php the_title(); ?></h2>
                    <p><?php the_content_limit('80'); ?></p>
                  </div>
                  <div class="cleaner">&nbsp;</div>
                </a></li><?php endwhile; ?>
                <div class="cleaner">&nbsp;</div>
              </ul><?php endif; ?>
              <div class="cleaner">&nbsp;</div>
            </div><!-- end .box -->
            </div><!-- end #postsSmall -->
          
          <div class="cleaner">&nbsp;</div>
          
          </div><!-- end #featPosts -->
          <?php wp_reset_query(); ?>

<script type="text/javascript" charset="utf-8">
jQuery(document).ready(
function($)
{
        $('#featPosts').loopedSlider({
            autoHeight: true,
            containerClick: false,
            slidespeed: 500,
            autoStart: <?php echo $wpzoom_featured_posts_autoplay?>
        });
    });
</script>