function ct_apex_options_content(){

	$customizer_url = add_query_arg(
		array(
			'url'    => site_url(),
			'return' => admin_url('themes.php?page=apex-options')
		),
		admin_url('customize.php')
	);

	?>
	<div id="apex-dashboard-wrap" class="wrap">
		<h2><?php _e('Apex Dashboard', 'apex'); ?></h2>
		<?php hybrid_do_atomic( 'theme_options_before' ); ?>
		<div class="content content-customization">
			<h3><?php _e('Customization', 'apex'); ?></h3>
			<p><?php _e('Click the "Customize" link in your menu, or use the button below to get started customizing Apex', 'apex'); ?>.</p>
			<p>
				<a class="button-primary" href="<?php echo esc_url( $customizer_url ); ?>"><?php _e('Use Customizer', 'apex') ?></a>
			</p>
		</div>
		<div class="content content-support">
			<h3><?php _e('Support', 'apex'); ?></h3>
			<p><?php _e("You can find the knowledgebase, changelog, support forum, and more in the Apex Support Center", "apex"); ?>.</p>
			<p>
				<a target="_blank" class="button-primary" href="https://www.competethemes.com/documentation/apex-support-center/"><?php _e('Visit Support Center', 'apex'); ?></a>
			</p>
		</div>
		<div class="content content-premium-upgrade">
			<h3><?php _e('Get More Features & Flexibility', 'apex'); ?></h3>
			<p><?php _e('Download the Apex Pro plugin and unlock custom colors, new layouts, a flexible header image, and more', 'apex'); ?>...</p>
			<p>
				<a target="_blank" class="button-primary" href="https://www.competethemes.com/apex-pro/"><?php _e('See Full Feature List', 'apex'); ?></a>
			</p>
		</div>
		<div class="content content-resources">
			<h3><?php _e('WordPress Resources', 'apex'); ?></h3>
			<p><?php _e('Save time and money searching for WordPress products by following our recommendations', 'apex'); ?>.</p>
			<p>
				<a target="_blank" class="button-primary" href="https://www.competethemes.com/wordpress-resources/"><?php _e('View Resources', 'apex'); ?></a>
			</p>
		</div>
		<div class="content content-delete-settings">
			<h3><?php _e('Reset Customizer Settings', 'apex'); ?></h3>
			<p>
				<?php
				printf( __( '<strong>Warning:</strong> Clicking this button will erase your current settings in the <a href="%s">Customizer</a>', 'apex' ), esc_url( $customizer_url ) );
				?>
			</p>
			<form method="post">
				<input type="hidden" name="apex_reset_customizer" value="apex_reset_customizer_settings" />
				<p>
					<?php wp_nonce_field( 'apex_reset_customizer_nonce', 'apex_reset_customizer_nonce' ); ?>
					<?php submit_button( __( 'Reset Customizer Settings', 'apex' ), 'delete', 'delete', false ); ?>
				</p>
			</form>
		</div>
		<?php hybrid_do_atomic( 'theme_options_after' ); ?>
	</div>
<?php } ?>
Пример #2
0
					<!-- Primary Menu -->
					<?php 
get_template_part('menu', 'primary');
?>

					<!-- Social Icons -->
					<?php 
ct_apex_social_icons_output('header');
?>

				</div>

				<button id="toggle-navigation" class="toggle-navigation">
					<span class="screen-reader-text"><?php 
_e('open menu', 'apex');
?>
</span>
					<?php 
echo ct_apex_svg_output('toggle-navigation');
?>
				</button>

			</header>
			<?php 
hybrid_do_atomic('after_header');
?>
			<section id="main" class="main" role="main">
				<?php 
hybrid_do_atomic('main_top');
Пример #3
0
?>
				<?php 
printf(_x('Published by %1$s on %2$s', 'This blog post was published by some author on some date', 'author'), $author, $date);
?>
			</span>
		</div>
	    <div class="post-content">
	        <?php 
the_content();
?>
	        <?php 
wp_link_pages(array('before' => '<p class="singular-pagination">' . __('Pages:', 'author'), 'after' => '</p>'));
?>
	    </div>
		<?php 
get_template_part('content/post-categories');
?>
		<?php 
get_template_part('content/post-tags');
?>
	</article>
	<?php 
hybrid_do_atomic('post_after');
?>
	<?php 
get_template_part('content/post-nav');
?>
	<?php 
comments_template();
?>
</div>
Пример #4
0
get_sidebar('primary');
?>

<footer class="site-footer" role="contentinfo">
	<?php 
hybrid_do_atomic('footer_top');
?>
    <div class="design-credit">
        <span>
            <?php 
$site_url = 'https://www.competethemes.com/apex/';
$footer_text = sprintf(__('<a href="%s">Apex WordPress Theme</a> by Compete Themes', 'apex'), esc_url($site_url));
$footer_text = apply_filters('ct_apex_footer_text', $footer_text);
echo $footer_text;
?>
        </span>
    </div>
</footer>
</div>
</div><!-- .overflow-container -->

<?php 
hybrid_do_atomic('body_bottom');
?>

<?php 
wp_footer();
?>

</body>
</html>
<div <?php post_class(); ?>>
	<?php hybrid_do_atomic( 'attachment_before' ); ?>
	<article>
		<div class="post-container">
			<div class='post-header'>
				<h2 class='post-title'><?php the_title(); ?></h2>
			</div>
			<div class="post-content">
				<?php the_content(); ?>
			</div>
			<?php get_template_part('content/post-nav-attachment'); ?>
		</div>
	</article>
	<?php hybrid_do_atomic( 'attachment_after' ); ?>
	<?php comments_template(); ?>
</div>
Пример #6
0
/**
 * @since      0.7.0
 * @deprecated 2.0.0
 */
function do_atomic($tag = '', $arg = '')
{
    _deprecated_function(__FUNCTION__, '2.0.0', 'hybrid_do_atomic');
    hybrid_do_atomic($tag, $arg);
}
	<article>
		<div class='post-header'>
			<h1 class='post-title'>
				<a href="<?php 
echo get_permalink();
?>
"><?php 
the_title();
?>
</a>
			</h1>
			<span class="post-meta">
				<?php 
$author = "<a href='" . get_author_posts_url(get_the_author_meta('ID')) . "'>" . get_the_author() . "</a>";
$date = "<a href='" . get_month_link(get_the_date('Y'), get_the_date('n')) . "'>" . date_i18n(get_option('date_format'), strtotime(get_the_date('r'))) . "</a>";
?>
				<?php 
printf(_x('Published by %1$s on %2$s', 'This blog post was published by some author on some date', 'author'), $author, $date);
?>
			</span>
		</div>
		<div class="post-content">
			<?php 
ct_author_excerpt();
?>
		</div>
	</article>
	<?php 
hybrid_do_atomic('archive_post_after');
?>
</div>
Пример #8
0
?>
>
	<?php 
hybrid_do_atomic('page_before');
?>
	<?php 
ct_author_featured_image();
?>
	<article>
		<div class='post-header'>
			<h1 class='post-title'><?php 
the_title();
?>
</h1>
		</div>
		<div class="post-content">
			<?php 
the_content();
?>
			<?php 
wp_link_pages(array('before' => '<p class="singular-pagination">' . __('Pages:', 'author'), 'after' => '</p>'));
?>
		</div>
	</article>
	<?php 
hybrid_do_atomic('page_after');
?>
	<?php 
comments_template();
?>
</div>
Пример #9
0
<div <?php 
post_class();
?>
>
	<?php 
hybrid_do_atomic('post_before');
?>
	
	<?php 
$next_page = get_post_meta($post->ID, 'for_page', true);
$ca_parent_id = get_post_meta($post->ID, 'parent_story_id', true);
?>

	<h2 class="headline">Submission Page</h2>

	<article>
		
		<div class="post-header ca-story-header">

			<div class="pagenumber-box">
				<span>page</span><br />
				<div class="largepage">
					<?php 
echo $next_page;
?>
				</div>
			</div>

			<div class="story-avatar">
				<?php 
$authorid = get_the_author_meta('ID');