diecreative
Eta
Diseñador
Verificación en dos pasos activada
Verificado por Whatsapp
/* sets predefined Post Thumbnail dimensions */
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
//blog page template
add_image_size( 'ptentry-thumb', 184, 184, true );
//gallery page template
add_image_size( 'ptgallery-thumb', 207, 136, true );
//featured image size
add_image_size( 'featured-thumb', 1400, 300, true );
//recent category image size
add_image_size( 'recentcat-thumb', 239, 133, true );
//small image size
add_image_size( 'small-thumb', 74, 74, true );
//index,category image size
add_image_size( 'entry', get_option($shortname.'_thumbnail_width_usual'), get_option($shortname.'_thumbnail_height_usual'), true );
//page image size
add_image_size( 'pageimage', get_option($shortname.'_thumbnail_width_pages'), get_option($shortname.'_thumbnail_height_pages'), true );
//single post image size
add_image_size( 'postimage', get_option($shortname.'_thumbnail_width_posts'), get_option($shortname.'_thumbnail_height_posts'), true );
//portfolio page template
add_image_size( 'ptportfolio-thumb', 260, 170, true );
add_image_size( 'ptportfolio-thumb2', 260, 315, true );
add_image_size( 'ptportfolio-thumb3', 140, 94, true );
add_image_size( 'ptportfolio-thumb4', 140, 170, true );
add_image_size( 'ptportfolio-thumb5', 430, 283, true );
add_image_size( 'ptportfolio-thumb6', 430, 860, true );
};
/* --------------------------------------------- */
?>
<?php
/* sets predefined Post Thumbnail dimensions */
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
//featured image size
add_image_size( 'featured-thumb', 1400, 300, true );
//recent category image size
add_image_size( 'recentcat-thumb', 239, 133, true );
//small image size
add_image_size( 'small-thumb', 74, 74, true );
//index,category image size
add_image_size( 'entry', get_option($shortname.'_thumbnail_width_usual'), get_option($shortname.'_thumbnail_height_usual'), true );
//page image size
add_image_size( 'pageimage', get_option($shortname.'_thumbnail_width_pages'), get_option($shortname.'_thumbnail_height_pages'), true );
//single post image size
add_image_size( 'postimage', get_option($shortname.'_thumbnail_width_posts'), get_option($shortname.'_thumbnail_height_posts'), true );
};
/* --------------------------------------------- */
?>
<!-- Start Featured -->
<div id="featured">
<?php global $ids;
$ids = array();
$arr = array();
$i=1;
$featured_cat = get_option('thesource_feat_cat');
$featured_num = get_option('thesource_featured_num');
if (get_option('thesource_use_pages') == 'false') query_posts("showposts=$featured_num&cat=".get_catId($featured_cat));
else {
global $pages_number;
if (get_option('thesource_feat_pages') <> '') $featured_num = count(get_option('thesource_feat_pages'));
else $featured_num = $pages_number;
query_posts(array
('post_type' => 'page',
'orderby' => 'menu_order',
'order' => 'ASC',
'post__in' => get_option('thesource_feat_pages'),
'showposts' => $featured_num
));
};
while (have_posts()) : the_post(); ?>
<?php $bgColor = get_post_meta($post->ID, 'Color',true);
if ($bgColor == '') $bgColor = 'ffffff'; ?>
<?php $width = 1400;
$height = 300;
$classtext = '';
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,true);
$thumb = $thumbnail["thumb"]; ?>
<div class="slide" style="background: #<?php echo($bgColor); ?> url('<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, '', true, true); ?>') top center no-repeat;">
<div class="container clearfix">
<div class="description">
<h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="tagline"><?php _e('Posted by','TheSource') ?> <?php the_author_posts_link(); ?> <?php _e('on','TheSource') ?> <?php the_time(get_option('thesource_date_format')) ?></p>
<p><?php truncate_post(290); ?></p>
<a href="<?php the_permalink(); ?>" class="readmore"><span><?php _e('Read More','TheSource'); ?></span></a>
</div> <!-- end .description -->
</div> <!-- end .container -->
<div class="top-overlay"></div>
<div class="overlay"></div>
</div> <!-- end .slide -->
<?php $i++;
$ids[]= $post->ID;
endwhile; wp_reset_query(); ?>
</div> <!-- end #featured -->
<!-- End Featured -->
<div id="featured-control">
<div class="container">
<a id="prevlink" href="#"><?php _e('Previous','TheSource'); ?></a>
<a id="nextlink" href="#"><?php _e('Next','TheSource'); ?></a>
</div>
</div> <!-- end #featured-control -->
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?