<?php /* Template Name: sayfa1 */ global $wpc_option; $page_layout = get_post_meta( $post->ID, '_wpc_page_layout', true ); $page_breadcrumb = get_post_meta( $post->ID, '_wpc_hide_breadcrumb', true ); $page_comment = wpcharming_option('page_comments'); wpcharming_get_header() ?> <?php global $post; wpcharming_get_page_header($post->ID); wpcharming_get_page_title($post->ID); ?> <?php if ( $page_breadcrumb !== 'on' ) wpcharming_breadcrumb(); ?> <div id="content-wrap" class="<?php echo ( $page_layout == 'full-screen' ) ? '' : 'container'; ?> <?php echo wpcharming_get_layout_class(); ?>"> <div id="primary" class="<?php echo ( $page_layout == 'full-screen' ) ? 'content-area-full' : 'content-area'; ?>"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <div class="row_inner row_center_content clearfix"> <div class="wpb_column vc_column_container vc_col-sm-8"> <?php the_content(); ?> </div> <div class="wpb_column vc_column_container vc_col-sm-2"> <?php $page_s = explode("</li>",wp_list_pages('child_of=1083&title_li=&echo=0&depth=1&style=none')); $page_n = count($page_s) - 1; $page_col = round($page_n / 2); for ($i=0;$i<$page_n;$i++){ if ($i<$page_col){ $page_left = $page_left.''.$page_s[$i].'</li>'; } elseif ($i>=$page_col){ $page_right = $page_right.''.$page_s[$i].'</li>'; } } ?> <ul class="yan-menu"> <?php echo $page_left; ?> <?php echo $page_right; ?> </ul> </div> </div> </div><!-- .entry-content --> </article><!-- #post-## --> <?php // 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; ?> <?php endwhile; // end of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php echo wpcharming_get_sidebar(); ?> </div> <!-- /#content-wrap --> <?php get_footer(); ?>