first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected title (breadcrubms) section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$background_image = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'breadcrumbs_background_image' ) : '';
|
||||
?>
|
||||
<section class="page_breadcrumbs ds background_cover section_padding_top_30 section_padding_bottom_25" <?php echo !empty( $background_image ) ? 'style="background-image: url(' . esc_url( $background_image['url'] ) . ')"' : ''; ?>>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<?php if ( !is_single() ) : ?>
|
||||
<h2>
|
||||
<?php
|
||||
get_template_part( 'template-parts/breadcrumbs/page-title-text' );
|
||||
?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if ( function_exists( 'woocommerce_breadcrumb123' ) ) {
|
||||
woocommerce_breadcrumb( array(
|
||||
'delimiter' => '',
|
||||
'wrap_before' => '<nav class="woocommerce-breadcrumb" ' . ( is_single() ? 'itemprop="breadcrumb"' : '' ) . '><ol class="breadcrumb big-spacing darklinks">',
|
||||
'wrap_after' => '</ol></nav>',
|
||||
'before' => '<li>',
|
||||
'after' => '</li>',
|
||||
'home' => esc_html_x( 'Home', 'breadcrumb', 'solarify' )
|
||||
) );
|
||||
} elseif ( function_exists( 'fw_ext_breadcrumbs' ) ) {
|
||||
fw_ext_breadcrumbs();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected title (breadcrubms) section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<section class="page_breadcrumbs cs section_padding_50 gradient table_section table_section_md">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 text-center text-md-left">
|
||||
<h2 class="small">
|
||||
<?php
|
||||
get_template_part( 'template-parts/breadcrumbs/page-title-text' );
|
||||
?>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-md-6 text-center text-md-right">
|
||||
<?php
|
||||
if ( function_exists( 'fw_ext_breadcrumbs' ) ) {
|
||||
fw_ext_breadcrumbs();
|
||||
}
|
||||
?>
|
||||
</div><!-- eof .col-* -->
|
||||
</div><!-- eof .row -->
|
||||
</div><!-- eof .container -->
|
||||
</section><!-- eof .page_breadcrumbs -->
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected title (breadcrubms) section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<section class="page_breadcrumbs cs section_padding_top_25 section_padding_bottom_25 gradient">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<h2 class="grey">
|
||||
<?php
|
||||
get_template_part( 'template-parts/breadcrumbs/page-title-text' );
|
||||
?>
|
||||
</h2>
|
||||
<?php
|
||||
if ( function_exists( 'fw_ext_breadcrumbs' ) ) {
|
||||
fw_ext_breadcrumbs();
|
||||
}
|
||||
?>
|
||||
</div><!-- eof .col-* -->
|
||||
</div><!-- eof .row -->
|
||||
</div><!-- eof .container -->
|
||||
</section><!-- eof .page_breadcrumbs -->
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected title (breadcrubms) section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<section class="page_breadcrumbs ds section_padding_top_25 section_padding_bottom_25">
|
||||
<div class="container">
|
||||
<div class="col-sm-12 text-center text-md-left display_table_md">
|
||||
<h2 class="small display_table_cell_md">
|
||||
<?php
|
||||
get_template_part( 'template-parts/breadcrumbs/page-title-text' );
|
||||
?>
|
||||
</h2>
|
||||
<?php if ( function_exists( 'fw_ext_breadcrumbs' ) ) { ?>
|
||||
<div class="display_table_cell_md breadcrumb">
|
||||
<?php fw_ext_breadcrumbs(); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div><!-- eof .col-* .display_table_md -->
|
||||
</div><!-- eof .container -->
|
||||
</section><!-- eof .page_breadcrumbs -->
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected title (breadcrubms) section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<section class="page_breadcrumbs ls ms bg_image section_padding_top_25 section_padding_bottom_25">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<h2>
|
||||
<?php
|
||||
get_template_part( 'template-parts/breadcrumbs/page-title-text' );
|
||||
?>
|
||||
</h2>
|
||||
</div><!-- eof .col-* -->
|
||||
</div><!-- eof .row -->
|
||||
<?php if ( function_exists( 'fw_ext_breadcrumbs' ) ) { ?>
|
||||
<div class="bottom_breadcrumbs greylinks">
|
||||
<?php fw_ext_breadcrumbs(); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div><!-- eof .container -->
|
||||
</section><!-- eof .page_breadcrumbs -->
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying page title in page title section
|
||||
*
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( is_search() ) :
|
||||
printf( esc_html__( 'Search Results for: %s', 'solarify' ), get_search_query() );
|
||||
return;
|
||||
endif;
|
||||
|
||||
if ( is_home() ) :
|
||||
$title = function_exists( 'fw_get_db_ext_settings_option' && function_exists( 'fw_ext_breadcrumbs' ) ) ? fw_get_db_ext_settings_option( 'breadcrumbs', 'blogpage-title' ) : esc_html__( 'Blog', 'solarify' );
|
||||
echo esc_html( $title );
|
||||
return;
|
||||
endif;
|
||||
|
||||
if ( is_404() ) :
|
||||
$title = function_exists( 'fw_get_db_ext_settings_option' && function_exists( 'fw_ext_breadcrumbs' ) ) ? fw_get_db_ext_settings_option( 'breadcrumbs', '404-title' ) : esc_html__( '404', 'solarify' );
|
||||
echo esc_html( $title );
|
||||
return;
|
||||
endif;
|
||||
|
||||
if ( is_singular() ) :
|
||||
single_post_title();
|
||||
return;
|
||||
endif;
|
||||
|
||||
if ( is_archive() ) :
|
||||
the_archive_title();
|
||||
return;
|
||||
endif;
|
||||
168
wp-content/themes/solarify/template-parts/content-aside.php
Normal file
168
wp-content/themes/solarify/template-parts/content-aside.php
Normal file
@@ -0,0 +1,168 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying aside content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) :
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else:
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<div class="item-content">
|
||||
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( !empty( $post->post_content ) ) : ?>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endif; //is_search
|
||||
endif; // content check
|
||||
?>
|
||||
</div><!-- eof .item-content -->
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php endif; //is singular
|
||||
153
wp-content/themes/solarify/template-parts/content-event.php
Normal file
153
wp-content/themes/solarify/template-parts/content-event.php
Normal file
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying event content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) :
|
||||
//part of template for single event layout is overriden in framework-customizations/extensions/events/views/single.php
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<header class="entry-header">
|
||||
|
||||
<div class="entry-meta item-meta">
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && solarify_categorized_blog() ) : ?>
|
||||
<span
|
||||
class="categories-links"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></span>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
if ( 'post' == get_post_type() ) {
|
||||
solarify_posted_on();
|
||||
}
|
||||
?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php the_tags( '<footer class="entry-meta"><span class="tag-links categories-links theme_buttons small_buttons color1">', ' ', '</span></footer>' ); ?>
|
||||
|
||||
<?php
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else:
|
||||
$options = ( function_exists( 'fw_get_db_post_option' ) ) ? fw_get_db_post_option( $post->ID, fw()->extensions->get( 'events' )->get_event_option_id() ) : false;
|
||||
|
||||
//layout for events in feed is always two columns if it has a featured image
|
||||
$small_layout = ( ! $show_post_thumbnail ) ? false : true;
|
||||
if ( $small_layout ) : //additional markup for small layout post
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'with_shadow loop-color ' ); ?>>
|
||||
<div class="side-item side-md content-padding">
|
||||
<div class="row">
|
||||
<?php solarify_post_thumbnail( $small_layout ); ?>
|
||||
<div class="col-md-7">
|
||||
|
||||
<?php else : //standard layout markup ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding with_shadow loop-color' ); ?>>
|
||||
<?php
|
||||
solarify_post_thumbnail();
|
||||
endif; //small_format check
|
||||
?>
|
||||
<div class="item-content entry-content">
|
||||
<header class="entry-header bottommargin_20">
|
||||
<?php
|
||||
the_title( '<h4 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' );
|
||||
|
||||
if ( $options ): ?>
|
||||
<div class="entry-meta content-justify greylinks small-text no-spacing">
|
||||
<?php
|
||||
if ( ! empty( $options['event_children'][0] ) ) :
|
||||
if ( $options['event_children'][0]['event_date_range']['from'] ) : ?>
|
||||
<span class="rightpadding_20">
|
||||
<i class="fa fa-calendar highlight rightpadding_5" aria-hidden="true"></i>
|
||||
<?php
|
||||
echo esc_html( $options['event_children'][0]['event_date_range']['from'] ); ?>
|
||||
</span>
|
||||
<?php endif;
|
||||
endif;
|
||||
|
||||
if ( $options['event_location']['venue'] ) : ?>
|
||||
<span>
|
||||
<i class="fa fa-map-marker highlight rightpadding_5" aria-hidden="true"></i>
|
||||
<?php echo esc_html( $options['event_location']['venue'] ); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; //$options check
|
||||
?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
//categories
|
||||
if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && solarify_categorized_blog() ) :
|
||||
?>
|
||||
<div
|
||||
class="categories-links topmargin_20"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
<?php endif; //categories
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
||||
//not showing tags in feed
|
||||
//the_tags( '', '' );
|
||||
?>
|
||||
</div><!-- eof .item-content -->
|
||||
<?php if ( $small_layout ) : //additional markup for small format post ?>
|
||||
</div><!-- eof .col-md-6 -->
|
||||
</div><!-- eof .row -->
|
||||
</div><!-- eof .side-item -->
|
||||
<?php endif; //small_format
|
||||
?>
|
||||
</article><!-- #post-## -->
|
||||
|
||||
<?php endif; //is singular ?>
|
||||
199
wp-content/themes/solarify/template-parts/content-gallery.php
Normal file
199
wp-content/themes/solarify/template-parts/content-gallery.php
Normal file
@@ -0,0 +1,199 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) :
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else:
|
||||
$post_layout = 'post-layout-standard';
|
||||
if ( function_exists( 'fw_get_db_post_option' ) ) {
|
||||
$post_layout = fw_get_db_post_option( $post->ID, 'post-layout', 'post-layout-standard' );
|
||||
}
|
||||
//standard feed layout (image at the top or not image at all if option is standard or has no post thumbnail)
|
||||
// if ($post_layout == 'post-layout-standard' || ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ) :
|
||||
$small_layout = ( $post_layout == 'post-layout-standard' || ! $show_post_thumbnail ) ? false : true;
|
||||
if ( $small_layout ) : //additional markup for small layout post
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'format-small-image with_background ' ); ?>>
|
||||
<div class="side-item content-padding">
|
||||
<div class="row">
|
||||
<?php solarify_post_thumbnail( $small_layout ); ?>
|
||||
<div class="col-md-6">
|
||||
|
||||
<?php else : //standard layout markup ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background ' ); ?>>
|
||||
<?php
|
||||
solarify_post_thumbnail();
|
||||
endif; //small_format check
|
||||
?>
|
||||
|
||||
<div class="item-content">
|
||||
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( !empty( $post->post_content ) ) : ?>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endif; //is_search
|
||||
endif; // content check
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
//not showing tags in feed
|
||||
//the_tags( '', '' );
|
||||
?>
|
||||
</div><!-- eof .item-content -->
|
||||
<?php if ( $small_layout ) : //additional markup for small format post ?>
|
||||
</div><!-- eof .col-md-6 -->
|
||||
</div><!-- eof .row -->
|
||||
</div><!-- eof .side-item -->
|
||||
<?php endif; //small_format
|
||||
?>
|
||||
</article><!-- #post-## -->
|
||||
|
||||
<?php endif; //is singular ?>
|
||||
172
wp-content/themes/solarify/template-parts/content-image.php
Normal file
172
wp-content/themes/solarify/template-parts/content-image.php
Normal file
@@ -0,0 +1,172 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying image content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) : ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else: ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php
|
||||
solarify_post_thumbnail();
|
||||
?>
|
||||
<div class="item-content">
|
||||
|
||||
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
|
||||
} ?>
|
||||
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( !empty( $post->post_content ) ) : ?>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endif; //is_search
|
||||
endif; // content check
|
||||
?>
|
||||
</div><!-- eof .item-content -->
|
||||
</article><!-- #post-## -->
|
||||
<?php endif; //is singular ?>
|
||||
173
wp-content/themes/solarify/template-parts/content-link.php
Normal file
173
wp-content/themes/solarify/template-parts/content-link.php
Normal file
@@ -0,0 +1,173 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying link content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) : ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else:
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<div class="item-content">
|
||||
|
||||
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
|
||||
} ?>
|
||||
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( !empty( $post->post_content ) ) : ?>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endif; //is_search
|
||||
endif; // content check
|
||||
?>
|
||||
|
||||
</div><!-- eof .item-content -->
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php endif; //is singular
|
||||
21
wp-content/themes/solarify/template-parts/content-none.php
Normal file
21
wp-content/themes/solarify/template-parts/content-none.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying a "No posts found" message
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||
<p><?php printf( esc_html__( 'Ready to publish your first post?', 'solarify') . '<a href="%1$s">' . esc_html__( 'Get started here', 'solarify' ). '</a>.', admin_url( 'post-new.php' ) ); ?></p>
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'solarify' ); ?></p>
|
||||
<div class="widget widget_search">
|
||||
<?php get_search_form(); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'solarify' ); ?></p>
|
||||
<div class="widget widget_search">
|
||||
<?php get_search_form(); ?>
|
||||
</div>
|
||||
<?php endif;
|
||||
76
wp-content/themes/solarify/template-parts/content-page.php
Normal file
76
wp-content/themes/solarify/template-parts/content-page.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/**
|
||||
* The template used for displaying page content
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( is_singular() ) :
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<header class="entry-header">
|
||||
<?php
|
||||
// Page thumbnail and title.
|
||||
solarify_post_thumbnail();
|
||||
?>
|
||||
</header><!-- .entry-header -->
|
||||
<?php
|
||||
endif; //has_post_thumbnail
|
||||
?>
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content();
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
<?php
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php else: ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'with_background with_padding big-padding'); ?>>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php
|
||||
// Page thumbnail and title.
|
||||
solarify_post_thumbnail();
|
||||
the_title( '<h3 class="entry-title bottommargin_0"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( is_search() ) : ?>
|
||||
<?php if ( get_the_excerpt() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<?php if ( solarify_get_excerpt_for_page_with_unyson_builder() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php echo wp_kses_post( solarify_get_excerpt_for_page_with_unyson_builder() ); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</article><!-- #post-## -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying product content within loops
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/content-product.php.
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer).
|
||||
* will need to copy the new files to your theme to maintain compatibility. We try to do this.
|
||||
* as little as possible, but it does happen. When this occurs the version of the template file will.
|
||||
* be bumped and the readme will list any important changes.
|
||||
*
|
||||
* @see http://docs.woothemes.com/document/template-structure/
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.5.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $product, $woocommerce_loop;
|
||||
|
||||
// Store loop count we're currently on
|
||||
if ( empty( $woocommerce_loop['loop'] ) ) {
|
||||
$woocommerce_loop['loop'] = 0;
|
||||
}
|
||||
|
||||
// Store column count for displaying the grid
|
||||
if ( empty( $woocommerce_loop['columns'] ) ) {
|
||||
$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
|
||||
}
|
||||
|
||||
// Ensure visibility
|
||||
if ( ! $product || ! $product->is_visible() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Increase loop count
|
||||
$woocommerce_loop['loop'] ++;
|
||||
|
||||
// Extra post classes
|
||||
$classes = array( 'text-center' );
|
||||
if ( 0 === ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 === $woocommerce_loop['columns'] ) {
|
||||
$classes[] = 'first';
|
||||
}
|
||||
if ( 0 === $woocommerce_loop['loop'] % $woocommerce_loop['columns'] ) {
|
||||
$classes[] = 'last';
|
||||
}
|
||||
?>
|
||||
<article <?php post_class( $classes ); ?>>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* woocommerce_before_shop_loop_item hook.
|
||||
*
|
||||
* @hooked woocommerce_template_loop_product_link_open - 10
|
||||
*/
|
||||
do_action( 'woocommerce_before_shop_loop_item' );
|
||||
|
||||
/**
|
||||
* woocommerce_before_shop_loop_item_title hook.
|
||||
*
|
||||
* @hooked woocommerce_show_product_loop_sale_flash - 10
|
||||
* @hooked woocommerce_template_loop_product_thumbnail - 10
|
||||
*/
|
||||
do_action( 'woocommerce_before_shop_loop_item_title' );
|
||||
|
||||
/**
|
||||
* woocommerce_shop_loop_item_title hook.
|
||||
*
|
||||
* @hooked woocommerce_template_loop_product_title - 10
|
||||
*/
|
||||
do_action( 'woocommerce_shop_loop_item_title' );
|
||||
|
||||
/**
|
||||
* woocommerce_after_shop_loop_item_title hook.
|
||||
*
|
||||
* @hooked woocommerce_template_loop_rating - 5
|
||||
* @hooked woocommerce_template_loop_price - 10
|
||||
*/
|
||||
do_action( 'woocommerce_after_shop_loop_item_title' );
|
||||
|
||||
/**
|
||||
* woocommerce_after_shop_loop_item hook.
|
||||
*
|
||||
* @hooked woocommerce_template_loop_product_link_close - 5
|
||||
* @hooked woocommerce_template_loop_add_to_cart - 10
|
||||
*/
|
||||
do_action( 'woocommerce_after_shop_loop_item' );
|
||||
?>
|
||||
|
||||
</article>
|
||||
160
wp-content/themes/solarify/template-parts/content-quote.php
Normal file
160
wp-content/themes/solarify/template-parts/content-quote.php
Normal file
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying quote content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
$post_thumbnail = get_the_post_thumbnail( get_the_ID() );
|
||||
$additional_post_class = ( $post_thumbnail ) ? 'bg_teaser after_cover darkblue_bg' : '';
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) : ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content darklinks">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else: ?>
|
||||
<article
|
||||
id="post-<?php the_ID(); ?>" <?php post_class( 'ds bs vertical-item content-padding big-padding ' . $additional_post_class ); ?>>
|
||||
<?php
|
||||
echo empty ( $post_thumbnail ) ? '<div class="bg_overlay"></div>' : '';
|
||||
echo wp_kses_post ( $post_thumbnail );
|
||||
?>
|
||||
|
||||
<div class="item-content">
|
||||
|
||||
<header class="entry-header">
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title topmargin_20"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
<div class="entry-meta">
|
||||
<div class="inline-content darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
</div><!-- eof .item-content -->
|
||||
</article><!-- #post-## -->
|
||||
<?php endif; //is singular
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background ' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
|
||||
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
|
||||
} ?>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( !empty( $post->post_content ) ) : ?>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endif; //is_search
|
||||
endif; // content check
|
||||
?>
|
||||
</div><!-- eof .item-content -->
|
||||
</article><!-- #post-## -->
|
||||
168
wp-content/themes/solarify/template-parts/content-status.php
Normal file
168
wp-content/themes/solarify/template-parts/content-status.php
Normal file
@@ -0,0 +1,168 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
$post_thumbnail = get_the_post_thumbnail( get_the_ID() );
|
||||
$additional_post_class = ( $post_thumbnail ) ? 'bg_teaser after_cover darkblue_bg' : '';
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) : ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else: ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'ds bs vertical-item content-padding big-padding text-center ' . $additional_post_class ); ?>>
|
||||
<?php
|
||||
echo wp_kses_post ( $post_thumbnail );
|
||||
?>
|
||||
|
||||
<div class="item-content entry-content">
|
||||
<header class="entry-header">
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
global $post;
|
||||
echo get_avatar( $post->post_author ); ?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks topmargin_20"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title topmargin_20"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php
|
||||
the_excerpt();
|
||||
?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
<?php endif; //is_search ?>
|
||||
|
||||
<div class="entry-meta">
|
||||
<div class="inline-content darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- eof .item-content -->
|
||||
</article><!-- #post-## -->
|
||||
<?php endif; //is singular
|
||||
48
wp-content/themes/solarify/template-parts/content-team.php
Normal file
48
wp-content/themes/solarify/template-parts/content-team.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$ext_team_settings = fw()->extensions->get( 'team' )->get_settings();
|
||||
$taxonomy_name = $ext_team_settings['taxonomy_name'];
|
||||
|
||||
$pID = get_the_ID();
|
||||
$atts = fw_get_db_post_option($pID);
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background ' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
|
||||
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title bottommargin_0"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
<?php if ( ! empty( $atts['position'] ) ) : ?>
|
||||
<p class="small-text highlight"><?php echo wp_kses_post( $atts['position'] ); ?></p>
|
||||
<?php endif; //position ?>
|
||||
|
||||
<?php if ( ! empty( $atts['social_icons'] ) ) : ?>
|
||||
<div class="team-social-icons">
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $atts['social_icons'] ) );
|
||||
}
|
||||
?>
|
||||
</div><!-- eof social icons -->
|
||||
<?php endif; //social icons ?>
|
||||
</div><!-- eof .item-content -->
|
||||
</article><!-- #post-## -->
|
||||
219
wp-content/themes/solarify/template-parts/content-video.php
Normal file
219
wp-content/themes/solarify/template-parts/content-video.php
Normal file
@@ -0,0 +1,219 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying content video
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
//single item layout
|
||||
if(is_singular()) :
|
||||
|
||||
$column_classes = solarify_get_columns_classes();
|
||||
|
||||
//light or dark version
|
||||
$version = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'version' ) : 'light';
|
||||
$main_section_class = 'ls ms';
|
||||
?>
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<section class="<?php echo esc_attr( $main_section_class ); ?> section_padding_top_100 video-entry-thumbnail">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="<?php echo esc_attr( $main_section_class ); ?> page_content section_padding_top_50 section_padding_bottom_100 columns_padding_25">
|
||||
<?php else: ?>
|
||||
<section class="<?php echo esc_attr( $main_section_class ); ?> page_content section_padding_top_100 section_padding_bottom_100 columns_padding_25">
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div id="content" class="<?php echo esc_attr( $column_classes['main_column_class'] ); ?>">
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else:
|
||||
$post_layout = 'post-layout-standard';
|
||||
if (function_exists( 'fw_get_db_post_option' )) {
|
||||
$post_layout = fw_get_db_post_option( $post->ID, 'post-layout', 'post-layout-standard' );
|
||||
}
|
||||
//standard feed layout (image at the top or not image at all if option is standard or has no post thumbnail)
|
||||
// if ($post_layout == 'post-layout-standard' || ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ) :
|
||||
$small_layout = ( $post_layout == 'post-layout-standard' || !$show_post_thumbnail ) ? false : true;
|
||||
if ($small_layout) : //additional markup for small layout post
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('format-small-image with_background'); ?>>
|
||||
<div class="side-item content-padding">
|
||||
<div class="row">
|
||||
<?php solarify_post_thumbnail( $small_layout ); ?>
|
||||
<div class="col-md-6">
|
||||
|
||||
<?php else : //standard layout markup ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('vertical-item content-padding big-padding with_background'); ?>>
|
||||
<?php
|
||||
solarify_post_thumbnail();
|
||||
endif; //small_format check
|
||||
?>
|
||||
<div class="item-content">
|
||||
|
||||
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
|
||||
} ?>
|
||||
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( !empty( $post->post_content ) ) : ?>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endif; //is_search
|
||||
endif; // content check
|
||||
?>
|
||||
</div><!-- eof .item-content -->
|
||||
|
||||
<?php if ($small_layout) : //additional markup for small format post ?>
|
||||
</div><!-- eof .col-md-6 -->
|
||||
</div><!-- eof .row -->
|
||||
</div><!-- eof .side-item -->
|
||||
<?php endif; //small_format ?>
|
||||
</article><!-- #post-## -->
|
||||
<?php endif; //is singular ?>
|
||||
201
wp-content/themes/solarify/template-parts/content.php
Normal file
201
wp-content/themes/solarify/template-parts/content.php
Normal file
@@ -0,0 +1,201 @@
|
||||
<?php
|
||||
/**
|
||||
* The default template for displaying content
|
||||
*
|
||||
* Used for both single and index/archive/search.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$show_post_thumbnail = ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ? false : true;
|
||||
|
||||
//single item layout
|
||||
if ( is_singular() ) :
|
||||
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background' ); ?>>
|
||||
<?php solarify_post_thumbnail(); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
the_tags( '<div class="tag-links theme_buttons color2">', ' ', '</div>' );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</article><!-- #post-## -->
|
||||
<?php
|
||||
solarify_post_nav();
|
||||
solarify_list_authors();
|
||||
?>
|
||||
<?php
|
||||
//eof single page layout
|
||||
//blog feed layout
|
||||
else:
|
||||
$post_layout = 'post-layout-standard';
|
||||
if ( function_exists( 'fw_get_db_post_option' ) ) {
|
||||
$post_layout = fw_get_db_post_option( $post->ID, 'post-layout', 'post-layout-standard' );
|
||||
}
|
||||
//standard feed layout (image at the top or not image at all if option is standard or has no post thumbnail)
|
||||
// if ($post_layout == 'post-layout-standard' || ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) ) :
|
||||
$small_layout = ( $post_layout == 'post-layout-standard' || ! $show_post_thumbnail ) ? false : true;
|
||||
if ( $small_layout ) : //additional markup for small layout post ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'format-small-image with_background ' ); ?>>
|
||||
<div class="side-item content-padding">
|
||||
<div class="row">
|
||||
<?php solarify_post_thumbnail( $small_layout ); ?>
|
||||
<div class="col-md-7">
|
||||
|
||||
<?php else : //standard layout markup ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background ' ); ?>>
|
||||
<?php
|
||||
solarify_post_thumbnail();
|
||||
endif; //small_format check
|
||||
?>
|
||||
|
||||
<div class="item-content">
|
||||
|
||||
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
|
||||
} ?>
|
||||
|
||||
<header class="entry-header side-meta">
|
||||
|
||||
<div class="entry-meta darklinks grey">
|
||||
<?php
|
||||
if ( 'post' == get_post_type() ) {
|
||||
printf( '<span class="entry-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
);
|
||||
}
|
||||
printf( '<span class="author vcard highlightlinks"><i class="fa fa-user" aria-hidden="true"></i> <a class="url fn n" href="%2$s" rel="author">%1$s %3$s</a></span>',
|
||||
esc_html_x( 'by ', 'Used before post author name.', 'solarify' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
get_the_author()
|
||||
); ?>
|
||||
<span>
|
||||
<i class="fa fa-comments" aria-hidden="true"></i>
|
||||
<?php if ( comments_open( get_the_ID() ) ) : ?>
|
||||
<a href="<?php comments_link(); ?>">
|
||||
<?php
|
||||
comments_number( 'no comments', '1 comment', '% comments');
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
echo esc_html__( ' comments closed', 'solarify' );
|
||||
endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="header-body">
|
||||
<?php
|
||||
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
||||
?>
|
||||
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
|
||||
|
||||
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( !empty( $post->post_content ) ) : ?>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<?php if ( strpos( $post->post_content, '<!--more-->' ) ) : ?>
|
||||
<div class="entry-content with-more-link">
|
||||
<?php else: ?>
|
||||
<div class="entry-content">
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
//hidding "more link" in content
|
||||
the_content( esc_html__( 'Read More', 'solarify' ) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endif; //is_search
|
||||
endif; // content check
|
||||
?>
|
||||
</div><!-- eof .item-content -->
|
||||
|
||||
<?php if ( $small_layout ) : //additional markup for small format post ?>
|
||||
</div><!-- eof .col-md-6 -->
|
||||
</div><!-- eof .row -->
|
||||
</div><!-- eof .side-item -->
|
||||
<?php endif; //small_format
|
||||
?>
|
||||
</article><!-- #post-## -->
|
||||
<?php endif; //is singular ?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected copyrights section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
?>
|
||||
<section class="ds ms page_copyright section_padding_25 columns_margin_top_20 columns_margin_bottom_20">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<p class="darklinks grey small-text"><?php echo wp_kses_post( function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'copyrights_text' ) : esc_html__( 'Powered by WordPress', 'solarify' ) ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section><!-- .copyrights -->
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected copyrights section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
?>
|
||||
<section class="ls ms page_copyright section_padding_25">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<p><?php echo wp_kses_post( function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'copyrights_text' ) : esc_html__( 'Powered by WordPress', 'solarify' ) ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section><!-- .copyrights -->
|
||||
142
wp-content/themes/solarify/template-parts/footer/footer-1.php
Normal file
142
wp-content/themes/solarify/template-parts/footer/footer-1.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected footer
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'footer_social_icons' ) : '';
|
||||
|
||||
$first_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_icon' ) : '';
|
||||
$first_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_text' ) : '';
|
||||
$first_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_link' ) : '';
|
||||
|
||||
$second_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_icon' ) : '';
|
||||
$second_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_text' ) : '';
|
||||
$second_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_link' ) : '';
|
||||
|
||||
$third_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_icon' ) : '';
|
||||
$third_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_text' ) : '';
|
||||
$third_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_link' ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( $social_icons || $first_teaser_text || $second_teaser_text || $third_teaser_text) : ?>
|
||||
<section class="cs gradient page_contacts section_padding_top_50 section_padding_bottom_50">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php if ( $first_teaser_text ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="media teaser small-media darklinks teaser">
|
||||
<?php if ( $first_teaser_icon['type'] !== 'none' ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $first_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<div class="teaser_icon highlight light_bg_color round">
|
||||
<i class="<?php echo esc_attr( $first_teaser_icon['icon-class'] ); ?>"></i>
|
||||
</div>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $first_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle fontsize_18">
|
||||
<?php if ( $first_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $first_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo wp_kses_post( $first_teaser_text ); ?>
|
||||
<?php if ( $first_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $second_teaser_text ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="media teaser small-media small-media darklinks">
|
||||
<?php if ( $second_teaser_icon['type'] !== 'none' ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $second_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<div class="teaser_icon highlight light_bg_color round">
|
||||
<i class="<?php echo esc_attr( $second_teaser_icon['icon-class'] ); ?>"></i>
|
||||
</div>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $second_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle fontsize_18">
|
||||
<?php if ( $second_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $second_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo wp_kses_post( $second_teaser_text ); ?>
|
||||
<?php if ( $second_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $third_teaser_text ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="media teaser small-media small-media darklinks">
|
||||
<?php if ( $third_teaser_icon['type'] !== 'none' ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $third_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<div class="teaser_icon highlight light_bg_color round">
|
||||
<i class="<?php echo esc_attr( $third_teaser_icon['icon-class'] ); ?>"></i>
|
||||
</div>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $third_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle fontsize_18">
|
||||
<?php if ( $third_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $third_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo wp_kses_post( $third_teaser_text ); ?>
|
||||
<?php if ( $third_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $social_icons ) ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="darklinks">
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; //social icons ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<footer class="page_footer ds section_padding_top_120 section_padding_bottom_140 columns_padding_25 columns_margin_bottom_20">
|
||||
<div class="container">
|
||||
|
||||
<?php if ( is_active_sidebar( 'sidebar-footer-secondary' ) ) : ?>
|
||||
<div class="cs gradient_bg with_padding big-padding">
|
||||
<div class="row">
|
||||
<?php dynamic_sidebar( 'sidebar-footer-secondary' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="row">
|
||||
<?php dynamic_sidebar( 'sidebar-footer' ); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</footer><!-- .page_footer -->
|
||||
134
wp-content/themes/solarify/template-parts/footer/footer-2.php
Normal file
134
wp-content/themes/solarify/template-parts/footer/footer-2.php
Normal file
@@ -0,0 +1,134 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected footer
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'footer_social_icons' ) : '';
|
||||
|
||||
$first_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_icon' ) : '';
|
||||
$first_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_text' ) : '';
|
||||
$first_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_link' ) : '';
|
||||
|
||||
$second_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_icon' ) : '';
|
||||
$second_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_text' ) : '';
|
||||
$second_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_link' ) : '';
|
||||
|
||||
$third_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_icon' ) : '';
|
||||
$third_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_text' ) : '';
|
||||
$third_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_link' ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<section class="ls ms page_contacts section_padding_top_40 section_padding_bottom_40 table_section table_section_md">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php if ( $first_teaser_text ) : ?>
|
||||
<div class="col-md-3 col-sm-12 col-xs-12">
|
||||
<div class="media small-media greylinks">
|
||||
<?php if ( $first_teaser_icon['type'] ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $first_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<i class="<?php echo esc_attr( $first_teaser_icon['icon-class'] ); ?> highlight fontsize_24"></i>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $first_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle">
|
||||
<?php if ( $first_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $first_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html( $first_teaser_text ); ?>
|
||||
<?php if ( $first_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $second_teaser_text ) : ?>
|
||||
<div class="col-md-3 col-sm-4 col-xs-12">
|
||||
<div class="media small-media greylinks">
|
||||
<?php if ( $second_teaser_icon['type'] ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $second_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<i class="<?php echo esc_attr( $second_teaser_icon['icon-class'] ); ?> highlight fontsize_24"></i>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $second_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle">
|
||||
<?php if ( $second_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $second_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html( $second_teaser_text ); ?>
|
||||
<?php if ( $second_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $third_teaser_text ) : ?>
|
||||
<div class="col-md-3 col-sm-4 col-xs-12">
|
||||
<div class="media small-media greylinks">
|
||||
<?php if ( $third_teaser_icon['type'] ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $third_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<i class="<?php echo esc_attr( $third_teaser_icon['icon-class'] ); ?> highlight fontsize_24"></i>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $third_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle">
|
||||
<?php if ( $third_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $third_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html( $third_teaser_text ); ?>
|
||||
<?php if ( $third_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $social_icons ) ) : ?>
|
||||
<div class="col-md-3 col-sm-12 col-xs-12">
|
||||
<div class="greylinks">
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; //social icons ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer class="page_footer ls ms section_padding_top_25 section_padding_bottom_25">
|
||||
<div class="container">
|
||||
|
||||
<?php if ( is_active_sidebar( 'sidebar-footer-secondary' ) ) : ?>
|
||||
<div class="cs gradient_bg with_padding big-padding">
|
||||
<div class="row">
|
||||
<?php dynamic_sidebar( 'sidebar-footer-secondary' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="row">
|
||||
<?php dynamic_sidebar( 'sidebar-footer' ); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</footer><!-- .page_footer -->
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
$toplogo_teasers = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'toplogo_teasers' ) : '';
|
||||
?>
|
||||
|
||||
<header class="page_header header_white toggler_xs_right columns_margin_0">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12 display_table">
|
||||
<div class="header_left_logo display_table_cell">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
|
||||
<div class="header_mainmenu display_table_cell text-center">
|
||||
<div class="mainmenu_wrapper primary-navigation">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</div>
|
||||
<!-- header toggler -->
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
|
||||
<div class="header_right_buttons display_table_cell text-right hidden-xs">
|
||||
<?php if ( ! empty( $social_icons ) ) : ?>
|
||||
<div class="page_social_icons darklinks">
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
</div><!-- eof social icons -->
|
||||
<?php endif; //social icons ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<?php get_template_part( 'template-parts/header/top-logo' ); ?>
|
||||
|
||||
<header class="page_header header_white bordered_items columns_margin_0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<nav class="mainmenu_wrapper primary-navigation">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div><!-- eof .col-sm-* -->
|
||||
</div><!-- eof .row-->
|
||||
</div> <!-- eof .container-->
|
||||
</header><!-- eof .page_header -->
|
||||
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
$toplogo_teasers = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'toplogo_teasers' ) : '';
|
||||
?>
|
||||
|
||||
<div class="top_wrapper">
|
||||
<section class="page_toplogo table_section table_section_md ds section_padding_top_15 section_padding_bottom_15">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 display_table padding_0">
|
||||
<div class="header_left_logo display_table_cell_md">
|
||||
<?php get_template_part( 'template-parts/header/header-logo' ); ?>
|
||||
</div>
|
||||
<div class="header_right_buttons display_table_cell_md text-md-right">
|
||||
<div class="inline-teasers-wrap">
|
||||
<?php foreach ( $toplogo_teasers as $teaser ) : ?>
|
||||
<div class="media small-media teaser inline-block text-left">
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $teaser['teaser_icon']['type'] === 'icon-font') : ?>
|
||||
<div class="teaser_icon highlight light_bg_color round">
|
||||
<i class="<?php echo esc_attr( $teaser['teaser_icon']['icon-class'] ); ?>"></i>
|
||||
</div>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $teaser['teaser_icon']['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="media-body media-middle grey">
|
||||
<?php if ( $teaser['teaser_text_link'] ) : ?>
|
||||
<a href="<?php echo esc_url( $teaser['teaser_text_link'] ) ?>">
|
||||
<?php endif;
|
||||
echo wp_kses_post( $teaser['teaser_text'] );
|
||||
if ( $teaser['teaser_text_link'] ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<header class="page_header header_darkgrey ds thin_header toggler_left columns_margin_0">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 display_table">
|
||||
|
||||
<div class="header_mainmenu display_table_cell">
|
||||
<div class="mainmenu_wrapper primary-navigation">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</div>
|
||||
<!-- header toggler -->
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
|
||||
<div class="header_right_buttons display_table_cell text-right">
|
||||
<?php if ( ! empty( $social_icons ) ) : ?>
|
||||
<div class="page_social_icons darklinks">
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
</div><!-- eof social icons -->
|
||||
<?php endif; //social icons ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side ls">
|
||||
<span class="toggle_menu_side header-slide"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="header-side-menu darklinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav menu-side-click',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side header_side_right ls">
|
||||
<span class="toggle_menu_side header-slide"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="header-side-menu darklinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav menu-side-click',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side ls">
|
||||
<span class="toggle_menu_side"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="widget widget_nav_menu greylinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav sf-menu-side',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side header_side_right ls">
|
||||
<span class="toggle_menu_side"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="widget widget_nav_menu greylinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav sf-menu-side',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<header class="page_header header_white toggler_right">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="display_table_md">
|
||||
<div class="display_table_cell_md">
|
||||
<div class="header_left_logo">
|
||||
<?php
|
||||
get_template_part( 'template-parts/header/header-logo-light' );
|
||||
?>
|
||||
</div><!-- eof .header_left_logo -->
|
||||
</div>
|
||||
<div class="display_table_cell_md">
|
||||
<nav class="mainmenu_wrapper primary-navigation text-md-right">
|
||||
<?php wp_nav_menu( array (
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- eof .col-sm-* -->
|
||||
</div><!-- eof .row-->
|
||||
</div> <!-- eof .container-->
|
||||
</header><!-- eof .page_header -->
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
|
||||
if ( ( ! empty( $social_icons ) ) || ( ! empty( $header_phone ) ) || ( ! empty( $header_email ) ) ) : ?>
|
||||
<section class="page_topline ls section_padding_top_5 section_padding_bottom_5 table_section table_section_md">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 text-center text-md-left">
|
||||
<?php if ( ! empty( $social_icons ) ) : ?>
|
||||
<div class="page_social_icons darklinks">
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
}
|
||||
?>
|
||||
</div><!-- eof social icons -->
|
||||
<?php endif; //social icons ?>
|
||||
</div><!-- eof .col- -->
|
||||
<div class="col-md-9 text-center text-md-right">
|
||||
<div class="inline-content small-text">
|
||||
<?php
|
||||
|
||||
if ( $header_phone ) : ?>
|
||||
<span>
|
||||
<i class="rt-icon2-printer2 highlight rightpadding_5"></i> <?php echo esc_html( $header_phone ); ?>
|
||||
</span>
|
||||
<?php endif; //header_phone
|
||||
if ( $header_email ) : ?>
|
||||
<span>
|
||||
<i class="rt-icon2-mail highlight rightpadding_5"></i> <?php echo esc_html( $header_email ); ?>
|
||||
</span>
|
||||
<?php endif; //header_phone ?>
|
||||
</div>
|
||||
</div><!-- eof .col- -->
|
||||
</div>
|
||||
</div>
|
||||
</section><!-- .page_topline -->
|
||||
<?php endif; ?>
|
||||
<header class="page_header header_white toggler_right">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="display_table_md">
|
||||
<div class="display_table_cell_md">
|
||||
<div class="header_left_logo">
|
||||
<?php
|
||||
get_template_part( 'template-parts/header/header-logo-light' );
|
||||
?>
|
||||
</div><!-- eof .header_left_logo -->
|
||||
</div>
|
||||
<div class="display_table_cell_md">
|
||||
<nav class="mainmenu_wrapper primary-navigation text-md-right">
|
||||
<?php wp_nav_menu( array (
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- eof .col-sm-* -->
|
||||
</div><!-- eof .row-->
|
||||
</div> <!-- eof .container-->
|
||||
</header><!-- eof .page_header -->
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* The Header Logo for our theme
|
||||
*
|
||||
* Displays logo in header section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$logo_image = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_image_light' ) : '';
|
||||
$logo_text = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_text' ) : get_option( 'blogname' );
|
||||
$logo_class = 'logo';
|
||||
if ( ! $logo_text ) {
|
||||
$logo_class .= ' logo_image_only';
|
||||
}
|
||||
if ( ! $logo_image ) {
|
||||
$logo_class .= ' logo_text_only';
|
||||
}
|
||||
if ( $logo_image && $logo_text ) {
|
||||
$logo_class .= ' logo_image_and_text';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"
|
||||
rel="home" class="<?php echo esc_attr( $logo_class ); ?>">
|
||||
<?php if ( $logo_image ) : ?>
|
||||
<img src="<?php echo esc_attr( $logo_image['url'] ); ?>" alt="<?php echo esc_attr( $logo_text ); ?>">
|
||||
<?php endif; //logo_image ?>
|
||||
<?php if ( !$logo_image && $logo_text ) : ?>
|
||||
<span class="logo_text">
|
||||
<?php echo esc_html( $logo_text ); ?>
|
||||
</span>
|
||||
<?php endif; //logo_text ?>
|
||||
</a>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* The Header Logo for our theme
|
||||
*
|
||||
* Displays logo in header section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$logo_image = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_image' ) : '';
|
||||
$logo_text = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_text' ) : get_option( 'blogname' );
|
||||
$logo_class = 'logo';
|
||||
if ( ! $logo_text ) {
|
||||
$logo_class .= ' logo_image_only';
|
||||
}
|
||||
if ( ! $logo_image ) {
|
||||
$logo_class .= ' logo_text_only';
|
||||
}
|
||||
if ( $logo_image && $logo_text ) {
|
||||
$logo_class .= ' logo_image_and_text';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"
|
||||
rel="home" class="<?php echo esc_attr( $logo_class ); ?>">
|
||||
<?php if ( $logo_image ) : ?>
|
||||
<img src="<?php echo esc_attr( $logo_image['url'] ); ?>" alt="<?php echo esc_attr( $logo_text ); ?>">
|
||||
<?php endif; //logo_image ?>
|
||||
<?php if ( !$logo_image && $logo_text ) : ?>
|
||||
<span class="logo_text">
|
||||
<?php echo esc_html( $logo_text ); ?>
|
||||
</span>
|
||||
<?php endif; //logo_text ?>
|
||||
</a>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$left_teaser = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_left_teaser' ) : '';
|
||||
|
||||
$right_teaser1 = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_right_teaser1' ) : '';
|
||||
|
||||
$right_teaser2 = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_right_teaser2' ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<section class="page_topline ls table_section section_padding_top_5 section_padding_bottom_5">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-center text-sm-left">
|
||||
<p class="greylinks">
|
||||
<i class="<?php echo esc_html( $left_teaser['icon'] ) ?> grey rightpadding_5" aria-hidden="true"></i>
|
||||
<?php echo esc_html( $left_teaser['text'] ); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-6 text-center text-sm-right">
|
||||
<div class="inline-content">
|
||||
<?php if ( $right_teaser1['text'] ) : ?>
|
||||
<p class="greylinks">
|
||||
<i class="<?php echo esc_html( $right_teaser1['icon'] ) ?> grey rightpadding_5" aria-hidden="true"></i>
|
||||
<?php echo esc_html( $right_teaser1['text'] ); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if ( $right_teaser2['text'] ) : ?>
|
||||
<p class="greylinks">
|
||||
<i class="<?php echo esc_html( $right_teaser2['icon'] ) ?> grey rightpadding_5" aria-hidden="true"></i>
|
||||
<?php if ( ! empty ( $right_teaser2['link'] ) ) : ?>
|
||||
<a href="<?php echo esc_url( $right_teaser2['link'] ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html( $right_teaser2['text'] ); ?>
|
||||
<?php if ( ! empty ( $right_teaser2['link'] ) ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$left_teaser = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_left_teaser' ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<section class="page_topline cs main_color2 table_section table_section_sm section_padding_top_5 section_padding_bottom_5">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 text-center text-sm-left">
|
||||
<?php if ( $left_teaser['text'] ) : ?>
|
||||
<div>
|
||||
<i class="<?php echo esc_html( $left_teaser['icon'] ) ?> rightpadding_5" aria-hidden="true"></i>
|
||||
<?php echo esc_html( $left_teaser['text'] ); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-sm-4 text-center text-sm-right greylinks">
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
<span class="rightpadding_10"><?php echo esc_html__( 'Follow Us:', 'solarify' ); ?></span>
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
||||
} ?>
|
||||
|
||||
<?php endif; //social icons?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<section class="page_toplogo table_section table_section_md ds section_padding_top_25 section_padding_bottom_25">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 text-center text-md-left">
|
||||
<?php get_template_part( 'template-parts/header/header-logo' ); ?>
|
||||
</div>
|
||||
<div class="col-md-9 text-center text-md-right">
|
||||
<?php
|
||||
$toplogo_teasers = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'toplogo_teasers' ) : '';
|
||||
if ( ! empty( $toplogo_teasers ) ) : ?>
|
||||
<div class="inline-teasers-wrap">
|
||||
<?php
|
||||
foreach ( $toplogo_teasers as $teaser ) :
|
||||
?>
|
||||
|
||||
<div class="teaser small-teaser media">
|
||||
<div class="media-left media-middle">
|
||||
<div class="teaser_icon size_small border_icon highlight2 rounded"> <i class="<?php echo esc_attr( $teaser['teaser_icon'] ) ?>"></i> </div>
|
||||
</div>
|
||||
<div class="media-body media-middle">
|
||||
<h4><?php echo esc_html( $teaser['teaser_text_top'] ) ?></h4>
|
||||
<p class="greylinks fontsize_12">
|
||||
<?php if ( !empty ( $teaser['teaser_text_bottom_link'] ) ) : ?>
|
||||
<a href="<?php echo esc_url( $teaser['teaser_text_bottom_link'] ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html( $teaser['teaser_text_bottom'] ) ?>
|
||||
<?php if ( !empty ( $teaser['teaser_text_bottom_link'] ) ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; //social icons?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<section class="page_toplogo table_section table_section_md ls section_padding_top_5 section_padding_bottom_5">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 text-center text-md-left header_left_logo">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
|
||||
<!-- header toggler -->
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
<div class="col-md-9 text-center text-md-right">
|
||||
<?php
|
||||
$toplogo_teasers = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'toplogo_teasers' ) : '';
|
||||
if ( ! empty( $toplogo_teasers ) ) : ?>
|
||||
<div class="inline-teasers-wrap">
|
||||
<?php foreach ( $toplogo_teasers as $teaser ) : ?>
|
||||
<div class="media small-media teaser inline-block text-left">
|
||||
<div class="media-left media-middle">
|
||||
<div class="teaser_icon with_background highlight round">
|
||||
<?php if ( $teaser['teaser_icon']['type'] === 'icon-font') : ?>
|
||||
<i class="<?php echo esc_attr( $teaser['teaser_icon']['icon-class'] ); ?>"></i>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $teaser['teaser_icon']['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media-body media-middle grey darklinks">
|
||||
<?php if ( $teaser['teaser_text_link'] ) : ?>
|
||||
<a href="<?php echo esc_url( $teaser['teaser_text_link'] ) ?>">
|
||||
<?php endif;
|
||||
echo wp_kses_post( $teaser['teaser_text'] );
|
||||
if ( $teaser['teaser_text_link'] ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; //toplogo teasers?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user