/** * Adds a wrapper to the input and allows us to use a proper "update" box. * * @param $title string the title of the info box * @param $content string the content of the info box * @return string the input wrapped properly. */ public static function update_info_wrapper($title = '', $content = '') { // Open wrapper div $html = '<div class="plus-info-control">'; // Add the title if one is defined $html .= '' == $title ? '' : '<h3>' . $title . '</h3>'; // Add the upgrade button-link $html .= '<a class="daphnee-plus-link" target="_blank" href="' . Daphnee()->plus_link . '">' . __('Upgrade to Plus', 'daphnee') . '</a>'; // Add the content $html .= $content; // Close the wrapper div $html .= '</div>'; return $html; }
?> <div class="entry-content"> <?php tha_entry_content_before(); ?> <?php /** * The entry content */ Daphnee()->load_template_partial('content-main-archive'); ?> <?php tha_entry_content_after(); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php /** * The entry footer */ Daphnee()->load_template_partial('content-footer-archive'); ?> </footer><!-- .entry-footer --> <?php tha_entry_bottom(); ?> </article><!-- #post-## --> <?php tha_entry_after();
?> <div class="entry-content"> <?php tha_entry_content_before(); ?> <?php /** * The entry content */ Daphnee()->load_template_partial('content-main-singular-page'); ?> <?php tha_entry_content_after(); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php /** * The entry footer */ Daphnee()->load_template_partial('content-footer-singular-page'); ?> </footer><!-- .entry-footer --> <?php tha_entry_bottom(); ?> </article><!-- #post-## --> <?php tha_entry_after();
<?php /** * The template for displaying 404 pages (not found). * * @package Daphnee */ get_header(); ?> <div id="primary" class="content-area <?php echo Daphnee()->layout->main_content_columns(); ?> "> <main id="main" class="site-main" role="main"> <section class="error-404 not-found"> <header class="page-header"> <h1 class="page-title"><?php esc_html_e('Oops! That page can’t be found.', 'daphnee'); ?> </h1> </header><!-- .page-header --> <div class="page-content"> <p><?php esc_html_e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'daphnee'); ?> </p> <?php
function daphnee_add_plus_link() { if (!Daphnee()->is_plus) { $link = '<a class="daphnee-plus-link" target="_blank" href="' . Daphnee()->plus_link . '">' . __('Upgrade to Plus', 'daphnee') . '</a>'; $script = '$(\'' . $link . '\').appendTo( "li#accordion-section-themes .accordion-section-title" )'; echo '<script>jQuery(document).ready(function($) { "use strict"; ' . $script . '});</script>'; } }
echo esc_url(home_url('/')); ?> " rel="home"><?php bloginfo('name'); ?> </a></h1> <p class="site-description"><?php bloginfo('description'); ?> </p> <?php } elseif (function_exists('jetpack_the_site_logo') && jetpack_has_site_logo()) { ?> <?php jetpack_the_site_logo(); } ?> </div><!-- .site-branding --> <?php /** * The main navigation */ Daphnee()->load_template_partial('navigation'); ?> </div> <?php tha_header_bottom(); ?> </header><!-- #masthead --> <?php tha_header_after();
?> <section class="no-results not-found"> <?php tha_entry_top(); ?> <?php /** * The entry header */ Daphnee()->load_template_partial('content-header-404'); ?> <div class="page-content"> <?php tha_entry_content_before(); ?> <?php /** * The entry content */ Daphnee()->load_template_partial('content-main-404'); ?> <?php tha_entry_content_after(); ?> </div><!-- .page-content --> <?php tha_entry_bottom(); ?> </section><!-- .no-results --> <?php tha_entry_after();
<div id="secondary" class="widget-area <?php echo Daphnee()->layout->sidebar_columns(); ?> " role="complementary"> <?php tha_sidebar_top(); ?> <?php dynamic_sidebar('sidebar-1'); ?> <?php tha_sidebar_bottom(); ?> </div><!-- #secondary -->
?> > <?php /** * The <head> */ Daphnee()->load_template_partial('head'); ?> <body <?php body_class(); ?> > <?php tha_body_top(); ?> <div id="page" class="hfeed site wrapper"> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'daphnee'); ?> </a> <?php /** * The global site header */ Daphnee()->load_template_partial('header'); ?> <div id="content" class="site-content row">
<?php /** * The sidebar containing the main widget area. * * @package Daphnee */ if (!is_active_sidebar('sidebar-1')) { return; } ?> <?php /** * The sidebar */ Daphnee()->load_template_partial('sidebar');
<?php /** * The template for displaying the footer. * * Contains the closing of the #content div and all content after * * @package Daphnee */ ?> </div><!-- #content --> <?php /** * The footer */ Daphnee()->load_template_partial('footer'); ?> </div><!-- #page --> <?php tha_body_bottom(); wp_footer(); ?> </body> </html>