Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web432/html/wp-content/themes/touchm/ |
Current File : //var/www/web432/html/wp-content/themes/touchm/single.php |
<?php /** * The Template for displaying all single posts. */ get_header(); $al_options = get_option('al_general_settings'); $breadcrumbs = $al_options['al_show_breadcrumbs']; $titles = $al_options['al_show_page_titles']; $id = get_page_ID_by_page_template('blog-template.php'); $custom = get_post_custom($id); $layout = isset ($custom['_page_layout']) ? $custom['_page_layout'][0] : '1'; $name = get_page_name_by_ID($id); ?> <div class="container region3wrap"> <?php if($breadcrumbs):?> <div class="row content_top"> <div class="nine columns"> <?php if(class_exists('the_breadcrumb')){ $albc = new the_breadcrumb; } ?> </div> <div class="three columns"> <div class="row"> <div class="twelve columns"> <?php get_search_form(); ?> </div> </div> </div> </div> <?php endif ?> </div> <div class="container region4wrap"> <div class="row maincontent"> <?php if ($titles == 1):?> <div class="twelve columns"> <div class="page_title"> <div class="row"> <div class="twelve columns"> <h1> <?php $headline = get_post_meta($post->ID, "_headline", $single = false); if(!empty($headline[0]) ){echo $headline[0];} else{echo get_the_title();} ?> </h1> </div> </div> </div> </div> <?php endif?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php if ($layout == '3'):?> <div class="four columns sidebar-left"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Sidebar") ) : ?> <?php endif;?></div> <?php endif?> <div class="<?php echo $layout == '1' ? 'twelve' : 'eight'?> columns"> <article class="post-block row" id="post-<?php the_ID();?>"> <div class="twelve columns"> <div class="article_meta"> <ul class="link-list"> <?php if($al_options['al_blog_show_date']): ?> <li class="post-date"><span class="icon-calendar"></span><time datetime="<?php echo get_the_time('Y-m-d'); ?>"><?php echo get_the_time('d. M Y'); ?></time></li> <?php endif?> <!-- Show post author if set from admin panel --> <?php if($al_options['al_blog_show_author']): ?> <li class="post-author"> <span class="icon-user"></span> <?php echo get_the_author_link(); ?> </li> <?php endif?> <!-- Show categories if set from admin panel --> <?php if($al_options['al_blog_show_cats']): ?> <?php if ( count( get_the_category() ) ) : ?> <?php $category = get_the_category(); if($category[0]):?> <li class="post-categories"> <span class="icon-tags"></span> <a href="<?php echo get_category_link($category[0]->term_id )?>"><?php echo $category[0]->cat_name?></a> </li> <?php endif?> <?php endif; ?> <?php endif?> <!-- Show comments if set from admin panel --> <?php if( 'open' == $post->comment_status && $al_options['al_blog_show_comments']) : ?> <li class="post-comments"> <span class="icon-comments"></span> <?php comments_popup_link( __( '0 Comments', 'TouchM' ), __( '1 Comment', 'TouchM' ), __( '% Comments', 'TouchM' )); ?> </li> <?php endif?> </ul> </div> </div> <div class="twelve columns"> <div class="article_content"> <?php the_content() ?> <?php if($al_options['al_blog_show_tags']) :?> <?php $tags_list = get_the_tag_list( '', '', '' ); if ( $tags_list ) : ?> <div class="tagcloud single-page"> <div class="wp-tag-cloud single-page"><p class="cloud-caption"><?php _e( 'Tags:', 'RiverS' );?></p><?php printf( __( '%s', 'RiverS' ), $tags_list ); ?></div> </div> <?php endif; ?> <?php endif?> </div> </div> </article> <?php if($al_options['al_blog_author_bio']): ?> <h3><?php _e('About The Author', 'TouchM')?></h3> <div class="about-author"> <div class="row"> <div class="two columns mobile-one"> <img src="<?php echo get_template_directory_uri()?>/images/icons/avatar-big.png" alt="Avatar" width="70" height="70" /> </div> <div class="ten columns mobile-three"> <h5><?php echo get_the_author_meta("display_name"); ?> / <span class="color"><?php echo get_the_author_meta("user_url"); ?></span></h5> <p><?php echo get_the_author_meta("description"); ?></p> </div> <div class="clear"></div> </div> </div> <?php endif?> <?php if( 'open' == $post->comment_status):?> <div class="twelve columns comments"> <?php comments_template( '', true );?> <?php $test = false; if ($test) {comment_form(); wp_link_pages( $args );} ?> </div> <?php endif ?> </div> <?php if ($layout == '2'):?> <div class="four columns sidebar-right"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Sidebar") ) : ?> <?php endif;?></div> <?php endif?> <?php endwhile; ?> <div class="clear"></div> </div> </div> <?php get_footer(); ?>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare