%PDF- %PDF-
Direktori : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/ |
Current File : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/content.php |
<?php /** * The default template to display the content of the single post, page or attachment * * Used for index/archive/search. * * @package WordPress * @subpackage ALHAMBRA * @since ALHAMBRA 1.0 */ $alhambra_seo = alhambra_is_on(alhambra_get_theme_option('seo_snippets')); ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'post_item_single post_type_'.esc_attr(get_post_type()) . ' post_format_'.esc_attr(str_replace('post-format-', '', get_post_format())) ); if ($alhambra_seo) { ?> itemscope="itemscope" itemprop="mainEntityOfPage" itemtype="//schema.org/<?php echo esc_attr(alhambra_get_markup_schema()); ?>" itemid="<?php echo esc_url(get_the_permalink()); ?>" content="<?php the_title_attribute(); ?>"<?php } ?>><?php do_action('alhambra_action_before_post_data'); // Structured data snippets if ($alhambra_seo) get_template_part('templates/seo'); // Featured image if ( alhambra_is_off(alhambra_get_theme_option('hide_featured_on_single')) && !alhambra_sc_layouts_showed('featured') && strpos(get_the_content(), '[trx_widget_banner]')===false) { do_action('alhambra_action_before_post_featured'); alhambra_show_post_featured(); do_action('alhambra_action_after_post_featured'); } else if (has_post_thumbnail()) { ?><meta itemprop="image" "//schema.org/ImageObject" content="<?php echo esc_url(wp_get_attachment_url(get_post_thumbnail_id())); ?>"><?php } // Title and post meta if ( (!alhambra_sc_layouts_showed('title') || !alhambra_sc_layouts_showed('postmeta')) && !in_array(get_post_format(), array('link', 'aside', 'status', 'quote')) ) { do_action('alhambra_action_before_post_title'); ?> <div class="post_header entry-header"> <?php // Post title if (!alhambra_sc_layouts_showed('title')) { the_title( '<h3 class="post_title entry-title"'.($alhambra_seo ? ' itemprop="headline"' : '').'>', '</h3>' ); } // Post meta if (!alhambra_sc_layouts_showed('postmeta') && alhambra_is_on(alhambra_get_theme_option('show_post_meta'))) { alhambra_show_post_meta(apply_filters('alhambra_filter_post_meta_args', array( 'components' => 'categories,date,counters,edit', 'counters' => 'comments', 'seo' => alhambra_is_on(alhambra_get_theme_option('seo_snippets')) ), 'single', 1) ); } ?> </div><!-- .post_header --> <?php do_action('alhambra_action_after_post_title'); } do_action('alhambra_action_before_post_content'); // Post content ?> <div class="post_content entry-content" itemprop="articleBody"> <?php the_content( ); do_action('alhambra_action_before_post_pagination'); wp_link_pages( array( 'before' => '<div class="page_links"><span class="page_links_title">' . esc_html__( 'Pages:', 'alhambra' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'alhambra' ) . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>', ) ); // Taxonomies and share if ( is_single() && !is_attachment() ) { do_action('alhambra_action_before_post_meta'); ?><div class="post_meta post_meta_single"><?php // Post taxonomies the_tags( '<span class="post_meta_item post_tags">', ' ', '</span>' ); // Share if (alhambra_is_on(alhambra_get_theme_option('show_share_links'))) { alhambra_show_share_links(array( 'type' => 'block', 'caption' => '', 'before' => '<span class="post_meta_item post_share">', 'after' => '</span>' )); } ?></div><?php do_action('alhambra_action_after_post_meta'); } ?> </div><!-- .entry-content --> <?php do_action('alhambra_action_after_post_content'); // Author bio. if ( alhambra_get_theme_option('show_author_info')==1 && is_single() && !is_attachment() && get_the_author_meta( 'description' ) ) { do_action('alhambra_action_before_post_author'); get_template_part( 'templates/author-bio' ); do_action('alhambra_action_after_post_author'); } do_action('alhambra_action_after_post_data'); ?> </article>