© Company Name
comment_type ) :
case 'pingback' :
case 'trackback' :
?>
id="li-comment-">
__('Home Horizontal Sidebar', 'aspire-lite' ),
'id' => 'horizontal_1',
'before_widget' => apply_filters( 'cyberchimps_sidebar_before_widget', '' ),
'before_title' => apply_filters( 'cyberchimps_sidebar_before_widget_title', '' ),
'after_title' => apply_filters( 'cyberchimps_sidebar_after_widget_title', '
' )
) );
register_sidebar( array(
'name' => __('Footer Widgets', 'aspire-lite' ),
'id' => 'aspire-footer-widgets',
'before_widget' => apply_filters( 'cyberchimps_footer_before_widget', '' ),
'before_title' => apply_filters( 'cyberchimps_footer_before_widget_title', '' )
) );
}
add_action( 'widgets_init', 'horizontal_widgets_init' );
//Function to unregister sidebar
function aspire_remove_cyberchimps_footer() {
unregister_sidebar( 'cyberchimps-footer-widgets' );
}
add_action( 'widgets_init', 'aspire_remove_cyberchimps_footer', 11 );
//upgrade bar
function cyberchimps_upgrade_bar_pro_title() {
$title = 'AspirePro';
return $title;
}
function aspire_upgrade_link() {
$link = 'https://cyberchimps.com/store/aspire-pro/';
return $link;
}
add_filter( 'cyberchimps_upgrade_pro_title', 'cyberchimps_upgrade_bar_pro_title' );
add_filter( 'cyberchimps_upgrade_link', 'aspire_upgrade_link' );
function cyberchimps_next_previous_posts() {
if( get_next_posts_link() || get_previous_posts_link() ): ?>
'Arial',
'Arial Black, Gadget, sans-serif' => 'Arial Black',
'Comic Sans MS, cursive' => 'Comic Sans MS',
'Courier New, monospace' => 'Courier New',
'Georgia, serif' => 'Georgia',
'"HelveticaNeue-Light", "Helvetica Neue Light",
"Helvetica Neue",Helvetica, Arial, "Lucida Grande",
sans-serif' => 'Helvetica Neue',
'Impact, Charcoal, sans-serif' => 'Impact',
'Lucida Console, Monaco, monospace' => 'Lucida Console',
'Lucida Sans Unicode, Lucida Grande, sans-serif' => 'Lucida Sans Unicode',
'"Open Sans", sans-serif' => 'Open Sans',
'Palatino Linotype, Book Antiqua, Palatino, serif' => 'Palatino Linotype',
'Tahoma, Geneva, sans-serif' => 'Tahoma',
'Times New Roman, Times, serif' => 'Times New Roman',
'Trebuchet MS, sans-serif' => 'Trebuchet MS',
'Verdana, Geneva, sans-serif' => 'Verdana',
'Symbol' => 'Symbol',
'Webdings' => 'Webdings',
'Wingdings, Zapf Dingbats' => 'Wingdings',
'MS Sans Serif, Geneva, sans-serif' => 'MS Sans Serif',
'MS Serif, New York, serif' => 'MS Serif',
'Google Fonts' => 'Google Fonts',
'"Noto Serif", serif' =>'Noto Serif'
);
return $faces;
}
function cyberchimps_typography_styles( $styles ) {
$styles = array( 'normal' => 'Normal', 'bold' => 'Bold' );
return $styles;
}
function cyberchimps_typography_defaults() {
$default = array(
'size' => '14px',
'face' => '"Noto Serif", serif',
'style' => 'normal'
);
return $default;
}
function cyberchimps_typography_heading_defaults() {
$default = array(
'face' => '"Noto Serif", serif',
);
return $default;
}
function cyberchimps_typography_sizes( $sizes ) {
$sizes = array( '8', '9', '10', '12', '14', '16', '18', '20' );
return $sizes;
}
add_filter( 'cyberchimps_typography_faces', 'cyberchimps_typography_faces' );
add_filter( 'cyberchimps_typography_styles', 'cyberchimps_typography_styles' );
add_filter( 'cyberchimps_typography_defaults', 'cyberchimps_typography_defaults' );
add_filter( 'cyberchimps_typography_heading_defaults', 'cyberchimps_typography_heading_defaults' );
add_filter( 'cyberchimps_typography_sizes', 'cyberchimps_typography_sizes' );
// Prints HTML for author link of the post.
if( !function_exists( 'aspire_posted_by' ) ) {
function aspire_posted_by() {
// Get value of post byline author toggle option from theme option for different pages.
$show_author = ( get_theme_mod( 'post_byline_author', 1 ) ) ? get_theme_mod( 'post_byline_author', 1 ) : false;
// Get url of all author archive( the page will contain all posts by the author).
$auther_posts_url = esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );
// Set author title text which will appear on hover over the author link.
$auther_link_title = esc_attr( sprintf( __( 'View all posts by %s', 'cyberchimps_core' ), get_the_author() ) );
// Set the HTML for author link.
$posted_by = sprintf(
' ' . __( 'By %s', 'cyberchimps_core' ),
'
' . esc_html( get_the_author() ) . '
'
);
// If post byline author toggle is on then print HTML for author link.
if( $show_author ) {
apply_filters( 'cyberchimps_posted_by', $posted_by );
echo $posted_by;
}
}
}
// add featured image to single post, archive and blog page if set in options
function aspire_featured_image() {
global $post;
if( is_single() ) {
$show = ( get_theme_mod( 'single_post_featured_images', 1 ) ) ? get_theme_mod( 'single_post_featured_images', 1 ) : false;
}
elseif( is_archive() ) {
$show = ( get_theme_mod( 'archive_featured_images', 1 ) ) ? get_theme_mod( 'archive_featured_images', 1 ) : false;
}
else {
$show = ( get_theme_mod( 'post_featured_images', 1 ) ) ? get_theme_mod( 'post_featured_images', 1 ) : false;
}
if( $show ):
if( has_post_thumbnail() ): ?>