function eps_add_input() { global $post_ID, $post; if (!in_array($post->post_type, array('post'))) { return; } $eps_subtitle = the_subtitle($post_ID); $eps_show_label = strlen(esc_attr($eps_subtitle)) ? ' style="display:none;"' : ''; echo '<div><div id="eps_subtitle"> <label' . $eps_show_label . '>' . __('Enter subtitle here') . '</label><input type="text" class="eps_subtitle" name="eps_subtitle" value="' . esc_attr($eps_subtitle) . '" /> </div></div> <script> var html = jQuery("#eps_subtitle").parent("div").html(); jQuery("#eps_subtitle").parent("div").remove(); jQuery("#titlediv").after( html ); </script>'; }
/** * Custom header codes for the home page, single posts and pages */ function cleanblog_header() { ?> <?php if (is_single()) { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <?php $feat_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?> <header class="intro-header" style="background-color: #404040; background-image: url('<?php echo $feat_image; ?> ')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="post-heading"> <h1><?php single_post_title(); ?> </h1> <?php if (function_exists('the_subtitle')) { the_subtitle('<h2 class="subheading">', '</h2>'); } ?> <span class="meta"><?php cleanblog_posted_on(); ?> </span> </div> </div> </div> </div> </header> <?php } elseif (is_page()) { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <?php $feat_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?> <header class="intro-header" style="background-color: #404040; background-image: url('<?php echo $feat_image; ?> ')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading"> <h1><?php single_post_title(); ?> </h1> <hr class="small"> <?php if (function_exists('the_subtitle')) { the_subtitle('<span class="subheading">', '</span>'); } ?> </div> <!-- /.site-heading --> </div> <!-- /.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1 --> </div> <!-- /.row --> </div> <!-- /.container --> </header> <?php } elseif (is_search()) { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <header class="intro-header" style="background-color: #404040;')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading"> <h1><?php esc_html_e('Search Results', 'cleanblog'); ?> </h1> <hr class="small"> <span class="subheading"><?php printf(esc_html__('You searched for: "%s"', 'cleanblog'), '<span>' . get_search_query() . '</span>'); ?> </span> </div> <!-- /.site-heading --> </div> <!-- /.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1 --> </div> <!-- /.row --> </div> <!-- /.container --> </header> <?php } else { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <?php if (get_theme_mod('cleanblog_homeintro_image') != '') { ?> <?php $headerimg = get_theme_mod('cleanblog_homeintro_image'); ?> <?php } else { ?> <?php $headerimg = get_template_directory_uri() . '/img/avila.gif'; ?> <?php } ?> <header class="intro-header" style="background-color: #404040; background-image: url('<?php echo $headerimg; ?> ')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading"> <?php if (get_theme_mod('cleanblog_homeintro_title') != '') { ?> <h1 class="homeintro"><?php echo get_theme_mod('cleanblog_homeintro_title'); ?> </h1> <?php } else { ?> <h1><?php esc_html_e('{ Hello Wold }', 'cleanblog'); ?> </h1> <?php } ?> <hr class="small"> <?php if (get_theme_mod('cleanblog_homeintro_subtitle') != '') { ?> <span class="subheading"><?php echo get_theme_mod('cleanblog_homeintro_subtitle'); ?> </span> <?php } else { ?> <span class="subheading"><?php esc_html_e('Entrepreneurial and surviving thoughts from a passionate developer.', 'cleanblog'); ?> </span> <?php } ?> </div> <!-- /.site-heading --> </div> <!-- /.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1 --> </div> <!-- /.row --> </div> <!-- /.container --> </header> <?php } ?> <?php }
the_title(); ?> </a> <?php } else { ?> <h1 class="section-title"><?php the_title(); ?> </h1> <?php } ?> <?php if (function_exists('the_subtitle')) { the_subtitle('<p class="subtitle">', '</p>'); } ?> </header> <?php $posttags = get_the_tags(); ?> <?php if (get_the_tag_list()) { echo get_the_tag_list('<div class="slide-txt"><ul class="tag_list"><li>', ',</li><li>', '</li></ul></div>'); } ?> <?php the_content();
<?php $featured_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'header-article'); ?> <header class="entry-header"> <div class="opacity-filter"></div> <img alt="Lufthansa_01" class="attachment-post-thumbnail wp-post-image" src="<?php echo $featured_image[0]; ?> " /> <div class="entry-headline"> <?php the_subtitle('<h1 class="entry-subtitle">', '</h1>'); the_title('<h1 class="entry-title">', '</h1>'); ?> </div><!--.entry-headline --> </header> <!--.entry-header --> <div class="head-overview"></div> <div class="entry-overview"> <div class="entry-teaser teaser-column"> <h3 class="block-title">OVERVIEW</h3> <?php the_excerpt('<p class="entry-excerpt">', '</p>'); ?> </div><!-- .entry-teaser -->
$front_page = new WP_Query(array('post_type' => 'page', 'posts_per_page' => 1, 'meta_key' => 'front_page', 'meta_value' => '1')); ?> <section class="home-article"> <div class="inner"> <?php while ($front_page->have_posts()) { $front_page->the_post(); ?> <article <?php post_class(); ?> > <header class="article-header"> <?php the_subtitle('<span class="subtitle">', '</span>'); ?> <?php the_title('<h1>', '</h1>'); ?> </header> <div class="article-content"> <?php the_excerpt(); ?> </div> <a href="<?php the_permalink(); ?> " class="home-read-more">Læs mere
/** * Custom header codes for the home page, single posts and pages */ function cleanblog_header() { ?> <?php if (is_single()) { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <?php $feat_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?> <header class="intro-header" style="background-color: <?php echo get_theme_mod('cleanblog_header_background_color'); ?> ; background-image: url('<?php echo $feat_image; ?> ')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="post-heading"> <h1><?php single_post_title(); ?> </h1> <?php if (function_exists('the_subtitle')) { the_subtitle('<h2 class="subheading">', '</h2>'); } ?> <span class="meta"><?php cleanblog_posted_on(); ?> </span> </div> </div> </div> </div> </header> <?php } elseif (is_page_template('page-builder.php')) { ?> <?php } elseif (is_page()) { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <?php $feat_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?> <header class="intro-header" style="background-color: <?php echo get_theme_mod('cleanblog_header_background_color'); ?> ; background-image: url('<?php echo $feat_image; ?> ')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading"> <h1><?php single_post_title(); ?> </h1> <hr class="small"> <?php if (function_exists('the_subtitle')) { the_subtitle('<span class="subheading">', '</span>'); } ?> </div> <!-- /.site-heading --> </div> <!-- /.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1 --> </div> <!-- /.row --> </div> <!-- /.container --> </header> <?php } elseif (is_search()) { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <header class="intro-header" style="background-color: <?php echo get_theme_mod('cleanblog_header_background_color'); ?> ;')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading"> <h1><?php esc_html_e('Search Results', 'cleanblog'); ?> </h1> <hr class="small"> <span class="subheading"><?php printf(esc_html__('You searched for: "%s"', 'cleanblog'), '<span>' . get_search_query() . '</span>'); ?> </span> </div> <!-- /.site-heading --> </div> <!-- /.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1 --> </div> <!-- /.row --> </div> <!-- /.container --> </header> <?php } else { ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <?php if (get_theme_mod('cleanblog_homeintro_image') != '') { ?> <?php $headerimg = get_theme_mod('cleanblog_homeintro_image'); ?> <?php } else { ?> <?php $headerimg = get_template_directory_uri() . '/img/home-bg.jpg'; ?> <?php } ?> <header class="intro-header" style="background-color: <?php echo get_theme_mod('cleanblog_header_background_color'); ?> ; background-image: url('<?php echo $headerimg; ?> ')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading"> <?php if (get_theme_mod('cleanblog_homeintro_title') != '') { ?> <h1 class="homeintro"><?php echo get_theme_mod('cleanblog_homeintro_title'); ?> </h1> <?php } else { ?> <h1><?php esc_html_e('Clean Blog', 'cleanblog'); ?> </h1> <?php } ?> <hr class="small"> <?php if (get_theme_mod('cleanblog_homeintro_subtitle') != '') { ?> <span class="subheading"><?php echo get_theme_mod('cleanblog_homeintro_subtitle'); ?> </span> <?php } else { ?> <span class="subheading"><?php esc_html_e('A Clean Blog Theme by Devio Digital', 'cleanblog'); ?> </span> <?php } ?> </div> <!-- /.site-heading --> </div> <!-- /.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1 --> </div> <!-- /.row --> </div> <!-- /.container --> </header> <?php } ?> <?php }
?> </div> <?php if (has_post_thumbnail()) { ?> <span class="testimonial-thumbnail"> <?php the_post_thumbnail('testimonial-thumb'); ?> </span> <?php } ?> <header class="entry-header"> <h3 class="entry-title"><?php the_title(); ?> </h3> <?php if (function_exists('the_subtitle')) { ?> <?php the_subtitle('<p class="entry-subtitle">', '</p>'); ?> <?php } ?> </header><!-- .entry-header --> </article><!-- #post-## -->
<?php $image_url = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'thumbnail'); ?> <div class="header-team-img" data-bg="<?php echo $image_url[0]; ?> "></div> <?php } elseif ('case' === get_post_type(get_the_ID())) { $terms = wp_get_post_terms(get_the_ID(), 'cases'); ?> <span class="article-subtitle"><?php if (!empty($terms)) { echo $terms[0]->name; } ?> </span> <?php the_title('<h1 class="article-title">', '</h1>'); } else { ?> <?php if (has_subtitle()) { the_subtitle('<span class="article-subtitle">', '</span>'); } ?> <?php the_title('<h1 class="article-title">', '</h1>'); } ?> </header>
<?php } ?> </div> <div class="col-md-8"> <header class="page-header"> <h1><?php the_title(); ?> </h1> </header> <?php if (function_exists('the_subtitle')) { ?> <p class="subtitle"><strong><?php echo the_subtitle(); ?> </strong></p> <?php } ?> <?php the_content(); ?> <p> <a class="btn btn-default" role="button" href="<?php the_permalink(); ?> " title="<?php the_title_attribute();
featured-post<?php } ?> "> <h4><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h4> <?php if (function_exists('the_subtitle')) { the_subtitle('<div class="slide-txt"><p class="lead">', '</p></div>'); } ?> <?php $posttags = get_the_tags(); ?> <?php if (get_the_tag_list()) { echo get_the_tag_list('<div class="slide-txt"><ul class="tag_list"><li>', ',</li><li>', '</li></ul></div>'); } ?> <?php if (has_post_thumbnail()) { ?> <a href="<?php the_permalink();
<div class="main-head-holder"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading cta-header"> <?php if (is_single() || is_page()) { ?> <h1><?php single_post_title(); ?> </h1> <?php if (function_exists('the_subtitle')) { ?> <hr class="small"><?php the_subtitle('<p class="subheading">', '</p>'); } ?> <?php } elseif (is_search()) { ?> <h1><?php esc_html_e('Search Results', 'peacock'); ?> </h1> <hr class="small"> <p class="subheading"><?php printf(esc_html__('You searched for: "%s"', 'peacock'), '<span>' . get_search_query() . '</span>'); ?> </p> <?php
/** * Query DB and echo page/post subtitle, if any * * @uses WPSubtitle::_get_post_meta() * * @since 1.0 * @deprecated 2.0 Use get_the_subtitle() instead. */ function wps_get_the_subtitle() { _deprecated_function('wps_get_the_subtitle()', '2.0', 'the_subtitle()'); the_subtitle(); }
function advps_slideshow($atts) { global $post; global $wpdb; $current = $post->ID; if (is_array($atts) && array_key_exists('optset', $atts)) { $q1 = "select * from " . $wpdb->prefix . "advps_optionset where id = " . intval($atts['optset']); $res1 = $wpdb->get_results($q1); if ($res1) { $plist = unserialize($res1[0]->plist); $query = unserialize($res1[0]->query); $slider = unserialize($res1[0]->slider); $caro_ticker = unserialize($res1[0]->caro_ticker); $container = unserialize($res1[0]->container); $content = unserialize($res1[0]->content); $navigation = unserialize($res1[0]->navigation); } else { return; } $sldshowID = $atts['optset']; } else { return; } if ($query['advps_exclude']) { $exclude = explode(',', $query['advps_exclude']); } else { $exclude = ''; } $qtype = get_option('advpssmethod' . $sldshowID); if ($qtype == 'query') { $query_arg = array('post_type' => $query['advps_post_types'] ? $query['advps_post_types'] : 'post', 'post__not_in' => $exclude, 'offset' => $query['advps_offset'] ? $query['advps_offset'] : 0, 'posts_per_page' => $query['advps_maxpost'] ? $query['advps_maxpost'] : 10, 'orderby' => $query['advps_order_by'] ? $query['advps_order_by'] : 'date', 'order' => $query['advps_order'] ? $query['advps_order'] : 'DESC'); if ($query['advps_post_types'] && $query['advps_post_types'] != "page") { if ($query['advps_post_types'] == "post") { if (isset($query['advps_category'])) { $query_arg['cat'] = implode(',', $query['advps_category']); } } else { $post_type_obj = get_post_type_object($query['advps_post_types']); if (in_array('category', $post_type_obj->taxonomies)) { if (isset($query['advps_category'])) { $query_arg['cat'] = implode(',', $query['advps_category']); } } } } } elseif ($qtype == 'plist') { $query_arg = array('post_type' => $plist['advps_post_stypes'] ? $plist['advps_post_stypes'] : 'post', 'post__in' => $plist['advps_plist'], 'posts_per_page' => $plist['advps_plistmax'] ? $plist['advps_plistmax'] : 10, 'orderby' => $plist['advps_plistorder_by'] ? $plist['advps_plistorder_by'] : 'date', 'order' => $plist['advps_plistorder'] ? $plist['advps_plistorder'] : 'DESC'); } $template = $res1[0]->template; if (($template == "one" || $template == "two") && !post_type_supports($query['advps_post_types'], 'thumbnail')) { return; } if ($template != 'two') { if ($content['advps_excerptlen']) { update_option('advps_excerptlen', $content['advps_excerptlen']); } else { update_option('advps_excerptlen', 30); } add_filter('excerpt_length', 'advps_excerpt_length', 999); } ob_start(); ?> <!-- This slideshow output is generated with Advanced post slider a multipurpose responsive WordPress slideshow plugin - http://www.wpcue.com/wordpress-plugins/advanced-post-slider/ --> <style> #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-viewport { <?php if ($container['advps_remove_shd'] == 'no') { ?> -moz-box-shadow: <?php echo $container['advps_bxshad1'] . 'px ' . $container['advps_bxshad2'] . 'px ' . $container['advps_bxshad3'] . 'px ' . $container['advps_bxshadcolor']; ?> ; -webkit-box-shadow: <?php echo $container['advps_bxshad1'] . 'px ' . $container['advps_bxshad2'] . 'px ' . $container['advps_bxshad3'] . 'px ' . $container['advps_bxshadcolor']; ?> ; box-shadow: <?php echo $container['advps_bxshad1'] . 'px ' . $container['advps_bxshad2'] . 'px ' . $container['advps_bxshad3'] . 'px ' . $container['advps_bxshadcolor']; ?> ; <?php } if ($container['advps_remove_border'] == 'no') { ?> border: <?php echo $container['advps_border_size'] . 'px ' . $container['advps_border_type'] . ' ' . $container['advps_border_color']; ?> ; <?php } ?> background:<?php echo $container['advps_bgcolor']; ?> ; } #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager{ text-align: <?php echo $navigation['advps_pager_align']; ?> ; <?php if ($navigation['advps_pager_align'] == 'right') { echo 'padding-right:5px'; } elseif ($navigation['advps_pager_align'] == 'left') { echo 'padding-left:5px'; } ?> ; } #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager { bottom:<?php echo $navigation['advps_pager_bottom']; ?> px; z-index:999; } #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-controls-auto { bottom:<?php echo $navigation['advps_ppause_bottom']; ?> px; } #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager { text-align: <?php echo $navigation['advps_pager_align']; ?> ; } #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-controls-auto { z-index:99999; <?php if ($navigation['advps_ppause_align'] == 'left') { echo 'left:5px;width:35px;'; } elseif ($navigation['advps_ppause_align'] == 'right') { echo 'right:0px;width:35px;'; } else { echo 'text-align:center;width:100%;'; } ?> } <?php if ($navigation['advps_exclude_pager'] == 'no' && (isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number')) { ?> #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager.bx-default-pager a { margin: 2px 2px 2px 0; padding:3px 8px 3px 8px !important; text-decoration:none; width:auto; display:block; color:#FFFFFF; font-size:11px; font-weight:bold; text-shadow: 0px 1px 1px #666666; background-color:#333333; background: -webkit-gradient(linear, 0 top, 0 bottom, from(#666666), to(#000000)); background: -moz-linear-gradient(#555555, #000000); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#666666', endColorstr='#000000',GradientType=0 ); background-image: -ms-linear-gradient(top, #666666 0%, #000000 100%); background-image: -o-linear-gradient(top, #666666 0%, #000000 100%); background-repeat:no-repeat !important; background-position:center !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager.bx-default-pager a:hover, #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager.bx-default-pager a.active{ color:#000000; text-shadow: 0 1px 0 #FFFFFF; background-color:#FFFFFF; background:-moz-linear-gradient(#FFFFFF, #E0E0E0); background:-webkit-gradient(linear, 0 top, 0 bottom, from(#FFFFFF), to(#E0E0E0)); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#E0E0E0',GradientType=0 ); background-image: -ms-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%); background-image: -o-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%); } <?php } elseif ($navigation['advps_exclude_pager'] == 'no' && (!isset($navigation['advps_pager_type']) || ($navigation['advps_pager_type'] == 'bullet' || $slider['advps_slider_type'] != 'standard' && $navigation['advps_pager_type'] == 'thumb'))) { ?> #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager.bx-default-pager a { background: #666; text-indent: -9999px; display: block; width: 10px; height: 10px; margin: 0 5px; outline: 0; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; text-align:left; } #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager.bx-default-pager a:hover, #advps_container<?php echo $sldshowID; ?> .bx-wrapper .bx-pager.bx-default-pager a.active { background: #000; } <?php } ?> /* thumbnail pager*/ #advps_container<?php echo $sldshowID; ?> #bx-pager { width:100%; position:absolute; bottom:<?php echo $navigation['advps_pager_bottom']; ?> px; text-align: <?php echo $navigation['advps_pager_align']; ?> ; z-index: 9999; } #advps_container<?php echo $sldshowID; ?> #bx-pager a img { border: 1px solid #CCCCCC; padding: 3px; } #advps_container<?php echo $sldshowID; ?> #bx-pager a:hover img, #advps_container<?php echo $sldshowID; ?> #bx-pager a.active img { border: 1px solid #666666; } /* medai queries */ #advps_container<?php echo $sldshowID; ?> .advs-title,#advps_container<?php echo $sldshowID; ?> .advs-title a { font-size:<?php if (isset($content['advps_titleFsizeL'])) { echo $content['advps_titleFsizeL']; } else { echo 20; } ?> px; line-height:<?php if (isset($content['advps_titleLheightL'])) { echo $content['advps_titleLheightL']; } else { echo 20; } ?> px; } #advps_container<?php echo $sldshowID; ?> .advps-slide p { font-size:<?php if (isset($content['advps_excptFsizeL'])) { echo $content['advps_excptFsizeL']; } else { echo 14; } ?> px; line-height:<?php if (isset($content['advps_excptLheightL'])) { echo $content['advps_excptLheightL']; } else { echo 14; } ?> px; } @media screen and (max-width: 1024px){ #advps_container<?php echo $sldshowID; ?> .advs-title,#advps_container<?php echo $sldshowID; ?> .advs-title a { font-size:<?php if (isset($content['advps_titleFsize1'])) { echo $content['advps_titleFsize1']; } else { echo 18; } ?> px; line-height:<?php if (isset($content['advps_titleLheight1'])) { echo $content['advps_titleLheight1']; } else { echo 18; } ?> px; } #advps_container<?php echo $sldshowID; ?> .advps-slide p { font-size:<?php if (isset($content['advps_excptFsize1'])) { echo $content['advps_excptFsize1']; } else { echo 12; } ?> px; line-height:<?php if (isset($content['advps_excptLheight1'])) { echo $content['advps_excptLheight1']; } else { echo 12; } ?> px; } } @media screen and (max-width: 768px){ #advps_container<?php echo $sldshowID; ?> h2.advs-title, #advps_container<?php echo $sldshowID; ?> h2.advs-title a { font-size:<?php if (isset($content['advps_titleFsize2'])) { echo $content['advps_titleFsize2']; } else { echo 16; } ?> px; line-height:<?php if (isset($content['advps_titleLheight2'])) { echo $content['advps_titleLheight2']; } else { echo 16; } ?> px; } #advps_container<?php echo $sldshowID; ?> .advps-slide p { font-size:<?php if (isset($content['advps_excptFsize2'])) { echo $content['advps_excptFsize2']; } else { echo 12; } ?> px; line-height:<?php if (isset($content['advps_excptLheight2'])) { echo $content['advps_excptLheight2']; } else { echo 12; } ?> px; } } @media screen and (max-width: 650px){ #advps_container<?php echo $sldshowID; ?> h2.advs-title, #advps_container<?php echo $sldshowID; ?> h2.advs-title a { font-size:<?php if (isset($content['advps_titleFsize3'])) { echo $content['advps_titleFsize3']; } else { echo 15; } ?> px; line-height:<?php if (isset($content['advps_titleLheight3'])) { echo $content['advps_titleLheight3']; } else { echo 15; } ?> px; } #advps_container<?php echo $sldshowID; ?> .advps-slide p { font-size:<?php if (isset($content['advps_excptFsize3'])) { echo $content['advps_excptFsize3']; } else { echo 12; } ?> px; line-height:<?php if (isset($content['advps_excptLheight3'])) { echo $content['advps_excptLheight3']; } else { echo 12; } ?> px; } } @media screen and (max-width: 480px){ #advps_container<?php echo $sldshowID; ?> h2.advs-title, #advps_container<?php echo $sldshowID; ?> h2.advs-title a { font-size:<?php if (isset($content['advps_titleFsize4'])) { echo $content['advps_titleFsize4']; } else { echo 15; } ?> px; line-height:<?php if (isset($content['advps_titleLheight4'])) { echo $content['advps_titleLheight4']; } else { echo 15; } ?> px; } #advps_container<?php echo $sldshowID; ?> .advps-slide p { font-size:<?php if (isset($content['advps_excptFsize4'])) { echo $content['advps_excptFsize4']; } else { echo 12; } ?> px; line-height:<?php if (isset($content['advps_excptLheight4'])) { echo $content['advps_excptLheight4']; } else { echo 12; } ?> px; } } @media screen and (max-width: 320px){ #advps_container<?php echo $sldshowID; ?> h2.advs-title, #advps_container<?php echo $sldshowID; ?> h2.advs-title a { font-size:<?php if (isset($content['advps_titleFsize5'])) { echo $content['advps_titleFsize5']; } else { echo 15; } ?> px; line-height:<?php if (isset($content['advps_titleLheight5'])) { echo $content['advps_titleLheight5']; } else { echo 15; } ?> px; } #advps_container<?php echo $sldshowID; ?> .advps-slide p { font-size:<?php if (isset($content['advps_excptFsize5'])) { echo $content['advps_excptFsize5']; } else { echo 12; } ?> px; line-height:<?php if (isset($content['advps_excptLheight5'])) { echo $content['advps_excptLheight5']; } else { echo 12; } ?> px; } } </style> <script type="text/javascript"> jQuery(document).ready(function($){ $('#advpsslideshow_<?php echo $sldshowID; ?> ').bxSlider({ useCSS:<?php if ($slider['advps_transition'] == 'css3') { echo 1; } else { echo 0; } ?> , slideMargin: <?php echo $slider['advps_sldmargin']; ?> , speed: <?php echo $slider['advps_speed']; ?> , <?php if ($slider['advps_slider_type'] == 'carousel' || $slider['advps_slider_type'] == 'ticker') { ?> minSlides: <?php echo $caro_ticker['advps_caro_slds']; ?> , maxSlides: <?php echo $caro_ticker['advps_caro_slds']; ?> , slideWidth: <?php echo $caro_ticker['advps_caro_sldwidth']; ?> , <?php } else { if ($navigation['advps_pager_type'] == 'thumb') { ?> pagerCustom: '#bx-pager', <?php } ?> mode: '<?php echo $slider['advps_effects']; ?> ', <?php } ?> <?php if ($slider['advps_slider_type'] != 'ticker') { ?> auto: <?php if ($slider['advps_autoplay'] == 'yes') { echo 1; } else { echo 0; } ?> , autoHover: <?php if ($slider['advps_ps_hover'] == 'yes') { echo 1; } else { echo 0; } ?> , pause: <?php echo $slider['advps_timeout']; ?> , easing: 'linear', controls: <?php if ($navigation['advps_exclude_nxtprev'] == 'no') { echo 1; } else { echo 0; } ?> , pager: <?php if ($navigation['advps_exclude_pager'] == 'no') { echo 1; } else { echo 0; } ?> , autoControls: <?php if ($navigation['advps_exclude_playpause'] == 'no') { echo 1; } else { echo 0; } ?> <?php } else { ?> ticker: true, tickerHover:<?php if ($slider['advps_ps_hover'] == 'yes') { echo 1; } else { echo 0; } ?> <?php } ?> }); <?php if ($template == "one" || $template == "three") { ?> $("#advpsslideshow_<?php echo $sldshowID; ?> .advs-title a").hover(function(){ $(this).css('color','<?php echo $content['advps_titleHcolor']; ?> '); },function(){ $(this).css('color','<?php echo $content['advps_titleFcolor']; ?> '); }); <?php } ?> $("#advpsslideshow_<?php echo $sldshowID; ?> .advps-slide").hover(function(){ <?php if ($template == 'one' && $content['advps_excpt_visibility'] == 'show on hover') { ?> if(!$(this).find(".advps-excerpt-one").is(":animated")){ $(this).find(".advps-excerpt-one").fadeIn(200,'linear',function(){}); } <?php } ?> },function(){ <?php if ($template == 'one' && $content['advps_excpt_visibility'] == 'show on hover') { ?> $(this).find(".advps-excerpt-one").fadeOut(200,'linear',function(){}); <?php } ?> }); }); </script> <div class="row home-slider"> <div id="advps_container<?php echo $sldshowID; ?> " class="advps-slide-container" style="overflow:hidden;max-width:<?php echo $container['advps_sld_width']; ?> px;<?php if (isset($container['advps_centering']) && $container['advps_centering'] == 'yes') { echo 'margin:auto;'; } ?> "> <div id="<?php echo "advpsslideshow_" . $sldshowID; ?> "> <?php $count = 1; $the_query = new WP_Query($query_arg); while ($the_query->have_posts()) { $the_query->the_post(); if ($template == 'one') { ?> <div class="advps-slide"> <?php if ($content['advps_ed_link'] == 'enable') { ?> <a target="<?php echo $content['advps_link_target']; ?> " href="<?php if ($content['advps_link_type'] == 'permalink') { the_permalink(); } else { echo get_post_meta($post->ID, 'advps_custom_link', true); } ?> " <?php if (isset($content['advps_link_rel']) && $content['advps_link_rel'] != 'none') { ?> rel="<?php echo $content['advps_link_rel']; ?> "<?php } ?> ><?php } ?> <?php if (has_post_thumbnail()) { $advps_custom_thumb = $wpdb->get_results("select width,height,crop from " . $wpdb->prefix . "advps_thumbnail where thumb_name = '" . $container['advps_thumbnail'] . "'"); if ($advps_custom_thumb) { $thmb_image = wp_get_attachment_url(get_post_thumbnail_id()); $advps_image = aq_resize($thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height, $advps_custom_thumb[0]->crop, true, true); echo '<img src="' . $advps_image . '" width="' . $advps_custom_thumb[0]->width . '" height="' . $advps_custom_thumb[0]->height . '" alt="' . get_the_title() . '" />'; } else { the_post_thumbnail($container['advps_thumbnail']); } } elseif (isset($container['advps_default_image']) && $container['advps_default_image'] != '') { ?> <img src="<?php echo $container['advps_default_image']; ?> " class="wp-post-image" alt="<?php the_title(); ?> " /> <?php } ?> <?php if ($content['advps_ed_link'] == 'enable') { ?> </a><?php } ?> <div class="advps-excerpt-<?php echo $template; ?> col-sm-12" style="width:<?php echo $content['advps_overlay_width']; ?> %;height:<?php echo $content['advps_overlay_height']; ?> %;<?php if ($content['advps_excpt_visibility'] == 'show on hover') { ?> display:none;<?php } if ($content['advps_excpt_position'] == 'left') { ?> top:0; left:0;<?php } elseif ($content['advps_excpt_position'] == 'right') { ?> top:0; right:0;<?php } elseif ($content['advps_excpt_position'] == 'bottom') { ?> bottom:0; left:0;<?php } ?> "> <div class="advps-overlay-<?php echo $template; ?> " style="background-color:<?php echo $content['advps_overlay_color']; ?> ; -moz-opacity:<?php echo $content['advps_overlay_opacity']; ?> ;filter:alpha(opacity=<?php echo $content['advps_overlay_opacity'] * 100; ?> );opacity:<?php echo $content['advps_overlay_opacity']; ?> ;"></div> <div class="advps-excerpt-block-<?php echo $template; ?> " style="text-align:<?php echo $content['advps_text_align']; ?> ;color:<?php echo $content['advps_excptFcolor']; ?> ;-moz-opacity:<?php echo $content['advps_text_opacity']; ?> ;filter:alpha(opacity=<?php echo $content['advps_text_opacity'] * 100; ?> );opacity:<?php echo $content['advps_text_opacity']; ?> ;"> <a href="<?php the_permalink(); ?> "><h3 class="advs-sub-title"><?php the_subtitle(); ?> </h3></a> <<?php echo $content['advps_ttitle_tag']; ?> class="advs-title" style="color:<?php echo $content['advps_titleFcolor']; ?> "><?php if ($content['advps_ed_link'] == 'enable') { ?> <a target="<?php echo $content['advps_link_target']; ?> " href="<?php if ($content['advps_link_type'] == 'permalink') { the_permalink(); } else { echo get_post_meta($post->ID, 'advps_custom_link', true); } ?> " style="margin:5px 0px 10px 0px;color:<?php echo $content['advps_titleFcolor']; ?> " <?php if (isset($content['advps_link_rel']) && $content['advps_link_rel'] != 'none') { ?> rel="<?php echo $content['advps_link_rel']; ?> "<?php } ?> ><?php } the_title(); if ($content['advps_ed_link'] == 'enable') { ?> </a><?php } ?> </<?php echo $content['advps_ttitle_tag']; ?> > <?php if ($content['advps_exclude_excpt'] == 'no') { the_excerpt(); } ?> <p class="icon"><a href="<?php the_permalink(); ?> "><i class="fa fa-play"></a></i></p> </div> </div> </div> <?php } elseif ($template == 'two') { ?> <div class="advps-slide"> <?php if ($container['advps_ed_link'] == 'enable') { ?> <a target="<?php echo $container['advps_link_target']; ?> " href="<?php if ($container['advps_link_type'] == 'permalink') { the_permalink(); } else { echo get_post_meta($post->ID, 'advps_custom_link', true); } ?> " <?php if (isset($container['advps_link_rel']) && $container['advps_link_rel'] != 'none') { ?> rel="<?php echo $container['advps_link_rel']; ?> "<?php } ?> ><?php } ?> <?php if (has_post_thumbnail()) { $advps_custom_thumb = $wpdb->get_results("select width,height,crop from " . $wpdb->prefix . "advps_thumbnail where thumb_name = '" . $container['advps_thumbnail'] . "'"); if ($advps_custom_thumb) { $thmb_image = wp_get_attachment_url(get_post_thumbnail_id()); $advps_image = aq_resize($thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height, $advps_custom_thumb[0]->crop, true, true); echo '<img src="' . $advps_image . '" width="' . $advps_custom_thumb[0]->width . '" height="' . $advps_custom_thumb[0]->height . '" alt="' . get_the_title() . '" />'; } else { the_post_thumbnail($container['advps_thumbnail']); } } elseif (isset($container['advps_default_image']) && $container['advps_default_image'] != '') { ?> <img src="<?php echo $container['advps_default_image']; ?> " class="wp-post-image" alt="<?php the_title(); ?> " /> <?php } ?> <?php if ($container['advps_ed_link'] == 'enable') { ?> </a><?php } ?> </div> <?php } elseif ($template == 'three') { if (!isset($container['advps_padu1'])) { $container['advps_padu1'] = 'px'; } if (!isset($container['advps_padu2'])) { $container['advps_padu2'] = 'px'; } if (!isset($container['advps_padu3'])) { $container['advps_padu3'] = 'px'; } if (!isset($container['advps_padu4'])) { $container['advps_padu4'] = 'px'; } ?> <div class="advps-slide"> <div class="advps-slide-field-three" style="position:relative;float:left;padding:<?php echo $container['advps_contpad1'] . $container['advps_padu1'] . ' ' . $container['advps_contpad2'] . $container['advps_padu2'] . ' ' . $container['advps_contpad3'] . $container['advps_padu3'] . ' ' . $container['advps_contpad4'] . $container['advps_padu4']; ?> ;"> <?php if (in_array('thumb', $content['advps_content_set'])) { if ($content['advps_ed_link'] == 'enable') { ?> <a target="<?php echo $content['advps_link_target']; ?> " href="<?php if ($content['advps_link_type'] == 'permalink') { the_permalink(); } else { echo get_post_meta($post->ID, 'advps_custom_link', true); } ?> " <?php if (isset($content['advps_link_rel']) && $content['advps_link_rel'] != 'none') { ?> rel="<?php echo $content['advps_link_rel']; ?> "<?php } ?> ><?php } ?> <?php if (has_post_thumbnail()) { $advps_custom_thumb = $wpdb->get_results("select width,height,crop from " . $wpdb->prefix . "advps_thumbnail where thumb_name = '" . $container['advps_thumbnail'] . "'"); if ($advps_custom_thumb) { $thmb_image = wp_get_attachment_url(get_post_thumbnail_id()); $advps_image = aq_resize($thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height, $advps_custom_thumb[0]->crop, true, true); echo '<img src="' . $advps_image . '" width="' . $advps_custom_thumb[0]->width . '" height="' . $advps_custom_thumb[0]->height . '" alt="' . get_the_title() . '" />'; } else { the_post_thumbnail($container['advps_thumbnail']); } } elseif (isset($container['advps_default_image']) && $container['advps_default_image'] != '') { ?> <img src="<?php echo $container['advps_default_image']; ?> " class="wp-post-image" alt="<?php the_title(); ?> " /> <?php } ?> <?php if ($content['advps_ed_link'] == 'enable') { ?> </a><?php } } ?> <div class="advps-excerpt-<?php echo $template; ?> " style="position:relative;float:left;max-width:<?php echo $content['advps_cont_width'] - ($container['advps_contpad2'] + $container['advps_contpad4']); ?> px;z-index:0; color:<?php echo $content['advps_excptFcolor']; ?> ;"> <a href="<?php the_permalink(); ?> "><h3 class="advs-sub-title"><?php the_subtitle(); ?> </h3></a> <?php if (in_array('title', $content['advps_content_set'])) { ?> <<?php echo $content['advps_ttitle_tag']; ?> class="advs-title" style="color:<?php echo $content['advps_titleFcolor']; ?> ;margin:5px 0px 10px 0px;"> <?php if ($content['advps_ed_link'] == 'enable') { ?> <a target="<?php echo $content['advps_link_target']; ?> " href="<?php if ($content['advps_link_type'] == 'permalink') { the_permalink(); } else { echo get_post_meta($post->ID, 'advps_custom_link', true); } ?> " style="color:<?php echo $content['advps_titleFcolor']; ?> ;margin:5px 0px 10px 0px;" <?php if (isset($content['advps_link_rel']) && $content['advps_link_rel'] != 'none') { ?> rel="<?php echo $content['advps_link_rel']; ?> "<?php } ?> ><?php } ?> <?php the_title(); ?> <?php if ($content['advps_ed_link'] == 'enable') { ?> </a><?php } ?> </<?php echo $content['advps_ttitle_tag']; ?> ><?php } ?> <?php if (in_array('content', $content['advps_content_set'])) { the_content(); } elseif (in_array('excerpt', $content['advps_content_set'])) { the_excerpt(); } ?> </div> </div> </div> <?php } $count++; } wp_reset_query(); ?> </div> <?php if ($slider['advps_slider_type'] == 'standard' && $navigation['advps_pager_type'] == 'thumb' && $navigation['advps_exclude_pager'] == 'no') { ?> <div id="bx-pager"> <?php $count = 0; $the_query = new WP_Query($query_arg); while ($the_query->have_posts()) { $the_query->the_post(); if (has_post_thumbnail()) { $thmb_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'thumbnail'); ?> <a data-slide-index="<?php echo $count; ?> " href=""><img src="<?php echo $thmb_image[0]; ?> " style="width:<?php echo $navigation['advps_pthumb_width']; ?> %; height:auto;<?php if ($count + 1 < $the_query->post_count) { echo 'margin-right:5px;'; } ?> " /></a> <?php } elseif (isset($container['advps_default_image']) && $container['advps_default_image'] != '') { $thmb_image = $container['advps_default_image']; ?> <a data-slide-index="<?php echo $count; ?> " href=""><img src="<?php echo $thmb_image; ?> " style="width:<?php echo $navigation['advps_pthumb_width']; ?> %; height:auto;<?php if ($count + 1 < $the_query->post_count) { echo "margin-right:5px;"; } ?> " /></a> <?php } ?> <?php $count++; } wp_reset_query(); ?> </div> <?php } ?> </div><!-- end advps-slide-container --> <!-- / Advanced post slider a multipurpose responsive slideshow plugin --> </div> <?php $advps_res = ob_get_contents(); ob_end_clean(); return $advps_res; }
/** * Template part to display the post/page header * * @package pgb */ ?> <div class="col-md-12"> <?php if (is_single() || is_page()) { the_title('<h1 class="post-title">', '</h1>'); the_subtitle('<h3 class="page-sub-title">', '</h3>'); } else { the_title('<h2 class="page-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>'); the_subtitle('<h3 class="page-sub-title">', '</h3>'); } ?> <?php if ('post' == get_post_type()) { ?> <div class="entry-meta"> <?php pgb_posted_on(); ?> </div><!-- .entry-meta --> <?php } ?> </div>
if (is_review()) { echo 'Review'; } ?> </span> <h1><span <?php if (is_review()) { echo 'itemprop="itemReviewed"'; } ?> ><?php the_title(); ?> </span></h1> <p class="subtitle"><?php the_subtitle(); ?> </p> <?php if (is_single()) { ?> <a href="<?php echo get_author_posts_url(get_the_author_meta(null, $post->post_author)); ?> " class="author"> <?php the_avatar(64); ?> <span><?php echo the_author_meta('display_name', $post->post_author); ?>
<div class="loop-meta callout-meta" <?php hybrid_attr('loop-meta'); ?> > <h1 class="entry-title site-title loop-title" <?php hybrid_attr('loop-title'); ?> ><?php single_post_title(); ?> </h1> <?php /* Support for Subtitles Plugin. */ if (function_exists('the_subtitle')) { the_subtitle('<div class="entry-subtitle site-description loop-description">', '</div>'); } ?> <?php if (chuchadon_check_callout_output()) { // Check if there is Callout text and link. This function can be found in functions.php. ?> <?php // Set callout text and link $chuchadon_callout_text = '<a class="chuchadon-button" href="' . esc_url($chuchadon_callout_url) . '">' . esc_attr($chuchadon_callout_text) . '</a>'; ?> <div class="callout-title chuchadon-button" <?php hybrid_attr('loop-description');
<!-- Page Featured Image ================================================== --> <?php //the_post_thumbnail('careers-featured-narrow', array( 'class' => 'fixed img-responsive' )); $src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'careers-featured-narrow', false, ''); ?> <div class="parallax-container-single white" data-natural-height="768" data-natural-width="1920" data-image-src="<?php echo $src[0]; ?> " data-speed="0.2" data-bleed="10" data-parallax="scroll"> <div class="filter"></div> <div class="caption"> <header class="page-header"> <h1 class="section-title"><?php the_title(); ?> </h1> <?php if (function_exists('the_subtitle')) { the_subtitle('<h2 class="subtitle">', '</h2>'); } ?> </header> </div> </div>
" rel="bookmark"> <header class="summary-head-wrapper" style="background-color: #404040; background-image: url('<?php echo $feat_image; ?> ')"> <div class="main-head-holder"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="post-heading cta-header"> <h2 class="entry-title"><?php the_title(); ?> </h2> <?php if (function_exists('the_subtitle')) { the_subtitle('<h2 class="subheading">', '</h2>'); } ?> </div> </div> </div> </header> </a> <?php } else { ?> <?php echo '<h2 class="entry-title">'; ?> <a href="<?php the_permalink();