-
-
Save isabelc/4bfffbff0a1617d98489 to your computer and use it in GitHub Desktop.
Docs single tempate for Theron theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Page with No sidebar | |
*/ | |
?> | |
<?php get_header(); ?> | |
<!--Content--> | |
<div id="content"> | |
<div class="single_wrap"> | |
<div class="single_post"> | |
<?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?> | |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | |
<div class="post_content"> | |
<h1 class="postitle"><?php the_title(); ?></h1> | |
<!-- Docs top meta --> | |
<?php $Isa_Organized_Docs->updated_on( 'above' ); ?> | |
<div class="single_metainfo"><?php edit_post_link(); ?></div> | |
<!-- Added id="docs-content" to the following div so that it will get the proper styling. --> | |
<div id="docs-content" class="thn_post_wrap"> | |
<!-- Begin Docs Menu Bar --> | |
<?php | |
// Docs Menu Bar | |
global $Isa_Organized_Docs; | |
echo $Isa_Organized_Docs->organized_docs_single_section_heading(); | |
echo $Isa_Organized_Docs->organized_docs_content_nav(); | |
wp_enqueue_style('organized-docs'); | |
// Print link will show if enabled in settings | |
if ( ! get_option('od_hide_print_link') ) { ?> | |
<p id="odd-print-button"> | |
<?php if ( ! get_option('od_hide_printer_icon') ) { ?> | |
<span>⎙ </span> | |
<?php } ?> | |
<a href="javascript:window.print()" class="button"><?php _e( 'Print', 'organized-docs' ); ?></a> | |
</p> | |
<?php } | |
?> | |
<!-- End Docs Menu Bar --> | |
<?php the_content(); ?> | |
</div> <!-- end #docs-content --> | |
<!-- Begin Docs Sidebar for "Table of Contents" --> | |
<?php | |
$sidebar = $Isa_Organized_Docs->get_template_hierarchy( 'sidebar' ); | |
include_once $sidebar; | |
?> | |
<!-- End Docs Sidebar --> | |
<div style="clear:both"></div> | |
<!-- Begin Docs meta --> | |
<div class="thn_post_wrap"> | |
<?php $Isa_Organized_Docs->updated_on( 'below' ); ?> | |
</div> | |
<!-- End Docs meta --> | |
<div class="thn_post_wrap"><?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?></div> | |
</div> | |
</div> | |
<?php endwhile ?> | |
<!-- Docs nav --> | |
<?php $Isa_Organized_Docs->organized_docs_post_nav(); ?> | |
</div> | |
<!-- Docs, check if we disabled comments for Docs. --> | |
<?php if ( ! get_option( 'od_close_comments' ) ) { ?> | |
<div class="comments_template"><?php comments_template('',true); ?></div> | |
<!-- Docs, close the check for disabled comments --> | |
<?php } ?> | |
<?php endif ?> | |
</div> | |
<!--PAGE END--> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment