<div class="entry-summary" <?php hybrid_attr('entry-summary'); ?> > <?php the_excerpt(); ?> </div> <?php } else { ?> <div class="entry-content" <?php hybrid_attr('entry-content'); ?> > <?php /* translators: %s: Name of current post */ the_content(sprintf(__('Read more %s', 'chuchadon'), the_title('<span class="screen-reader-text">', '</span>', false))); wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'chuchadon'), 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'chuchadon') . ' </span>%', 'separator' => '<span class="screen-reader-text">,</span> ')); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php chuchadon_post_terms(array('taxonomy' => 'post_tag', 'sep' => '', 'text' => __('<span class="screen-reader-text">Tagged</span> %s', 'chuchadon'))); ?> </footer><!-- .entry-footer -->
/** * User comment list custom callback function. * * @since 0.1.0 */ function kt_user_reviews_list_callback($comment, $args, $depth) { $post_id = $comment->comment_post_ID; //$user_id = $args->user_id; $post_obj = get_post($post_id); $permalink = get_permalink($post_id); $post_thumbnail = get_the_post_thumbnail($post_id, 'medium'); if ($post_obj->post_type == 'shop') { $business_category = get_the_terms($post_id, 'shop_category'); } else { if ($post_obj->post_type == 'tour') { $business_category = get_the_terms($post_id, 'tour_category'); } } $location_category = get_the_terms($post_id, 'location_category'); $kt_shop_ppp = get_post_meta($post_id, '_kt_shop_ppp', TRUE); $kt_shop_rating = get_post_meta($post_id, '_kt_rating', TRUE); ?> <li <?php hybrid_attr('comment'); ?> > <article <?php hybrid_attr('list'); ?> > <section class="info-container clear-fix"> <div class="list-thumbnail"> <a href=" <?php echo $permalink; ?> "> <figure> <?php echo $post_thumbnail; ?> </figure> </a> </div><!-- .list-thumbnail --> <div class="list-info"> <header class="list-header"> <?php kt_title(FALSE, '<h5 class="list-title"><a href="' . $permalink . '">', '</a></h5>', $post_id); ?> </header> <ul> <?php if (!empty($kt_shop_ppp)) { ?> <li> <?php echo $kt_shop_ppp; ?> RMB </li> <?php } ?> </ul> <ul> <?php foreach ($business_category as $item) { ?> <li> <?php echo $item->name; ?> </li> <?php } ?> </ul> <?php if (!empty($location_category)) { ?> <ul> <?php foreach ($location_category as $item) { ?> <li> <?php echo $item->name; ?> </li> <?php } ?> </ul> <?php } ?> </div><!-- .list-info --> </section><!-- .info-container --> <div <?php hybrid_attr('comment-content'); ?> > <section> <span> <time <?php hybrid_attr('comment-published'); ?> ><?php printf(__('%s ago', 'stargazer'), human_time_diff(get_comment_time('U'), current_time('timestamp'))); ?> </time> </span> <span> <?php if ($comment_rating = get_comment_meta(get_comment_ID(), '_kt_rating', true)) { $comment_rating = '<div class="comment-star-rating"><span>Rating: </span><span class="star-rating"><i class="star-' . $comment_rating * 10 . '"></i></span></div>'; echo $comment_rating; } ?> </span> </section> <?php comment_text(); ?> <footer> <?php if (!empty($comment->user_id) && $comment->user_id == get_current_user_id()) { ?> <form method="post" action="<?php echo get_page_link(); ?> "> <?php wp_nonce_field('kt_update_reviews', 'kt_nonce_field'); ?> <button type="submit" class="delete" name="comment" value="<?php echo $comment->comment_ID; ?> "><span class="ui-icon ui-icon-trash"></span></button> </form> <?php } ?> </footer> </div><!-- .comment-content --> </article> <?php }
tha_header_before(); ?> <header <?php hybrid_attr('header'); ?> > <div class="wrap"> <?php tha_header_top(); ?> <div <?php hybrid_attr('branding'); ?> > <?php hybrid_site_title(); ?> <?php hybrid_site_description(); ?> </div><!-- #branding --> <?php hybrid_get_sidebar('header-right'); ?> <?php
> <header class="comment-meta"> <cite <?php hybrid_attr('comment-author'); ?> ><?php comment_author_link(); ?> </cite><br /> <time <?php hybrid_attr('comment-published'); ?> ><?php printf(__('%s ago', 'socially-awkward'), human_time_diff(get_comment_time('U'), current_time('timestamp'))); ?> </time> <a <?php hybrid_attr('comment-permalink'); ?> ><?php _e('Permalink', 'socially-awkward'); ?> </a> <?php edit_comment_link(); ?> </header><!-- .comment-meta --> <?php /* No closing </li> is needed. WordPress will know where to add it. */
<?php the_content(); ?> </div> <?php if (!get_option('show_avatars')) { // If avatars are not enabled. ?> <footer class="entry-footer"> <?php hybrid_post_format_link(); ?> <time <?php hybrid_attr('entry-published'); ?> ><?php echo get_the_date(); ?> </time> <a class="entry-permalink" href="<?php the_permalink(); ?> " rel="bookmark" itemprop="url"><?php _e('Permalink', 'infusion'); ?> </a> <?php comments_popup_link(number_format_i18n(0), number_format_i18n(1), '%', 'comments-link', ''); ?>
<?php if (has_nav_menu('primary')) { // Check if there's a menu assigned to the 'primary' location. ?> <nav class="nav offcanvas" <?php hybrid_attr('menu', 'primary'); ?> > <button class="open-button" data-action="toggle-menu"><?php esc_html_e('Open Primary Menu', 'the-one'); ?> </button> <div class="wrap"> <?php do_action('theone_menu_primary_top'); ?> <?php wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'menu_id' => 'menu-primary-items', 'menu_class' => 'menu-items', 'fallback_cb' => '', 'items_wrap' => '<ul id="%s" class="%s">%s</ul>')); ?> <?php do_action('theone_menu_primary_bottom'); ?> </div><!-- .wrap -->
<?php if (has_nav_menu('social')) { // Check if there's a menu assigned to the 'social' location. ?> <nav <?php hybrid_attr('menu', 'social'); ?> > <?php wp_nav_menu(array('theme_location' => 'social', 'depth' => 1, 'container' => 'div', 'container_class' => 'wrap', 'menu_id' => 'menu-primary-items', 'menu_class' => 'menu-items', 'fallback_cb' => '', 'items_wrap' => '<ul id="%s" class="%s">%s</ul>')); ?> </nav><!-- #menu-social --> <?php } // End check for menu.
if (is_taxonomy_hierarchical(get_queried_object()->taxonomy)) { // If the taxonomy is hierarchical. ?> <?php $terms = wp_list_categories(array('taxonomy' => get_queried_object()->taxonomy, 'child_of' => get_queried_object_id(), 'depth' => 1, 'title_li' => false, 'show_option_none' => false, 'echo' => false)); ?> <?php if (!empty($terms)) { // If a list of child categories/terms was found. ?> <nav <?php hybrid_attr('menu', 'sub-terms'); ?> > <ul id="menu-sub-terms-items" class="menu-items"> <?php echo $terms; ?> </ul><!-- .sub-terms --> </nav><!-- .menu --> <?php } // End check for list. ?>
<div class="skip-link"> <a href="#content" class="screen-reader-text"><?php _e('Skip to content', 'stargazer'); ?> </a> </div><!-- .skip-link --> <?php hybrid_get_menu('primary'); // Loads the menu/primary.php template. ?> <div class="wrap"> <header <?php hybrid_attr('header'); ?> > <?php if (display_header_text()) { // If user chooses to display header text. ?> <div id="branding"> <?php hybrid_site_title(); ?> <?php hybrid_site_description(); ?>
<?php /** * Front Page Sidebar. * * @package Toivo Lite */ ?> <?php if (is_active_sidebar('front-page')) { ?> <aside id="sidebar-front-page" class="sidebar-front-page sidebar" role="complementary" aria-labelledby="sidebar-front-page-header" <?php hybrid_attr('sidebar', 'front-page'); ?> > <h2 class="screen-reader-text" id="sidebar-front-page-header"><?php echo esc_attr_x('Front Page Sidebar', 'Sidebar aria label', 'toivo-lite'); ?> </h2> <div class="wrap"> <div class="wrap-inside"> <?php dynamic_sidebar('front-page'); ?> </div><!-- .wrap-inside --> </div><!-- .div -->
<?php @header('HTTP/1.1 404 Not found', true, 404); get_header(); // Loads the header.php template. ?> <main <?php hybrid_attr('error'); ?> > <h1 class="error-404-title entry-title"><?php _e('404 Error: Page Not Found', 'infusion'); ?> </h1> <div class="entry-content"> <p><?php printf(__('You tried going to %1$s, and it cannot be found. Sorry!', 'infusion'), '<code>' . site_url(esc_url($_SERVER['REQUEST_URI'])) . '</code>'); ?> </p> <p>There could be a few different reasons for this:</p> <ul> <li>The page was moved.</li> <li>The page no longer exists.</li> <li>The URL is slightly incorrect.</li> </ul>
/** * Header Sidebar in Top of the page. * * @package Chuchadon */ ?> <?php if (is_active_sidebar('header')) { ?> <div id="sidebar-header-wrapper" class="sidebar-header-wrapper"> <aside id="sidebar-header" class="sidebar-header sidebar-header-subsidiary sidebar" role="complementary" aria-labelledby="sidebar-header-header" <?php hybrid_attr('sidebar', 'header'); ?> > <h2 class="screen-reader-text" id="sidebar-header-header"><?php echo esc_attr_x('Header Sidebar', 'Sidebar aria label', 'chuchadon'); ?> </h2> <div class="wrap"> <div class="wrap-inside"> <?php dynamic_sidebar('header'); ?> </div><!-- .wrap-inside -->
<?php /** * The template for front page * * @package iKoreaTown * @since 0.1.1 */ get_header(); ?> <main <?php hybrid_attr('page'); ?> > <?php $cdn_addr = 'https://ikoreatown-bucket.oss-cn-qingdao.aliyuncs.com/assets'; ?> <div class="slide"> <ul> <li> <a href="https://www.ikoreatown.net/shop/%EC%9D%B4%EB%94%B0%EB%B0%94-%E6%A2%85%E5%B1%8B/"> <img src="<?php echo $cdn_addr . '/img/slideshow1.jpg'; ?> " alt="이따바"> </a> </li> </ul> </div>
<?php if (is_active_sidebar('subsidiary')) { // If the sidebar has widgets. ?> <aside <?php hybrid_attr('sidebar', 'subsidiary'); ?> > <?php dynamic_sidebar('subsidiary'); // Displays the subsidiary sidebar. ?> </aside><!-- #sidebar-subsidiary --> <?php } // End widgets check.
/** * Outputs the content for the current widget instance. */ public function widget($args, $instance) { /** * Combine $instance data with defaults * Then extract variables of this array */ extract(wp_parse_args($instance, array('title' => '', 'image_id' => '', 'icon' => '', 'text' => '', 'link_text' => ''))); /* Run $text through filter */ $text = apply_filters('widget_text', $text, $instance, $this); /* Get archive of knowledgebase */ $url = get_post_type_archive_link(EJO_Knowledgebase::$post_type); ?> <?php echo $args['before_widget']; ?> <?php if (!empty($image_id)) { // Check if there is an image_id ?> <div class="featured-image-container"> <?php echo wp_get_attachment_image($image_id, 'featured', false, array('class' => 'featured-image')); ?> </div> <?php if (!empty($icon)) { // Check if there is an icon ?> <div class="icon-container"> <i class="fa fa-<?php echo $icon; ?> "></i> </div> <?php } // END icon check ?> <?php } // END image_id check ?> <?php echo $args['before_title']; ?> <a href="<?php echo $url; ?> "><?php echo $title; ?> </a><?php echo $args['after_title']; ?> <div class="textwidget"> <?php echo wpautop($text); ?> </div> <?php /* Get knowledgebase categories */ $categories = get_terms('knowledgebase_category', array('orderby' => 'term_order', 'order' => 'ASC')); ?> <div class="knowledgebase-categories"> <?php foreach ($categories as $category) { // Loop through each knowledgebase category ?> <?php /* Get Knowledgebase ategory url */ $category_url = esc_url(get_term_link($category)); /* Fabricate knowledgebase category link */ $category_link = sprintf('<a href="%s" alt="%s">%s</a>', $category_url, esc_attr(sprintf('View all posts in %s', $category->name)), esc_html($category->name)); ?> <h4 <?php hybrid_attr('category-title'); ?> ><a href="<?php echo esc_url(get_category_link($category->term_id)); ?> " title="<?php echo esc_attr('Bekijk alle ' . $category->name . ' artikelen'); ?> " rel="bookmark" itemprop="url"><?php echo $category->name; ?> </a></h4> <?php } // END foreach category loop ?> </div> <?php if (!empty($link_text)) { ?> <a href="<?php echo $url; ?> " class="read-more"><?php echo $link_text; ?> </a> <?php } // URL check ?> <?php echo $args['after_widget']; ?> <?php }
<?php get_header(); // Loads the header.php template. ?> <main <?php hybrid_attr('content'); ?> > <?php if (have_posts()) { // Checks if any posts were found. ?> <?php while (have_posts()) { // Begins the loop through found posts. ?> <?php the_post(); // Loads the post data. ?> <?php hybrid_get_content_template(); // Loads the content/*.php template. ?>
* * @package Compass * @subpackage HybridCore * @copyright Copyright (c) 2014, Flagship, LLC * @license GPL-2.0+ * @link http://flagshipwp.com/ * @since 1.0.0 */ ?> <?php if (has_nav_menu('after-header')) { ?> <nav <?php hybrid_attr('menu', 'after-header'); ?> > <span id="menu-after-header-title" class="menu-toggle off-screen"> <button class="screen-reader-text"><?php // Translators: %s is the nav menu name. This is the nav menu title shown to screen readers. printf(_x('%s Menu', 'nav menu title', 'compass'), hybrid_get_menu_location_name('after-header')); ?> </button> </span><!-- .menu-toggle --> <?php wp_nav_menu(array('theme_location' => 'after-header', 'container' => '', 'menu_id' => 'after-header', 'menu_class' => 'nav-menu after-header', 'fallback_cb' => '', 'items_wrap' => '<div class="wrap"><ul id="%s" class="%s">%s</ul></div>')); ?>
<?php /** * Footer Sidebar. * * @package Munsa Lite */ ?> <?php if (is_active_sidebar('footer')) { // If the sidebar has widgets. ?> <aside id="sidebar-footer" class="sidebar-footer sidebar" role="complementary" <?php hybrid_attr('sidebar', 'footer'); ?> > <h2 class="screen-reader-text" id="sidebar-footer-header"><?php echo esc_html_x('Footer Sidebar', 'Sidebar aria label', 'munsa-lite'); ?> </h2> <div class="wrap"> <?php dynamic_sidebar('footer'); ?> </div><!-- .wrap -->
<article> <header class="comment-meta"> <cite <?php hybrid_attr('comment-author'); ?> ><?php comment_author_link(); ?> </cite> <a <?php hybrid_attr('comment-permalink'); ?> > <time <?php hybrid_attr('comment-published'); ?> > <?php printf(__('%s ago', 'compass'), human_time_diff(get_comment_time('U'), current_time('timestamp'))); ?> </time> </a> <?php edit_comment_link(); ?> </header><!-- .comment-meta --> </article>
<div id="primary" class="content-area"> <main <?php hybrid_attr('content'); ?> > <?php if (have_posts()) { ?> <header <?php hybrid_attr('archive-header'); ?> > <h1 <?php hybrid_attr('archive-title'); ?> ><?php printf(esc_html__('Search Results for: %s', 'croft'), '<span>' . get_search_query() . '</span>'); ?> </h1> </header><!-- .archive-header --> <?php /* Start the Loop */ while (have_posts()) { the_post(); ?> <?php /**
<?php hybrid_get_sidebar('primary'); // Loads the sidebar/primary.php template. ?> </div><!-- #main --> <?php //hybrid_get_sidebar( 'footer' ); // Loads the sidebar/subsidiary.php template. ?> <footer <?php hybrid_attr('footer'); ?> > <?php hybrid_get_menu('social'); // Loads the menu/social.php template. ?> <p class="credit"> <?php printf(esc_html__('Copyright © %1$s %2$s', 'magik'), date_i18n('Y'), hybrid_get_site_link()); ?> </p><!-- .credit --> <p class="credit"> <?php echo __('Built with <big>♥</big> at <a href="https://magikpress.com">MagikPress</a>', 'magik'); ?> </p>
?> <div class="blog-posts-wrapper" itemscope="itemscope" itemtype="http://schema.org/Blog"> <?php while ($blog_content->have_posts()) { $blog_content->the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> <?php hybrid_attr('post'); ?> > <?php if (has_post_thumbnail()) { ?> <a class="post-thumbnail" href="<?php the_permalink(); ?> "> <?php the_post_thumbnail('munsa-smaller', array('alt' => the_title_attribute('echo=0'))); ?> </a>
<?php /** * Primary Sidebar. * * @package Chuchadon */ ?> <?php if ('1c' != get_theme_mod('theme_layout', '1c')) { // If the layout is not one column. ?> <aside id="sidebar-primary" class="sidebar-primary sidebar" role="complementary" aria-labelledby="sidebar-primary-header" <?php hybrid_attr('sidebar', 'primary'); ?> > <h2 class="screen-reader-text" id="sidebar-primary-header"><?php echo esc_attr_x('Primary Sidebar', 'Sidebar aria label', 'chuchadon'); ?> </h2> <div class="wrap"> <?php if (is_active_sidebar('primary')) { // If the sidebar has widgets. ?> <?php
<!DOCTYPE html> <html <?php language_attributes('html'); ?> > <head> <?php wp_head(); // Hook required for scripts, styles, and other <head> items. ?> </head> <body <?php hybrid_attr('body'); ?> > <div id="container"> <header id="header"> <div id="branding"> <?php hybrid_site_title(); ?> <?php hybrid_site_description(); ?> </div><!-- #branding -->
$date = get_the_time(__('F Y', 'marsh')); } elseif (is_year()) { $date = get_the_time(__('Y', 'marsh')); } ?> <header class="page-marquee" style="background-image: url(<?php echo $bgimage; ?> );"> <div class="contain"> <h1 <?php hybrid_attr('entry-title'); ?> ><?php echo $date; ?> </h1> <p>You're browsing the archives for <?php echo $date; ?> </p> </div> </header> </header>
<article <?php hybrid_attr('post'); ?> > <header class="entry-header"> <h1 class="entry-title"><?php _e('Nothing found', 'marsh'); ?> </h1> </header> <div <?php hybrid_attr('entry-contentdssdf'); ?> > <?php wpautop(__('Apologies, but no entries were found.', 'marsh')); ?> </div> </article>
hybrid_attr('comment-published'); ?> ><?php printf(__('%s ago', 'melange'), human_time_diff(get_comment_time('U'), current_time('timestamp'))); ?> </time> <a <?php hybrid_attr('comment-permalink'); ?> ><?php _e('Permalink', 'melange'); ?> </a> <?php edit_comment_link(); ?> </header> <div <?php hybrid_attr('comment-content'); ?> > <?php comment_text(); ?> </div> <?php hybrid_comment_reply_link(); ?> </article>
?> <?php if (is_front_page() || is_home()) { ?> <h1 <?php hybrid_attr('site-title'); ?> ><?php the_custom_logo(); ?> </h1> <?php } else { ?> <p <?php hybrid_attr('site-title'); ?> ><?php the_custom_logo(); ?> </p> <?php } ?> <?php } else { // If no site logo set. ?> <?php hybrid_site_title(); ?>
<?php wp_link_pages(); ?> </div><!-- .entry-content --> <?php } else { // If not viewing a single post. ?> <?php get_the_image(array('size' => 'portfolio')); ?> <div <?php hybrid_attr('entry-summary'); ?> > <a href="<?php thds_theme_url(); ?> "> <?php thds_theme_excerpt(); ?> </a> </div><!-- .entry-summary --> <footer class="entry-footer"> <?php
<?php if (has_nav_menu('subsidiary')) { // Check if there's a menu assigned to the 'subsidiary' location. ?> <nav <?php hybrid_attr('menu', 'subsidiary'); ?> > <?php wp_nav_menu(array('theme_location' => 'subsidiary', 'container' => '', 'menu_id' => 'menu-subsidiary-items', 'menu_class' => 'menu-items', 'fallback_cb' => '', 'items_wrap' => '<div class="wrap"><ul id="%s" class="%s">%s</ul></div>')); ?> </nav><!-- #menu-subsidiary --> <?php } // End check for menu.