>
endif; ?>
Wordpress öne çıkan görselde orjinal resmi kullanmak mümkün mü? |
15 Mesajlar | 1.821 Okunma |
add_image_size( 'anasayfa-resim', 300, 150, true );
'as-resim' ) );
} else { ?>
/**
* The main template file
*
* @package BoomBox_Theme
*/
// Prevent direct script access.
if ( ! defined( 'ABSPATH' ) ) {
die( 'No direct script access allowed' );
}
get_header();
$boombox_index_settings = boombox_get_index_page_settings(); ?>
>
endif; ?>
/**
* The template for displaying the single post
*
* @package BoomBox_Theme
*/
// Prevent direct script access.
if (!defined('ABSPATH')) {
die('No direct script access allowed');
}
get_header();
$boombox_featured_image_size = 'boombox_image768';
$boombox_single_options = boombox_get_single_page_settings($boombox_featured_image_size);
$boombox_featured_video = $boombox_single_options['featured_video'];
$boombox_template_options = $boombox_single_options['template_options'];
$boombox_post_template = $boombox_single_options['post_template'];
$boombox_is_nsfw_post = $boombox_single_options['is_nsfw'];
$boombox_article_classes = $boombox_single_options['classes'];
$boombox_disable_strip = $boombox_single_options['disable_strip'];
$boombox_enable_sidebar = $boombox_single_options['enable_sidebar'];
if (!$boombox_disable_strip):
get_template_part('template-parts/featured', 'strip');
endif;
boombox_the_advertisement('boombox-single-before-content', 'large');
if ('full-width' == $boombox_post_template && have_posts()): the_post();
$boombox_fimage_style = '';
if ($boombox_template_options['media'] && has_post_thumbnail() && boombox_show_thumbail() ) :
$boombox_thumbnail_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
$boombox_fimage_style = isset($boombox_thumbnail_url[0]) ? 'style="background-image: url(\'' . esc_url($boombox_thumbnail_url[0]) . '\')"' : '';
endif; ?>
>
rewind_posts();
endif; ?>
get_template_part('template-parts/single/content');
// If comments are open or we have at least one comment, load up the comment template.
if (comments_open() || get_comments_number()) :
comments_template();
endif;
do_action( 'boombox_single_before_navigation' );
boombox_the_advertisement('boombox-single-before-navigation', 'large');
if ($boombox_template_options['navigation']) :
get_template_part('template-parts/single/navigation');
endif;
if ($boombox_template_options['floating_navbar']) :
get_template_part( 'template-parts/single/fixed', 'header' );
endif;
if( $boombox_template_options['side_navigation'] ) :
get_template_part( 'template-parts/single/fixed', 'navigation' );
endif;
endif; ?>
get_sidebar();
endif; ?>
$boombox_thumbnail_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');