%2$s';
} else {
$time_string = '%2$s';
}
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '%2$s';
}
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$posted_on = sprintf(
'' . $time_string . ''
);
$byline = sprintf(
'' . esc_html( get_the_author() ) . ''
);
$cat = sprintf(
''. get_the_category_list( esc_html__(', ', 'elixar') ) .''
);
echo $posted_on . ' ' . $byline .' '. $cat . ' '; // WPCS: XSS OK.
}
endif;
if ( ! function_exists( 'elixar_edit_link' ) ) :
/**
* Returns an accessibility-friendly link to edit a post or page.
*
* This also gives us a little context about what exactly we're editing
* (post or page?) so that users understand a bit more where they are in terms
* of the template hierarchy and their content. Helpful when/if the single-page
* layout with multiple posts/pages shown gets confusing.
*/
function elixar_edit_link() {
$link = edit_post_link(
sprintf(
/* translators: %s: Name of current post */
__( ' Edit "%s"', 'elixar' ),
get_the_title()
),
'',
''
);
return $link;
}
endif;
if ( ! function_exists( 'elixar_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function elixar_entry_footer() {
// Hide category and tag text for pages.
if ( 'post' === get_post_type() ) {
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'elixar' ) );
if ( $categories_list && elixar_categorized_blog() ) {
/* translators: %s: Categories List */
printf( '' . esc_html__( 'Posted in %1$s', 'elixar' ) . '', $categories_list ); // WPCS: XSS OK.
}
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html__( ', ', 'elixar' ) );
if ( $tags_list ) {
/* translators: %s: Tag List */
printf( '' . esc_html__( 'Tagged %1$s', 'elixar' ) . '', $tags_list ); // WPCS: XSS OK.
}
}
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
}
endif;
/**
* Returns true if a blog has more than 1 category.
*
* @return bool
*/
function elixar_categorized_blog() {
if ( false === ( $all_the_cool_cats = get_transient( 'elixar_categories' ) ) ) {
// Create an array of all the categories that are attached to posts.
$all_the_cool_cats = get_categories( array(
'fields' => 'ids',
'hide_empty' => 1,
// We only need to know if there is more than one category.
'number' => 2,
) );
// Count the number of categories that are attached to the posts.
$all_the_cool_cats = count( $all_the_cool_cats );
set_transient( 'elixar_categories', $all_the_cool_cats );
}
if ( $all_the_cool_cats > 1 ) {
// This blog has more than 1 category so elixar_categorized_blog should return true.
return true;
} else {
// This blog has only 1 category so elixar_categorized_blog should return false.
return false;
}
}
/**
* Flush out the transients used in elixar_categorized_blog.
*/
function elixar_category_transient_flusher() {
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
// Like, beat it. Dig?
delete_transient( 'elixar_categories' );
}
add_action( 'edit_category', 'elixar_category_transient_flusher' );
add_action( 'save_post', 'elixar_category_transient_flusher' );
/* Tags and links */
function elixar_tags_links()
{ if(has_tag()) { ?>
$v) {
if (isset ($v['content_page'])) {
$v['content_page'] = absint($v['content_page']);
if ($v['content_page'] > 0) {
$elixar_page_ids[] = wp_parse_args($v, array(
'icon_type' => 'icon',
'image' => '',
'icon' => 'gg',
'enable_link' => 0
));
}
}
}
}
// if still empty data then get some page for demo
return $elixar_page_ids;
}
}
if ( ! function_exists( 'elixar_get_section_extra_data' ) ) {
/**
* Get About data
*
* @return array
*/
function elixar_get_section_extra_data()
{
$boxes = get_theme_mod('elixar_section_extra_boxes');
if (is_string($boxes)) {
$boxes = json_decode($boxes, true);
}
$elixar_page_ids = array();
if (!empty($boxes) && is_array($boxes)) {
foreach ($boxes as $k => $v) {
if (isset ($v['content_page'])) {
$v['content_page'] = absint($v['content_page']);
if ($v['content_page'] > 0) {
$elixar_page_ids[] = wp_parse_args($v, array('enable_link' => 0, 'hide_title' => 0));
}
}
}
}
$elixar_page_ids = array_filter( $elixar_page_ids );
return $elixar_page_ids;
}
}
/*
** Footer Widget Column
*/
if ( ! function_exists( 'elixar_footer_widgets' ) ) {
function elixar_footer_widgets(){
$elixar_footer_columns = absint( get_theme_mod( 'elixar_footer_layout' , 4 ) );
$max_cols = 12;
$layouts = 12;
if ( $elixar_footer_columns > 1 ){
$default = "12";
switch ( $elixar_footer_columns ) {
case 4:
$default = '3+3+3+3';
break;
case 3:
$default = '4+4+4';
break;
case 2:
$default = '6+6';
break;
}
$layouts = sanitize_text_field( get_theme_mod( 'elixar_footer_custom_'.$elixar_footer_columns.'_columns', $default ) );
}
$layouts = explode( '+', $layouts );
foreach ( $layouts as $k => $v ) {
$v = absint( trim( $v ) );
$v = $v >= $max_cols ? $max_cols : $v;
$layouts[ $k ] = $v;
}
$have_widgets = false;
for ( $count = 0; $count < $elixar_footer_columns; $count++ ) {
$id = 'footer-widget-' . ( $count + 1 );
if ( is_active_sidebar( $id ) ) {
$have_widgets = true;
}
}
if ( $elixar_footer_columns > 0 && $have_widgets ) { ?>
.sitetopbar {
background-color: #;
}
.top-detail-inverse .social-top-detail i:before, .top-detail-inverse .social-top-detail i:after, .top-detail-inverse .social-top-detail i:hover:after, #header-nav ul li a:hover, #header-nav li.current-menu-item a, #header-nav li.current_page_item a, #header-nav li:hover > a, #header-nav ul li a {
color: ;
}
div#suprhead {
background-color: #;
}
.site-branding-text .site-title a {
color: #;
}
.site-branding-text .site-description {
color: #;
}
div#quick-contact {
color: #;
}
#quick-contact a {
color: #;
}
#quick-contact a:hover {
color: #;
}
#e_main_nav {
padding: px 0;
}
#e_main_nav{
background-color: #;
}
.main-navigation ul li a{
color: #;
}
ul#primary-menu li a:hover, ul#primary-menu ul ul li a:hover, ul#primary-menu ul ul li.current-menu-item a, ul#primary-menu ul ul li.current_page_item a, ul#primary-menu ul ul li:hover>a, ul#primary-menu li.current_page_item a {
color: #;
}
.e-breadcrumb-page-title {
padding-top: px;
padding-bottom: px;
}
.e-breadcrumb-page-title {
background: linear-gradient(, ) repeat scroll 0% 0%, transparent url('') repeat fixed center center;
}
.e-breadcrumb-page-title, .e-breadcrumb-page-title .e-page-title {
color : ;
}
.hero-section-wrapper {
background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)) repeat scroll 0% 0%, transparent url('') repeat fixed center center;
}
.e-hero-large-text {
color: ;
}
.e-hero-large-text {
background: ;
padding: 10px;
text-shadow: none;
border-radius: 3px;
}
.hero-section-wrapper{
padding: % 0 %;
}
.section-cta {
background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)) repeat scroll 0% 0%, transparent url('') repeat fixed center center;
}
#section_footer {
background-color: #;
color: ;
}
.content-section.footer-main p {
color: ;
}
#section_footer h3.foo-widget-title {
color: ;
}
.content-section.footer-main .footer_widget a {
color: ;
}
.content-section.footer-main .footer_widget a:hover {
color: ;
}
.content-section.footer_copyright {
background-color: #;
}
.content-section.footer_copyright p.copyright-text{
color: ;
}
p.copyright-text a {
color: ;
}
p.copyright-text a:hover{
color: ;
}
.*?\*\/)|^\s*|\s*$#s',
// Remove unused white-space(s)
'#("(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\'|\/\*(?>.*?\*\/))|\s*+;\s*+(})\s*+|\s*+([*$~^|]?+=|[{};,>~+]|\s*+-(?![0-9\.])|!important\b)\s*+|([[(:])\s++|\s++([])])|\s++(:)\s*+(?!(?>[^{}"\']++|"(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\')*+{)|^\s++|\s++\z|(\s)\s+#si',
),
array(
'$1',
'$1$2$3$4$5$6$7',
),
$elixar_css
);
if ( ! function_exists( 'elixar_wp_get_custom_css' ) ) { // Back-compat for WordPress < 4.7.
$custom = get_option('elixar_custom_css');
if ($custom) {
$elixar_css .= "\n/* --- Begin custom CSS --- */\n" . $custom . "\n/* --- End custom CSS --- */\n";
}
}
return apply_filters( 'elixar_custom_css', $elixar_css ) ;
}
}
if ( function_exists( 'elixar_wp_update_custom_css_post' ) ) {
// Migrate any existing theme CSS to the core option added in WordPress 4.7.
$elixar_css = get_option( 'elixar_custom_css' );
if ( $elixar_css ) {
$elixar_core_css = elixar_wp_get_custom_css(); // Preserve any CSS already added to the core option.
$elixar_return = elixar_wp_update_custom_css_post( $elixar_core_css ."\n". $elixar_css );
if ( ! is_wp_error( $elixar_return ) ) {
// Remove the old theme_mod, so that the CSS is stored in only one place moving forward.
delete_option( 'elixar_custom_css' );
}
}
}
?>