mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogside.git
synced 2025-08-26 08:32:40 +08:00
Change theme name
This commit is contained in:
parent
8f6ea42612
commit
d2dd6684f1
28 changed files with 626 additions and 637 deletions
2
404.php
2
404.php
|
@ -11,7 +11,7 @@
|
|||
</div>
|
||||
|
||||
<div class="entry">
|
||||
<p><?php esc_html_e( 'The page you are trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.', 'blogline' ); ?></p>
|
||||
<p><?php esc_html_e( 'The page you are trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.', 'blogside' ); ?></p>
|
||||
</div>
|
||||
|
||||
</div><!--/.pad-->
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
<?php if ( have_comments() ) : global $wp_query; ?>
|
||||
|
||||
<h3 class="heading"><?php comments_number( esc_html__( 'No Responses', 'blogline' ), esc_html__( '1 Response', 'blogline' ), esc_html__( '% Responses', 'blogline' ) ); ?></h3>
|
||||
<h3 class="heading"><?php comments_number( esc_html__( 'No Responses', 'blogside' ), esc_html__( '1 Response', 'blogside' ), esc_html__( '% Responses', 'blogside' ) ); ?></h3>
|
||||
|
||||
<ul class="comment-tabs group">
|
||||
<li class="active"><a href="#commentlist-container"><i class="fa fa-comments-o"></i><?php esc_html_e( 'Comments', 'blogline' ); ?><span><?php echo count($wp_query->comments_by_type['comment']); ?></span></a></li>
|
||||
<li><a href="#pinglist-container"><i class="fa fa-share"></i><?php esc_html_e( 'Pingbacks', 'blogline' ); ?><span><?php echo count($wp_query->comments_by_type['pings']); ?></span></a></li>
|
||||
<li class="active"><a href="#commentlist-container"><i class="fa fa-comments-o"></i><?php esc_html_e( 'Comments', 'blogside' ); ?><span><?php echo count($wp_query->comments_by_type['comment']); ?></span></a></li>
|
||||
<li><a href="#pinglist-container"><i class="fa fa-share"></i><?php esc_html_e( 'Pingbacks', 'blogside' ); ?><span><?php echo count($wp_query->comments_by_type['pings']); ?></span></a></li>
|
||||
</ul>
|
||||
|
||||
<?php if ( ! empty( $comments_by_type['comment'] ) ) { ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php the_post_thumbnail('blogside-medium'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php the_post_thumbnail('blogside-medium'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('blogline-list'); ?>
|
||||
<?php the_post_thumbnail('blogside-list'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-list.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<div class="entry">
|
||||
<?php
|
||||
if ( is_search() ) { the_excerpt(); }
|
||||
else the_content(esc_html__('Continue reading...','blogline'));
|
||||
else the_content(esc_html__('Continue reading...','blogside'));
|
||||
?>
|
||||
</div><!--/.entry-->
|
||||
|
||||
|
|
|
@ -73,13 +73,13 @@
|
|||
<?php if ( get_theme_mod( 'copyright' ) ): ?>
|
||||
<p><?php echo esc_html( get_theme_mod( 'copyright' ) ); ?></p>
|
||||
<?php else: ?>
|
||||
<p><?php bloginfo(); ?> © <?php echo esc_html( date_i18n( esc_html__( 'Y', 'blogline' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'blogline' ); ?></p>
|
||||
<p><?php bloginfo(); ?> © <?php echo esc_html( date_i18n( esc_html__( 'Y', 'blogside' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'blogside' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</div><!--/#copyright-->
|
||||
|
||||
<?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?>
|
||||
<div id="credit">
|
||||
<p><?php esc_html_e('Powered by','blogline'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','blogline'); ?> <a href="http://alxmedia.se" rel="nofollow">Alx</a>.</p>
|
||||
<p><?php esc_html_e('Powered by','blogside'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','blogside'); ?> <a href="http://alxmedia.se" rel="nofollow">Alx</a>.</p>
|
||||
</div><!--/#credit-->
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
<div class="grid one-half last">
|
||||
<?php if ( get_theme_mod( 'footer-social', 'on' ) == 'on' ): ?>
|
||||
<?php blogline_social_links() ; ?>
|
||||
<?php blogside_social_links() ; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
|
283
functions.php
283
functions.php
|
@ -11,11 +11,11 @@
|
|||
* Load theme files
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
if ( ! function_exists( 'blogline_load' ) ) {
|
||||
if ( ! function_exists( 'blogside_load' ) ) {
|
||||
|
||||
function blogline_load() {
|
||||
function blogside_load() {
|
||||
// Load theme languages
|
||||
load_theme_textdomain( 'blogline', get_template_directory().'/languages' );
|
||||
load_theme_textdomain( 'blogside', get_template_directory().'/languages' );
|
||||
|
||||
// Load theme options and meta boxes
|
||||
include( get_template_directory() . '/functions/kirki/kirki.php' );
|
||||
|
@ -34,7 +34,7 @@ if ( ! function_exists( 'blogline_load' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_action( 'after_setup_theme', 'blogline_load' );
|
||||
add_action( 'after_setup_theme', 'blogside_load' );
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
@ -47,9 +47,9 @@ add_action( 'after_setup_theme', 'blogline_load' );
|
|||
|
||||
/* Theme setup
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_setup' ) ) {
|
||||
if ( ! function_exists( 'blogside_setup' ) ) {
|
||||
|
||||
function blogline_setup() {
|
||||
function blogside_setup() {
|
||||
// Enable title tag
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
|
@ -69,27 +69,27 @@ if ( ! function_exists( 'blogline_setup' ) ) {
|
|||
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||
|
||||
// Thumbnail sizes
|
||||
add_image_size( 'blogline-small', 200, 200, true );
|
||||
add_image_size( 'blogline-medium', 520, 292, true );
|
||||
add_image_size( 'blogline-large', 720, 404, true );
|
||||
add_image_size( 'blogline-list', 320, 320, true );
|
||||
add_image_size( 'blogside-small', 200, 200, true );
|
||||
add_image_size( 'blogside-medium', 520, 292, true );
|
||||
add_image_size( 'blogside-large', 720, 404, true );
|
||||
add_image_size( 'blogside-list', 320, 320, true );
|
||||
|
||||
// Custom menu areas
|
||||
register_nav_menus( array(
|
||||
'mobile' => esc_html__( 'Mobile', 'blogline' ),
|
||||
'topbar' => esc_html__( 'Topbar', 'blogline' ),
|
||||
'mobile' => esc_html__( 'Mobile', 'blogside' ),
|
||||
'topbar' => esc_html__( 'Topbar', 'blogside' ),
|
||||
) );
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'after_setup_theme', 'blogline_setup' );
|
||||
add_action( 'after_setup_theme', 'blogside_setup' );
|
||||
|
||||
|
||||
/* Custom logo
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_custom_logo' ) ) {
|
||||
if ( ! function_exists( 'blogside_custom_logo' ) ) {
|
||||
|
||||
function blogline_custom_logo() {
|
||||
function blogside_custom_logo() {
|
||||
$defaults = array(
|
||||
'height' => 120,
|
||||
'width' => 400,
|
||||
|
@ -101,14 +101,14 @@ if ( ! function_exists( 'blogline_custom_logo' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_action( 'after_setup_theme', 'blogline_custom_logo' );
|
||||
add_action( 'after_setup_theme', 'blogside_custom_logo' );
|
||||
|
||||
|
||||
/* Custom header
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_custom_header' ) ) {
|
||||
if ( ! function_exists( 'blogside_custom_header' ) ) {
|
||||
|
||||
function blogline_custom_header() {
|
||||
function blogside_custom_header() {
|
||||
$args = array(
|
||||
'default-image' => false,
|
||||
'default-text' => false,
|
||||
|
@ -121,86 +121,86 @@ if ( ! function_exists( 'blogline_custom_header' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_action( 'after_setup_theme', 'blogline_custom_header' );
|
||||
add_action( 'after_setup_theme', 'blogside_custom_header' );
|
||||
|
||||
|
||||
/* Custom background
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_custom_background' ) ) {
|
||||
if ( ! function_exists( 'blogside_custom_background' ) ) {
|
||||
|
||||
function blogline_custom_background() {
|
||||
function blogside_custom_background() {
|
||||
$args = array();
|
||||
add_theme_support( 'custom-background', $args );
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'after_setup_theme', 'blogline_custom_background' );
|
||||
add_action( 'after_setup_theme', 'blogside_custom_background' );
|
||||
|
||||
|
||||
/* Deregister
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_deregister' ) ) {
|
||||
if ( ! function_exists( 'blogside_deregister' ) ) {
|
||||
|
||||
function blogline_deregister() {
|
||||
function blogside_deregister() {
|
||||
wp_deregister_style( 'wp-pagenavi' );
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'blogline_deregister', 100 );
|
||||
add_action( 'wp_enqueue_scripts', 'blogside_deregister', 100 );
|
||||
|
||||
|
||||
/* Register sidebars
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_sidebars' ) ) {
|
||||
if ( ! function_exists( 'blogside_sidebars' ) ) {
|
||||
|
||||
function blogline_sidebars() {
|
||||
register_sidebar(array( 'name' => esc_html__('Primary','blogline'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>'));
|
||||
function blogside_sidebars() {
|
||||
register_sidebar(array( 'name' => esc_html__('Primary','blogside'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>'));
|
||||
|
||||
if ( get_theme_mod('footer-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Footer Ads',"blogline"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Footer Ads',"blogside"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
|
||||
if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 1','blogline'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 2','blogline'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 1','blogline'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 2','blogline'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 1','blogside'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 2','blogside'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 1','blogside'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 2','blogside'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
|
||||
if ( get_theme_mod('footer-widgets') >= '1' ) { register_sidebar(array( 'name' => esc_html__('Footer 1','blogline'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-widgets') >= '2' ) { register_sidebar(array( 'name' => esc_html__('Footer 2','blogline'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-widgets') >= '3' ) { register_sidebar(array( 'name' => esc_html__('Footer 3','blogline'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-widgets') >= '4' ) { register_sidebar(array( 'name' => esc_html__('Footer 4','blogline'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","blogline"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-widgets') >= '1' ) { register_sidebar(array( 'name' => esc_html__('Footer 1','blogside'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-widgets') >= '2' ) { register_sidebar(array( 'name' => esc_html__('Footer 2','blogside'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-widgets') >= '3' ) { register_sidebar(array( 'name' => esc_html__('Footer 3','blogside'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
if ( get_theme_mod('footer-widgets') >= '4' ) { register_sidebar(array( 'name' => esc_html__('Footer 4','blogside'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","blogside"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'widgets_init', 'blogline_sidebars' );
|
||||
add_action( 'widgets_init', 'blogside_sidebars' );
|
||||
|
||||
|
||||
/* Enqueue javascript
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_scripts' ) ) {
|
||||
if ( ! function_exists( 'blogside_scripts' ) ) {
|
||||
|
||||
function blogline_scripts() {
|
||||
wp_enqueue_script( 'blogline-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false );
|
||||
wp_enqueue_script( 'blogline-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true );
|
||||
wp_enqueue_script( 'blogline-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true );
|
||||
wp_enqueue_script( 'blogline-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true );
|
||||
function blogside_scripts() {
|
||||
wp_enqueue_script( 'blogside-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false );
|
||||
wp_enqueue_script( 'blogside-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true );
|
||||
wp_enqueue_script( 'blogside-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true );
|
||||
wp_enqueue_script( 'blogside-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true );
|
||||
if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'blogline_scripts' );
|
||||
add_action( 'wp_enqueue_scripts', 'blogside_scripts' );
|
||||
|
||||
|
||||
/* Enqueue css
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_styles' ) ) {
|
||||
if ( ! function_exists( 'blogside_styles' ) ) {
|
||||
|
||||
function blogline_styles() {
|
||||
wp_enqueue_style( 'blogline-style', get_stylesheet_uri() );
|
||||
if ( get_theme_mod('responsive','on') =='on' ) { wp_enqueue_style( 'blogline-responsive', get_template_directory_uri().'/responsive.css' ); }
|
||||
wp_enqueue_style( 'blogline-font-awesome', get_template_directory_uri().'/fonts/font-awesome.min.css' );
|
||||
function blogside_styles() {
|
||||
wp_enqueue_style( 'blogside-style', get_stylesheet_uri() );
|
||||
if ( get_theme_mod('responsive','on') =='on' ) { wp_enqueue_style( 'blogside-responsive', get_template_directory_uri().'/responsive.css' ); }
|
||||
wp_enqueue_style( 'blogside-font-awesome', get_template_directory_uri().'/fonts/font-awesome.min.css' );
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'blogline_styles' );
|
||||
add_action( 'wp_enqueue_scripts', 'blogside_styles' );
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
@ -209,9 +209,9 @@ add_action( 'wp_enqueue_scripts', 'blogline_styles' );
|
|||
|
||||
/* Layout class
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_layout_class' ) ) {
|
||||
if ( ! function_exists( 'blogside_layout_class' ) ) {
|
||||
|
||||
function blogline_layout_class() {
|
||||
function blogside_layout_class() {
|
||||
// Default layout
|
||||
$layout = 'col-2cl';
|
||||
$default = 'col-2cl';
|
||||
|
@ -251,9 +251,9 @@ if ( ! function_exists( 'blogline_layout_class' ) ) {
|
|||
|
||||
/* Dynamic sidebar primary
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_sidebar_primary' ) ) {
|
||||
if ( ! function_exists( 'blogside_sidebar_primary' ) ) {
|
||||
|
||||
function blogline_sidebar_primary() {
|
||||
function blogside_sidebar_primary() {
|
||||
// Default sidebar
|
||||
$sidebar = 'primary';
|
||||
|
||||
|
@ -285,9 +285,9 @@ if ( ! function_exists( 'blogline_sidebar_primary' ) ) {
|
|||
|
||||
/* Dynamic sidebar secondary
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_sidebar_secondary' ) ) {
|
||||
if ( ! function_exists( 'blogside_sidebar_secondary' ) ) {
|
||||
|
||||
function blogline_sidebar_secondary() {
|
||||
function blogside_sidebar_secondary() {
|
||||
// Default sidebar
|
||||
$sidebar = 'secondary';
|
||||
|
||||
|
@ -319,9 +319,9 @@ if ( ! function_exists( 'blogline_sidebar_secondary' ) ) {
|
|||
|
||||
/* Social links
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_social_links' ) ) {
|
||||
if ( ! function_exists( 'blogside_social_links' ) ) {
|
||||
|
||||
function blogline_social_links() {
|
||||
function blogside_social_links() {
|
||||
if ( !get_theme_mod('social-links') =='' ) {
|
||||
$links = get_theme_mod('social-links', array());
|
||||
if ( !empty( $links ) ) {
|
||||
|
@ -355,9 +355,9 @@ if ( ! function_exists( 'blogline_social_links' ) ) {
|
|||
|
||||
/* Site name/logo
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_site_title' ) ) {
|
||||
if ( ! function_exists( 'blogside_site_title' ) ) {
|
||||
|
||||
function blogline_site_title() {
|
||||
function blogside_site_title() {
|
||||
|
||||
$custom_logo_id = get_theme_mod( 'custom_logo' );
|
||||
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
|
||||
|
@ -385,9 +385,9 @@ if ( ! function_exists( 'blogline_site_title' ) ) {
|
|||
|
||||
/* Blog title
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_blog_title' ) ) {
|
||||
if ( ! function_exists( 'blogside_blog_title' ) ) {
|
||||
|
||||
function blogline_blog_title() {
|
||||
function blogside_blog_title() {
|
||||
global $post;
|
||||
$heading = esc_html( get_theme_mod('blog-heading') );
|
||||
$subheading = esc_html( get_theme_mod('blog-subheading') );
|
||||
|
@ -408,9 +408,9 @@ if ( ! function_exists( 'blogline_blog_title' ) ) {
|
|||
|
||||
/* Related posts
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_related_posts' ) ) {
|
||||
if ( ! function_exists( 'blogside_related_posts' ) ) {
|
||||
|
||||
function blogline_related_posts() {
|
||||
function blogside_related_posts() {
|
||||
wp_reset_postdata();
|
||||
global $post;
|
||||
|
||||
|
@ -459,9 +459,9 @@ if ( ! function_exists( 'blogline_related_posts' ) ) {
|
|||
|
||||
/* Get images attached to post
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_post_images' ) ) {
|
||||
if ( ! function_exists( 'blogside_post_images' ) ) {
|
||||
|
||||
function blogline_post_images( $args=array() ) {
|
||||
function blogside_post_images( $args=array() ) {
|
||||
global $post;
|
||||
|
||||
$defaults = array(
|
||||
|
@ -483,9 +483,9 @@ if ( ! function_exists( 'blogline_post_images' ) ) {
|
|||
|
||||
/* Get featured post ids
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_get_featured_post_ids' ) ) {
|
||||
if ( ! function_exists( 'blogside_get_featured_post_ids' ) ) {
|
||||
|
||||
function blogline_get_featured_post_ids() {
|
||||
function blogside_get_featured_post_ids() {
|
||||
$args = array(
|
||||
'category' => absint( get_theme_mod('featured-category','') ),
|
||||
'numberposts' => absint( get_theme_mod('featured-posts-count','3')),
|
||||
|
@ -506,10 +506,10 @@ if ( ! function_exists( 'blogline_get_featured_post_ids' ) ) {
|
|||
|
||||
/* Body class
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_body_class' ) ) {
|
||||
if ( ! function_exists( 'blogside_body_class' ) ) {
|
||||
|
||||
function blogline_body_class( $classes ) {
|
||||
$classes[] = blogline_layout_class();
|
||||
function blogside_body_class( $classes ) {
|
||||
$classes[] = blogside_layout_class();
|
||||
if ( get_theme_mod( 'boxed','off' ) != 'on' ) { $classes[] = 'full-width'; }
|
||||
if ( get_theme_mod( 'boxed','off' ) == 'on' ) { $classes[] = 'boxed'; }
|
||||
if ( has_nav_menu( 'topbar' ) ) { $classes[] = 'topbar-enabled'; }
|
||||
|
@ -519,14 +519,14 @@ if ( ! function_exists( 'blogline_body_class' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_filter( 'body_class', 'blogline_body_class' );
|
||||
add_filter( 'body_class', 'blogside_body_class' );
|
||||
|
||||
|
||||
/* Excerpt ending
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_excerpt_more' ) ) {
|
||||
if ( ! function_exists( 'blogside_excerpt_more' ) ) {
|
||||
|
||||
function blogline_excerpt_more( $more ) {
|
||||
function blogside_excerpt_more( $more ) {
|
||||
if ( is_admin() ) {
|
||||
return $more;
|
||||
}
|
||||
|
@ -534,14 +534,14 @@ if ( ! function_exists( 'blogline_excerpt_more' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_filter( 'excerpt_more', 'blogline_excerpt_more' );
|
||||
add_filter( 'excerpt_more', 'blogside_excerpt_more' );
|
||||
|
||||
|
||||
/* Excerpt length
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_excerpt_length' ) ) {
|
||||
if ( ! function_exists( 'blogside_excerpt_length' ) ) {
|
||||
|
||||
function blogline_excerpt_length( $length ) {
|
||||
function blogside_excerpt_length( $length ) {
|
||||
if ( is_admin() ) {
|
||||
return $length;
|
||||
}
|
||||
|
@ -555,14 +555,14 @@ if ( ! function_exists( 'blogline_excerpt_length' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_filter( 'excerpt_length', 'blogline_excerpt_length', 999 );
|
||||
add_filter( 'excerpt_length', 'blogside_excerpt_length', 999 );
|
||||
|
||||
|
||||
/* Add responsive container to embeds
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_embed_html' ) ) {
|
||||
if ( ! function_exists( 'blogside_embed_html' ) ) {
|
||||
|
||||
function blogline_embed_html( $html, $url ) {
|
||||
function blogside_embed_html( $html, $url ) {
|
||||
|
||||
$pattern = '/^https?:\/\/(www\.)?twitter\.com/';
|
||||
$is_twitter = preg_match( $pattern, $url );
|
||||
|
@ -575,19 +575,19 @@ if ( ! function_exists( 'blogline_embed_html' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_filter( 'embed_oembed_html', 'blogline_embed_html', 10, 3 );
|
||||
add_filter( 'embed_oembed_html', 'blogside_embed_html', 10, 3 );
|
||||
|
||||
|
||||
/* Add responsive container to jetpack embeds
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_embed_html_jp' ) ) {
|
||||
if ( ! function_exists( 'blogside_embed_html_jp' ) ) {
|
||||
|
||||
function blogline_embed_html_jp( $html ) {
|
||||
function blogside_embed_html_jp( $html ) {
|
||||
return '<div class="video-container">' . $html . '</div>';
|
||||
}
|
||||
|
||||
}
|
||||
add_filter( 'video_embed_html', 'blogline_embed_html_jp' );
|
||||
add_filter( 'video_embed_html', 'blogside_embed_html_jp' );
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
@ -596,9 +596,9 @@ add_filter( 'video_embed_html', 'blogline_embed_html_jp' );
|
|||
|
||||
/* Include or exclude featured articles in loop
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_pre_get_posts' ) ) {
|
||||
if ( ! function_exists( 'blogside_pre_get_posts' ) ) {
|
||||
|
||||
function blogline_pre_get_posts( $query ) {
|
||||
function blogside_pre_get_posts( $query ) {
|
||||
// Are we on main query ?
|
||||
if ( !$query->is_main_query() ) return;
|
||||
if ( $query->is_home() ) {
|
||||
|
@ -606,7 +606,7 @@ if ( ! function_exists( 'blogline_pre_get_posts' ) ) {
|
|||
// Featured posts enabled
|
||||
if ( get_theme_mod('featured-posts-count','3') != '0' ) {
|
||||
// Get featured post ids
|
||||
$featured_post_ids = blogline_get_featured_post_ids();
|
||||
$featured_post_ids = blogside_get_featured_post_ids();
|
||||
// Exclude posts
|
||||
if ( $featured_post_ids && !get_theme_mod('featured-posts-include') )
|
||||
$query->set('post__not_in', $featured_post_ids);
|
||||
|
@ -615,38 +615,38 @@ if ( ! function_exists( 'blogline_pre_get_posts' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_action( 'pre_get_posts', 'blogline_pre_get_posts' );
|
||||
add_action( 'pre_get_posts', 'blogside_pre_get_posts' );
|
||||
|
||||
|
||||
/* Script for no-js / js class
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_html_js_class' ) ) {
|
||||
if ( ! function_exists( 'blogside_html_js_class' ) ) {
|
||||
|
||||
function blogline_html_js_class () {
|
||||
function blogside_html_js_class () {
|
||||
echo '<script>document.documentElement.className = document.documentElement.className.replace("no-js","js");</script>'. "\n";
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_head', 'blogline_html_js_class', 1 );
|
||||
add_action( 'wp_head', 'blogside_html_js_class', 1 );
|
||||
|
||||
|
||||
/* Script for no-js / js class
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_html_js_class' ) ) {
|
||||
if ( ! function_exists( 'blogside_html_js_class' ) ) {
|
||||
|
||||
function blogline_html_js_class () {
|
||||
function blogside_html_js_class () {
|
||||
echo '<script>document.documentElement.className = document.documentElement.className.replace("no-js","js");</script>'. "\n";
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_head', 'blogline_html_js_class', 1 );
|
||||
add_action( 'wp_head', 'blogside_html_js_class', 1 );
|
||||
|
||||
|
||||
/* Admin panel css
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_admin_panel_css' ) ) {
|
||||
if ( ! function_exists( 'blogside_admin_panel_css' ) ) {
|
||||
|
||||
function blogline_admin_panel_css() {
|
||||
function blogside_admin_panel_css() {
|
||||
global $pagenow;
|
||||
if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) {
|
||||
echo '<style>
|
||||
|
@ -657,35 +657,35 @@ if ( ! function_exists( 'blogline_admin_panel_css' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_action( 'admin_head', 'blogline_admin_panel_css' );
|
||||
add_action( 'admin_head', 'blogside_admin_panel_css' );
|
||||
|
||||
|
||||
/* TGM plugin activation
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_plugins' ) ) {
|
||||
if ( ! function_exists( 'blogside_plugins' ) ) {
|
||||
|
||||
function blogline_plugins() {
|
||||
function blogside_plugins() {
|
||||
if ( get_theme_mod('recommended-plugins','on') =='on' ) {
|
||||
// Add the following plugins
|
||||
$plugins = array(
|
||||
array(
|
||||
'name' => esc_html__( 'Alx Extensions', 'blogline' ),
|
||||
'name' => esc_html__( 'Alx Extensions', 'blogside' ),
|
||||
'slug' => 'alx-extensions',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Meta Box', 'blogline' ),
|
||||
'name' => esc_html__( 'Meta Box', 'blogside' ),
|
||||
'slug' => 'meta-box',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Regenerate Thumbnails', 'blogline' ),
|
||||
'name' => esc_html__( 'Regenerate Thumbnails', 'blogside' ),
|
||||
'slug' => 'regenerate-thumbnails',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'WP-PageNavi', 'blogline' ),
|
||||
'name' => esc_html__( 'WP-PageNavi', 'blogside' ),
|
||||
'slug' => 'wp-pagenavi',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Responsive Lightbox', 'blogline' ),
|
||||
'name' => esc_html__( 'Responsive Lightbox', 'blogside' ),
|
||||
'slug' => 'responsive-lightbox',
|
||||
)
|
||||
);
|
||||
|
@ -694,23 +694,23 @@ if ( ! function_exists( 'blogline_plugins' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_action( 'tgmpa_register', 'blogline_plugins' );
|
||||
add_action( 'tgmpa_register', 'blogside_plugins' );
|
||||
|
||||
|
||||
/* WooCommerce basic support
|
||||
/* ------------------------------------ */
|
||||
function blogline_wc_wrapper_start() {
|
||||
function blogside_wc_wrapper_start() {
|
||||
echo '<div class="content">';
|
||||
echo '<div class="pad">';
|
||||
}
|
||||
function blogline_wc_wrapper_end() {
|
||||
function blogside_wc_wrapper_end() {
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
}
|
||||
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
|
||||
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
|
||||
add_action('woocommerce_before_main_content', 'blogline_wc_wrapper_start', 10);
|
||||
add_action('woocommerce_after_main_content', 'blogline_wc_wrapper_end', 10);
|
||||
add_action('woocommerce_before_main_content', 'blogside_wc_wrapper_start', 10);
|
||||
add_action('woocommerce_after_main_content', 'blogside_wc_wrapper_end', 10);
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
@ -719,40 +719,47 @@ add_action('woocommerce_after_main_content', 'blogline_wc_wrapper_end', 10);
|
|||
|
||||
/* Flexslider gallery post format
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_flexslider_gallery' ) ) {
|
||||
if ( ! function_exists( 'blogside_flexslider_gallery' ) ) {
|
||||
|
||||
function blogline_flexslider_gallery() {
|
||||
function blogside_flexslider_gallery() {
|
||||
|
||||
if( has_post_format( 'gallery' ) ) {
|
||||
if( ( is_home() || is_single() || is_archive() || is_search() ) && have_posts() ) {
|
||||
while( have_posts() ) {
|
||||
the_post();
|
||||
|
||||
$script = '
|
||||
jQuery(document).ready(function(){
|
||||
var firstImage = jQuery("#flexslider-' . get_the_ID() . '").find("img").filter(":first"),
|
||||
checkforloaded = setInterval(function() {
|
||||
var image = firstImage.get(0);
|
||||
if (image.complete || image.readyState == "complete" || image.readyState == 4) {
|
||||
clearInterval(checkforloaded);
|
||||
jQuery("#flexslider-' . get_the_ID() . '").flexslider({
|
||||
animation: "fade",
|
||||
slideshow: false,
|
||||
directionNav: true,
|
||||
controlNav: false,
|
||||
pauseOnHover: true,
|
||||
slideshowSpeed: 7000,
|
||||
animationSpeed: 600,
|
||||
smoothHeight: true,
|
||||
touch: false
|
||||
});
|
||||
}
|
||||
}, 20);
|
||||
});
|
||||
';
|
||||
if( get_post_format() && get_post_format() === 'gallery' ) {
|
||||
|
||||
$script = '
|
||||
jQuery(document).ready(function(){
|
||||
var firstImage = jQuery("#flexslider-' . get_the_ID() . '").find("img").filter(":first"),
|
||||
checkforloaded = setInterval(function() {
|
||||
var image = firstImage.get(0);
|
||||
if (image.complete || image.readyState == "complete" || image.readyState == 4) {
|
||||
clearInterval(checkforloaded);
|
||||
jQuery("#flexslider-' . get_the_ID() . '").flexslider({
|
||||
animation: "fade",
|
||||
slideshow: false,
|
||||
directionNav: true,
|
||||
controlNav: false,
|
||||
pauseOnHover: true,
|
||||
slideshowSpeed: 7000,
|
||||
animationSpeed: 600,
|
||||
smoothHeight: true,
|
||||
touch: false
|
||||
});
|
||||
}
|
||||
}, 20);
|
||||
});
|
||||
';
|
||||
|
||||
wp_add_inline_script( 'blogline-scripts', $script );
|
||||
|
||||
wp_add_inline_script( 'blogside-scripts', $script );
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'blogline_flexslider_gallery' );
|
||||
add_action( 'wp_enqueue_scripts', 'blogside_flexslider_gallery' );
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* or theme author for support.
|
||||
*
|
||||
* @package TGM-Plugin-Activation
|
||||
* @version 2.6.1 for parent theme Blogline for publication on WordPress.org
|
||||
* @version 2.6.1 for parent theme Blogside for publication on WordPress.org
|
||||
* @link http://tgmpluginactivation.com/
|
||||
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
|
||||
* @copyright Copyright (c) 2011, Thomas Griffin
|
||||
|
@ -324,77 +324,77 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
|
||||
// Load class strings.
|
||||
$this->strings = array(
|
||||
'page_title' => __( 'Install Required Plugins', 'blogline' ),
|
||||
'menu_title' => __( 'Install Plugins', 'blogline' ),
|
||||
'page_title' => __( 'Install Required Plugins', 'blogside' ),
|
||||
'menu_title' => __( 'Install Plugins', 'blogside' ),
|
||||
/* translators: %s: plugin name. */
|
||||
'installing' => __( 'Installing Plugin: %s', 'blogline' ),
|
||||
'installing' => __( 'Installing Plugin: %s', 'blogside' ),
|
||||
/* translators: %s: plugin name. */
|
||||
'updating' => __( 'Updating Plugin: %s', 'blogline' ),
|
||||
'oops' => __( 'Something went wrong with the plugin API.', 'blogline' ),
|
||||
'updating' => __( 'Updating Plugin: %s', 'blogside' ),
|
||||
'oops' => __( 'Something went wrong with the plugin API.', 'blogside' ),
|
||||
'notice_can_install_required' => _n_noop(
|
||||
/* translators: 1: plugin name(s). */
|
||||
'This theme requires the following plugin: %1$s.',
|
||||
'This theme requires the following plugins: %1$s.',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'notice_can_install_recommended' => _n_noop(
|
||||
/* translators: 1: plugin name(s). */
|
||||
'This theme recommends the following plugin: %1$s.',
|
||||
'This theme recommends the following plugins: %1$s.',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'notice_ask_to_update' => _n_noop(
|
||||
/* translators: 1: plugin name(s). */
|
||||
'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
|
||||
'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'notice_ask_to_update_maybe' => _n_noop(
|
||||
/* translators: 1: plugin name(s). */
|
||||
'There is an update available for: %1$s.',
|
||||
'There are updates available for the following plugins: %1$s.',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'notice_can_activate_required' => _n_noop(
|
||||
/* translators: 1: plugin name(s). */
|
||||
'The following required plugin is currently inactive: %1$s.',
|
||||
'The following required plugins are currently inactive: %1$s.',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'notice_can_activate_recommended' => _n_noop(
|
||||
/* translators: 1: plugin name(s). */
|
||||
'The following recommended plugin is currently inactive: %1$s.',
|
||||
'The following recommended plugins are currently inactive: %1$s.',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'install_link' => _n_noop(
|
||||
'Begin installing plugin',
|
||||
'Begin installing plugins',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'update_link' => _n_noop(
|
||||
'Begin updating plugin',
|
||||
'Begin updating plugins',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'activate_link' => _n_noop(
|
||||
'Begin activating plugin',
|
||||
'Begin activating plugins',
|
||||
'blogline'
|
||||
'blogside'
|
||||
),
|
||||
'return' => __( 'Return to Required Plugins Installer', 'blogline' ),
|
||||
'dashboard' => __( 'Return to the Dashboard', 'blogline' ),
|
||||
'plugin_activated' => __( 'Plugin activated successfully.', 'blogline' ),
|
||||
'activated_successfully' => __( 'The following plugin was activated successfully:', 'blogline' ),
|
||||
'return' => __( 'Return to Required Plugins Installer', 'blogside' ),
|
||||
'dashboard' => __( 'Return to the Dashboard', 'blogside' ),
|
||||
'plugin_activated' => __( 'Plugin activated successfully.', 'blogside' ),
|
||||
'activated_successfully' => __( 'The following plugin was activated successfully:', 'blogside' ),
|
||||
/* translators: 1: plugin name. */
|
||||
'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'blogline' ),
|
||||
'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'blogside' ),
|
||||
/* translators: 1: plugin name. */
|
||||
'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'blogline' ),
|
||||
'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'blogside' ),
|
||||
/* translators: 1: dashboard link. */
|
||||
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'blogline' ),
|
||||
'dismiss' => __( 'Dismiss this notice', 'blogline' ),
|
||||
'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'blogline' ),
|
||||
'contact_admin' => __( 'Please contact the administrator of this site for help.', 'blogline' ),
|
||||
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'blogside' ),
|
||||
'dismiss' => __( 'Dismiss this notice', 'blogside' ),
|
||||
'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'blogside' ),
|
||||
'contact_admin' => __( 'Please contact the administrator of this site for help.', 'blogside' ),
|
||||
);
|
||||
|
||||
do_action( 'tgmpa_register' );
|
||||
|
@ -519,8 +519,8 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
$actions['update'] = sprintf(
|
||||
'<a href="%1$s" title="%2$s" class="edit">%3$s</a>',
|
||||
esc_url( $this->get_tgmpa_status_url( 'update' ) ),
|
||||
esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'blogline' ),
|
||||
esc_html__( 'Update Required', 'blogline' )
|
||||
esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'blogside' ),
|
||||
esc_html__( 'Update Required', 'blogside' )
|
||||
);
|
||||
|
||||
return $actions;
|
||||
|
@ -824,7 +824,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
|
||||
// Display message based on if all plugins are now active or not.
|
||||
if ( $this->is_tgmpa_complete() ) {
|
||||
echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'blogline' ) . '</a>' ), '</p>';
|
||||
echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'blogside' ) . '</a>' ), '</p>';
|
||||
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
||||
} else {
|
||||
echo '<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>';
|
||||
|
@ -931,10 +931,10 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) {
|
||||
return trailingslashit( $to_path );
|
||||
} else {
|
||||
return new WP_Error( 'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'blogline' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'blogline' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
||||
return new WP_Error( 'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'blogside' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'blogside' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
||||
}
|
||||
} elseif ( empty( $subdir_name ) ) {
|
||||
return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'blogline' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'blogline' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
||||
return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'blogside' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'blogside' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1118,12 +1118,12 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
$count = count( $plugin_group );
|
||||
$linked_plugins = array_map( array( 'TGMPA_Utils', 'wrap_in_em' ), $linked_plugins );
|
||||
$last_plugin = array_pop( $linked_plugins ); // Pop off last name to prep for readability.
|
||||
$imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'blogline' ) . ' ' . $last_plugin );
|
||||
$imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'blogside' ) . ' ' . $last_plugin );
|
||||
|
||||
$rendered .= sprintf(
|
||||
$line_template,
|
||||
sprintf(
|
||||
translate_nooped_plural( $this->strings[ $type ], $count, 'blogline' ),
|
||||
translate_nooped_plural( $this->strings[ $type ], $count, 'blogside' ),
|
||||
$imploded,
|
||||
$count
|
||||
)
|
||||
|
@ -1171,14 +1171,14 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
if ( $install_count > 0 ) {
|
||||
$action_links['install'] = sprintf(
|
||||
$link_template,
|
||||
translate_nooped_plural( $this->strings['install_link'], $install_count, 'blogline' ),
|
||||
translate_nooped_plural( $this->strings['install_link'], $install_count, 'blogside' ),
|
||||
esc_url( $this->get_tgmpa_status_url( 'install' ) )
|
||||
);
|
||||
}
|
||||
if ( $update_count > 0 ) {
|
||||
$action_links['update'] = sprintf(
|
||||
$link_template,
|
||||
translate_nooped_plural( $this->strings['update_link'], $update_count, 'blogline' ),
|
||||
translate_nooped_plural( $this->strings['update_link'], $update_count, 'blogside' ),
|
||||
esc_url( $this->get_tgmpa_status_url( 'update' ) )
|
||||
);
|
||||
}
|
||||
|
@ -1187,7 +1187,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
if ( current_user_can( 'activate_plugins' ) && $activate_count > 0 ) {
|
||||
$action_links['activate'] = sprintf(
|
||||
$link_template,
|
||||
translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'blogline' ),
|
||||
translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'blogside' ),
|
||||
esc_url( $this->get_tgmpa_status_url( 'activate' ) )
|
||||
);
|
||||
}
|
||||
|
@ -1979,7 +1979,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|||
esc_html(
|
||||
sprintf(
|
||||
/* translators: %s: version number */
|
||||
__( 'TGMPA v%s', 'blogline' ),
|
||||
__( 'TGMPA v%s', 'blogside' ),
|
||||
self::TGMPA_VERSION
|
||||
)
|
||||
),
|
||||
|
@ -2270,10 +2270,10 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
*/
|
||||
protected function get_plugin_advise_type_text( $required ) {
|
||||
if ( true === $required ) {
|
||||
return __( 'Required', 'blogline' );
|
||||
return __( 'Required', 'blogside' );
|
||||
}
|
||||
|
||||
return __( 'Recommended', 'blogline' );
|
||||
return __( 'Recommended', 'blogside' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2289,13 +2289,13 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
|
||||
switch ( $type ) {
|
||||
case 'repo':
|
||||
$string = __( 'WordPress Repository', 'blogline' );
|
||||
$string = __( 'WordPress Repository', 'blogside' );
|
||||
break;
|
||||
case 'external':
|
||||
$string = __( 'External Source', 'blogline' );
|
||||
$string = __( 'External Source', 'blogside' );
|
||||
break;
|
||||
case 'bundled':
|
||||
$string = __( 'Pre-Packaged', 'blogline' );
|
||||
$string = __( 'Pre-Packaged', 'blogside' );
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2312,25 +2312,25 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
*/
|
||||
protected function get_plugin_status_text( $slug ) {
|
||||
if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) {
|
||||
return __( 'Not Installed', 'blogline' );
|
||||
return __( 'Not Installed', 'blogside' );
|
||||
}
|
||||
|
||||
if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
|
||||
$install_status = __( 'Installed But Not Activated', 'blogline' );
|
||||
$install_status = __( 'Installed But Not Activated', 'blogside' );
|
||||
} else {
|
||||
$install_status = __( 'Active', 'blogline' );
|
||||
$install_status = __( 'Active', 'blogside' );
|
||||
}
|
||||
|
||||
$update_status = '';
|
||||
|
||||
if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
||||
$update_status = __( 'Required Update not Available', 'blogline' );
|
||||
$update_status = __( 'Required Update not Available', 'blogside' );
|
||||
|
||||
} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
|
||||
$update_status = __( 'Requires Update', 'blogline' );
|
||||
$update_status = __( 'Requires Update', 'blogside' );
|
||||
|
||||
} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
||||
$update_status = __( 'Update recommended', 'blogline' );
|
||||
$update_status = __( 'Update recommended', 'blogside' );
|
||||
}
|
||||
|
||||
if ( '' === $update_status ) {
|
||||
|
@ -2339,7 +2339,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
|
||||
return sprintf(
|
||||
/* translators: 1: install status, 2: update status */
|
||||
_x( '%1$s, %2$s', 'Install/Update Status', 'blogline' ),
|
||||
_x( '%1$s, %2$s', 'Install/Update Status', 'blogside' ),
|
||||
$install_status,
|
||||
$update_status
|
||||
);
|
||||
|
@ -2385,19 +2385,19 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
switch ( $type ) {
|
||||
case 'all':
|
||||
/* translators: 1: number of plugins. */
|
||||
$text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'blogline' );
|
||||
$text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'blogside' );
|
||||
break;
|
||||
case 'install':
|
||||
/* translators: 1: number of plugins. */
|
||||
$text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'blogline' );
|
||||
$text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'blogside' );
|
||||
break;
|
||||
case 'update':
|
||||
/* translators: 1: number of plugins. */
|
||||
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'blogline' );
|
||||
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'blogside' );
|
||||
break;
|
||||
case 'activate':
|
||||
/* translators: 1: number of plugins. */
|
||||
$text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'blogline' );
|
||||
$text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'blogside' );
|
||||
break;
|
||||
default:
|
||||
$text = '';
|
||||
|
@ -2479,7 +2479,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
$output = array();
|
||||
|
||||
if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
|
||||
$installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'blogline' );
|
||||
$installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'blogside' );
|
||||
|
||||
$color = '';
|
||||
if ( ! empty( $item['minimum_version'] ) && $this->tgmpa->does_plugin_require_update( $item['slug'] ) ) {
|
||||
|
@ -2487,7 +2487,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
}
|
||||
|
||||
$output[] = sprintf(
|
||||
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'blogline' ) . '</p>',
|
||||
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'blogside' ) . '</p>',
|
||||
$color,
|
||||
$installed
|
||||
);
|
||||
|
@ -2495,7 +2495,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
|
||||
if ( ! empty( $item['minimum_version'] ) ) {
|
||||
$output[] = sprintf(
|
||||
'<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'blogline' ) . '</p>',
|
||||
'<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'blogside' ) . '</p>',
|
||||
$item['minimum_version']
|
||||
);
|
||||
}
|
||||
|
@ -2507,7 +2507,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
}
|
||||
|
||||
$output[] = sprintf(
|
||||
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'blogline' ) . '</p>',
|
||||
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'blogside' ) . '</p>',
|
||||
$color,
|
||||
$item['available_version']
|
||||
);
|
||||
|
@ -2530,7 +2530,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
* @since 2.2.0
|
||||
*/
|
||||
public function no_items() {
|
||||
echo esc_html__( 'No plugins to install, update or activate.', 'blogline' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'blogline' ) . '</a>';
|
||||
echo esc_html__( 'No plugins to install, update or activate.', 'blogside' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'blogside' ) . '</a>';
|
||||
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
||||
}
|
||||
|
||||
|
@ -2544,14 +2544,14 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
public function get_columns() {
|
||||
$columns = array(
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'plugin' => __( 'Plugin', 'blogline' ),
|
||||
'source' => __( 'Source', 'blogline' ),
|
||||
'type' => __( 'Type', 'blogline' ),
|
||||
'plugin' => __( 'Plugin', 'blogside' ),
|
||||
'source' => __( 'Source', 'blogside' ),
|
||||
'type' => __( 'Type', 'blogside' ),
|
||||
);
|
||||
|
||||
if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
|
||||
$columns['version'] = __( 'Version', 'blogline' );
|
||||
$columns['status'] = __( 'Status', 'blogline' );
|
||||
$columns['version'] = __( 'Version', 'blogside' );
|
||||
$columns['status'] = __( 'Status', 'blogside' );
|
||||
}
|
||||
|
||||
return apply_filters( 'tgmpa_table_columns', $columns );
|
||||
|
@ -2600,18 +2600,18 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
// Display the 'Install' action link if the plugin is not yet available.
|
||||
if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
|
||||
/* translators: %2$s: plugin name in screen reader markup */
|
||||
$actions['install'] = __( 'Install %2$s', 'blogline' );
|
||||
$actions['install'] = __( 'Install %2$s', 'blogside' );
|
||||
} else {
|
||||
// Display the 'Update' action link if an update is available and WP complies with plugin minimum.
|
||||
if ( false !== $this->tgmpa->does_plugin_have_update( $item['slug'] ) && $this->tgmpa->can_plugin_update( $item['slug'] ) ) {
|
||||
/* translators: %2$s: plugin name in screen reader markup */
|
||||
$actions['update'] = __( 'Update %2$s', 'blogline' );
|
||||
$actions['update'] = __( 'Update %2$s', 'blogside' );
|
||||
}
|
||||
|
||||
// Display the 'Activate' action link, but only if the plugin meets the minimum version.
|
||||
if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
|
||||
/* translators: %2$s: plugin name in screen reader markup */
|
||||
$actions['activate'] = __( 'Activate %2$s', 'blogline' );
|
||||
$actions['activate'] = __( 'Activate %2$s', 'blogside' );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2681,7 +2681,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
<tr class="plugin-update-tr">
|
||||
<td colspan="', absint( $this->get_column_count() ), '" class="plugin-update colspanchange">
|
||||
<div class="update-message">',
|
||||
esc_html__( 'Upgrade message from the plugin author:', 'blogline' ),
|
||||
esc_html__( 'Upgrade message from the plugin author:', 'blogside' ),
|
||||
' <strong>', wp_kses_data( $item['upgrade_notice'] ), '</strong>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -2714,16 +2714,16 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
|
||||
if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) {
|
||||
if ( current_user_can( 'install_plugins' ) ) {
|
||||
$actions['tgmpa-bulk-install'] = __( 'Install', 'blogline' );
|
||||
$actions['tgmpa-bulk-install'] = __( 'Install', 'blogside' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'install' !== $this->view_context ) {
|
||||
if ( current_user_can( 'update_plugins' ) ) {
|
||||
$actions['tgmpa-bulk-update'] = __( 'Update', 'blogline' );
|
||||
$actions['tgmpa-bulk-update'] = __( 'Update', 'blogside' );
|
||||
}
|
||||
if ( current_user_can( 'activate_plugins' ) ) {
|
||||
$actions['tgmpa-bulk-activate'] = __( 'Activate', 'blogline' );
|
||||
$actions['tgmpa-bulk-activate'] = __( 'Activate', 'blogside' );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2754,9 +2754,9 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
// Did user actually select any plugins to install/update ?
|
||||
if ( empty( $_POST['plugin'] ) ) {
|
||||
if ( 'install' === $install_type ) {
|
||||
$message = __( 'No plugins were selected to be installed. No action taken.', 'blogline' );
|
||||
$message = __( 'No plugins were selected to be installed. No action taken.', 'blogside' );
|
||||
} else {
|
||||
$message = __( 'No plugins were selected to be updated. No action taken.', 'blogline' );
|
||||
$message = __( 'No plugins were selected to be updated. No action taken.', 'blogside' );
|
||||
}
|
||||
|
||||
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
|
||||
|
@ -2797,9 +2797,9 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
// No need to proceed further if we have no plugins to handle.
|
||||
if ( empty( $plugins_to_install ) ) {
|
||||
if ( 'install' === $install_type ) {
|
||||
$message = __( 'No plugins are available to be installed at this time.', 'blogline' );
|
||||
$message = __( 'No plugins are available to be installed at this time.', 'blogside' );
|
||||
} else {
|
||||
$message = __( 'No plugins are available to be updated at this time.', 'blogline' );
|
||||
$message = __( 'No plugins are available to be updated at this time.', 'blogside' );
|
||||
}
|
||||
|
||||
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
|
||||
|
@ -2905,7 +2905,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
|
||||
// Did user actually select any plugins to activate ?
|
||||
if ( empty( $_POST['plugin'] ) ) {
|
||||
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'blogline' ), '</p></div>';
|
||||
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'blogside' ), '</p></div>';
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -2931,7 +2931,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
|
||||
// Return early if there are no plugins to activate.
|
||||
if ( empty( $plugins_to_activate ) ) {
|
||||
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'blogline' ), '</p></div>';
|
||||
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'blogside' ), '</p></div>';
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -2945,11 +2945,11 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|||
$count = count( $plugin_names ); // Count so we can use _n function.
|
||||
$plugin_names = array_map( array( 'TGMPA_Utils', 'wrap_in_strong' ), $plugin_names );
|
||||
$last_plugin = array_pop( $plugin_names ); // Pop off last name to prep for readability.
|
||||
$imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'blogline' ) . ' ' . $last_plugin );
|
||||
$imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'blogside' ) . ' ' . $last_plugin );
|
||||
|
||||
printf( // WPCS: xss ok.
|
||||
'<div id="message" class="updated"><p>%1$s %2$s.</p></div>',
|
||||
esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'blogline' ) ),
|
||||
esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'blogside' ) ),
|
||||
$imploded
|
||||
);
|
||||
|
||||
|
@ -3155,8 +3155,8 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
|
|||
* @since 2.2.0
|
||||
*/
|
||||
public function activate_strings() {
|
||||
$this->strings['activation_failed'] = __( 'Plugin activation failed.', 'blogline' );
|
||||
$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'blogline' );
|
||||
$this->strings['activation_failed'] = __( 'Plugin activation failed.', 'blogside' );
|
||||
$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'blogside' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3495,29 +3495,29 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
|
|||
if ( 'update' === $this->options['install_type'] ) {
|
||||
parent::add_strings();
|
||||
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
|
||||
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'blogline' );
|
||||
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'blogside' );
|
||||
} else {
|
||||
/* translators: 1: plugin name, 2: error message. */
|
||||
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'blogline' );
|
||||
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'blogside' );
|
||||
/* translators: 1: plugin name. */
|
||||
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'blogline' );
|
||||
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'blogside' );
|
||||
|
||||
if ( $this->tgmpa->is_automatic ) {
|
||||
// Automatic activation strings.
|
||||
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'blogline' );
|
||||
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'blogside' );
|
||||
/* translators: 1: plugin name. */
|
||||
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'blogline' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'blogline' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'blogline' ) . '</span>.</a>';
|
||||
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'blogline' );
|
||||
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'blogside' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'blogside' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'blogside' ) . '</span>.</a>';
|
||||
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'blogside' );
|
||||
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
|
||||
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'blogline' );
|
||||
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'blogside' );
|
||||
} else {
|
||||
// Default installation strings.
|
||||
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'blogline' );
|
||||
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'blogside' );
|
||||
/* translators: 1: plugin name. */
|
||||
$this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'blogline' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'blogline' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'blogline' ) . '</span>.</a>';
|
||||
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'blogline' );
|
||||
$this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'blogside' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'blogside' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'blogside' ) . '</span>.</a>';
|
||||
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'blogside' );
|
||||
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
|
||||
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'blogline' );
|
||||
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'blogside' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3577,7 +3577,7 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
|
|||
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
||||
$update_actions['dashboard'] = sprintf(
|
||||
esc_html( $this->tgmpa->strings['complete'] ),
|
||||
'<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'blogline' ) . '</a>'
|
||||
'<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'blogside' ) . '</a>'
|
||||
);
|
||||
} else {
|
||||
$update_actions['tgmpa_page'] = '<a href="' . esc_url( $this->tgmpa->get_tgmpa_url() ) . '" target="_parent">' . esc_html( $this->tgmpa->strings['return'] ) . '</a>';
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<header class="jumbotron" id="overview">
|
||||
<div class="container">
|
||||
|
||||
<h1>Blogline</h1>
|
||||
<h1>Blogside</h1>
|
||||
<p class="lead">Thank you for using this theme, you have good taste! ;-)</p>
|
||||
<p><a href="http://alxmedia.se">AlxMedia</a> · <a href="http://alxmedia.se/themes/">Themes</a></p>
|
||||
|
||||
|
@ -82,14 +82,14 @@
|
|||
|
||||
<h1><span class="label color-02">02</span>Installation</h1>
|
||||
|
||||
<p>Installing your theme is pretty easy! After downloading you should have a <code>blogline.zip</code> file, found within the theme package zip. This is a compressed file containing all of the required templates and images required for the theme to function properly.</p>
|
||||
<p>Installing your theme is pretty easy! After downloading you should have a <code>blogside.zip</code> file, found within the theme package zip. This is a compressed file containing all of the required templates and images required for the theme to function properly.</p>
|
||||
|
||||
<h3>Upload the theme</h3>
|
||||
<ol>
|
||||
<li>Go to <strong>Appearance > Themes</strong> in the WordPress menu</li>
|
||||
<li>Click on the <strong>Add New</strong> button</li>
|
||||
<li>Click on the <strong>Upload</strong> link</li>
|
||||
<li>Select the <code>blogline.zip</code> file</li>
|
||||
<li>Select the <code>blogside.zip</code> file</li>
|
||||
<li>Click <strong>Install Now</strong></li>
|
||||
</ol>
|
||||
|
||||
|
@ -159,11 +159,11 @@
|
|||
<p>It is a good idea to keep your theme up to date with the latest version, as it often includes important bugfixes or new neat features. If a new version of the theme is available, do the following to update it:</p>
|
||||
<ol>
|
||||
<li>Download the latest version.</li>
|
||||
<li>Locate the <code>blogline.zip</code> file to upload.</li>
|
||||
<li>Locate the <code>blogside.zip</code> file to upload.</li>
|
||||
<li>Go to <strong>Appearance > Themes</strong> in the WordPress menu</li>
|
||||
<li>Activate a default theme temporarily, such as Twenty Twelve (to be able to delete your current theme)</li>
|
||||
<li>Click on the theme you wish to update, and press the red delete link bottom right. Your admin panel options should remain saved.</li>
|
||||
<li>Upload the new <code>blogline.zip</code>, as you did on <a href="#install">first-time install</a>, and activate it.</li>
|
||||
<li>Upload the new <code>blogside.zip</code>, as you did on <a href="#install">first-time install</a>, and activate it.</li>
|
||||
</ol>
|
||||
<p>You are now running the latest and best version of the theme!</p>
|
||||
<div class="alert alert-warning">
|
||||
|
@ -351,10 +351,10 @@
|
|||
</ul>
|
||||
<p>This theme has been built with <strong>child themes in mind</strong>, and therefore all theme functions are pluggable - which means you can overwrite them by copying a function from the parent theme and pasting it into the child theme's functions.php, modify it as you wish - and it will use your modified function instead the original one.</p>
|
||||
<h3>Load certain functionality from the child theme instead</h3>
|
||||
<p>This only applies for files loaded from the parent theme's <strong>functions.php</strong>. Let's say we wish to load the responsive.css file from our child theme's directory instead. We then need to copy the blogline_styles() function to functions.php of the child theme (not including add_action, add_filter or !function_exists - just the function).</p>
|
||||
<p>This only applies for files loaded from the parent theme's <strong>functions.php</strong>. Let's say we wish to load the responsive.css file from our child theme's directory instead. We then need to copy the blogside_styles() function to functions.php of the child theme (not including add_action, add_filter or !function_exists - just the function).</p>
|
||||
<p>Now we have this function in our child theme - but it makes absolutely no difference, and still loads all files from the parent theme.</p>
|
||||
|
||||
<pre><code>function blogline_styles() {
|
||||
<pre><code>function blogside_styles() {
|
||||
wp_enqueue_style( 'style', get_stylesheet_uri() );
|
||||
if ( !get_theme_mod('responsive') ) { wp_enqueue_style( 'responsive', get_template_directory_uri().'/responsive.css' ); }
|
||||
if ( get_theme_mod('custom') ) { wp_enqueue_style( 'custom', get_template_directory_uri().'/custom.css' ); }
|
||||
|
@ -363,14 +363,14 @@
|
|||
|
||||
<p>To load from the child theme instead, change <em>get_template_directory_uri</em> to <em>get_stylesheet_directory_uri</em> for the responsive.css file. The rest of the files will still load from the parent theme, as they use get_template_directory_uri. Like this:</p>
|
||||
|
||||
<pre><code>function blogline_styles() {
|
||||
<pre><code>function blogside_styles() {
|
||||
wp_enqueue_style( 'style', get_stylesheet_uri() );
|
||||
if ( !get_theme_mod('responsive') ) { wp_enqueue_style( 'responsive', get_stylesheet_directory_uri().'/responsive.css' ); }
|
||||
if ( get_theme_mod('custom') ) { wp_enqueue_style( 'custom', get_template_directory_uri().'/custom.css' ); }
|
||||
wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/fonts/font-awesome.min.css' );
|
||||
}</code></pre>
|
||||
|
||||
<p>The same method would be used to change language files folder. You would then copy over the whole blogline_load() function, but only modify this one line in it:</p>
|
||||
<p>The same method would be used to change language files folder. You would then copy over the whole blogside_load() function, but only modify this one line in it:</p>
|
||||
<pre><code>// Load theme languages
|
||||
load_theme_textdomain( 'themename', get_template_directory().'/languages' );</code></pre>
|
||||
|
||||
|
@ -391,7 +391,7 @@ load_theme_textdomain( 'themename', get_stylesheet_directory().'/languages' );</
|
|||
|
||||
<h3>Disabling functions</h3>
|
||||
<p>You can also completely disable functionality with the child theme replacement method. Let's say you don't want the plugin installation notice in your admin panel, or the "Install Plugins" item in your menu. All you would need to add is this to your child theme's functions.php:</p>
|
||||
<pre><code>function blogline_plugins() { }</code></pre>
|
||||
<pre><code>function blogside_plugins() { }</code></pre>
|
||||
<p>Simply emptying the function, disabling it completely.</p>
|
||||
|
||||
<h3>Replacing page templates</h3>
|
||||
|
@ -523,14 +523,14 @@ float: left;
|
|||
<div class="container">
|
||||
|
||||
<h1><span class="label color-05">05.4</span>Change Thumbnail Size</h1>
|
||||
<p>To modify the custom thumbnail sizes for your theme, you need to copy over the whole <code>function blogline_setup() {}</code> to your child theme, using the methods explained above.</p>
|
||||
<p>To modify the custom thumbnail sizes for your theme, you need to copy over the whole <code>function blogside_setup() {}</code> to your child theme, using the methods explained above.</p>
|
||||
<p>Within this function you will find the thumbnail sizes under where it says:</p>
|
||||
<pre><code>// Thumbnail sizes</code></pre>
|
||||
|
||||
<p>Modify the height and width values as you want, using <a target="_blank" href="http://codex.wordpress.org/Function_Reference/add_image_size">add_image_size codex</a> as guideline to how it works. After that you've changed size and saved, you need to run the <a target="_blank" href="http://wordpress.org/plugins/regenerate-thumbnails/">regenerate thumbnails</a> plugin once before you will see any difference.</p>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<p><strong>Important:</strong> If you have trouble with the way thumbnails are upscaling to fit the desired width or height before being cropped, you need to disable the blogline_thumbnail_upscale function. You do so by adding <code>function blogline_thumbnail_upscale() {}</code> to your child theme's functions.php, disabling the function completely.</p>
|
||||
<p><strong>Important:</strong> If you have trouble with the way thumbnails are upscaling to fit the desired width or height before being cropped, you need to disable the blogside_thumbnail_upscale function. You do so by adding <code>function blogside_thumbnail_upscale() {}</code> to your child theme's functions.php, disabling the function completely.</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
|
||||
/* Convert hexadecimal to rgb
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_hex2rgb' ) ) {
|
||||
if ( ! function_exists( 'blogside_hex2rgb' ) ) {
|
||||
|
||||
function blogline_hex2rgb( $hex, $array=false ) {
|
||||
function blogside_hex2rgb( $hex, $array=false ) {
|
||||
$hex = str_replace("#", "", $hex);
|
||||
|
||||
if ( strlen($hex) == 3 ) {
|
||||
|
@ -30,9 +30,9 @@ if ( ! function_exists( 'blogline_hex2rgb' ) ) {
|
|||
|
||||
/* Google fonts
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_enqueue_google_fonts' ) ) {
|
||||
if ( ! function_exists( 'blogside_enqueue_google_fonts' ) ) {
|
||||
|
||||
function blogline_enqueue_google_fonts () {
|
||||
function blogside_enqueue_google_fonts () {
|
||||
if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) {
|
||||
if ( get_theme_mod( 'font' ) == 'titillium-web-ext' ) { wp_enqueue_style( 'titillium-web-ext', '//fonts.googleapis.com/css?family=Titillium+Web:400,400italic,300italic,300,600&subset=latin,latin-ext' ); }
|
||||
if ( get_theme_mod( 'font' ) == 'droid-serif' ) { wp_enqueue_style( 'droid-serif', '//fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700' ); }
|
||||
|
@ -57,19 +57,19 @@ if ( ! function_exists( 'blogline_enqueue_google_fonts' ) ) {
|
|||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'blogline_enqueue_google_fonts' );
|
||||
add_action( 'wp_enqueue_scripts', 'blogside_enqueue_google_fonts' );
|
||||
|
||||
|
||||
/* Dynamic css output
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_dynamic_css' ) ) {
|
||||
if ( ! function_exists( 'blogside_dynamic_css' ) ) {
|
||||
|
||||
function blogline_dynamic_css() {
|
||||
function blogside_dynamic_css() {
|
||||
if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) {
|
||||
|
||||
// rgb values
|
||||
$color_1 = get_theme_mod('color-1');
|
||||
$color_1_rgb = blogline_hex2rgb($color_1);
|
||||
$color_1_rgb = blogside_hex2rgb($color_1);
|
||||
|
||||
// start output
|
||||
$styles = '';
|
||||
|
@ -180,9 +180,9 @@ a,
|
|||
if ( get_theme_mod( 'header_textcolor' ) != '' ) {
|
||||
$styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n";
|
||||
}
|
||||
wp_add_inline_style( 'blogline-style', $styles );
|
||||
wp_add_inline_style( 'blogside-style', $styles );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'blogline_dynamic_css' );
|
||||
add_action( 'wp_enqueue_scripts', 'blogside_dynamic_css' );
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
function blogline_get_meta_box( $meta_boxes ) {
|
||||
function blogside_get_meta_box( $meta_boxes ) {
|
||||
|
||||
/* do not show */
|
||||
$prefix = '_';
|
||||
|
@ -18,7 +18,7 @@ function blogline_get_meta_box( $meta_boxes ) {
|
|||
/* ------------------------------------ */
|
||||
$meta_boxes[] = array(
|
||||
'id' => 'page-options',
|
||||
'title' => esc_html__( 'Page Options', 'blogline' ),
|
||||
'title' => esc_html__( 'Page Options', 'blogside' ),
|
||||
'post_types' => array( 'page' ),
|
||||
'context' => 'advanced',
|
||||
'priority' => 'high',
|
||||
|
@ -26,15 +26,15 @@ function blogline_get_meta_box( $meta_boxes ) {
|
|||
'fields' => array(
|
||||
array(
|
||||
'id' => $prefix . 'sidebar_primary',
|
||||
'name' => esc_html__( 'Primary Sidebar', 'blogline' ),
|
||||
'name' => esc_html__( 'Primary Sidebar', 'blogside' ),
|
||||
'type' => 'select',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
'options' => $sidebars_choices,
|
||||
),
|
||||
array(
|
||||
'id' => $prefix . 'layout',
|
||||
'type' => 'image_select',
|
||||
'name' => esc_html__( 'Layout', 'blogline' ),
|
||||
'name' => esc_html__( 'Layout', 'blogside' ),
|
||||
'std' => 'inherit',
|
||||
'force_delete' => false,
|
||||
'max_file_uploads' => '4',
|
||||
|
@ -52,7 +52,7 @@ function blogline_get_meta_box( $meta_boxes ) {
|
|||
/* ------------------------------------ */
|
||||
$meta_boxes[] = array(
|
||||
'id' => 'post-options',
|
||||
'title' => esc_html__( 'Post Options', 'blogline' ),
|
||||
'title' => esc_html__( 'Post Options', 'blogside' ),
|
||||
'post_types' => array( 'post' ),
|
||||
'context' => 'advanced',
|
||||
'priority' => 'high',
|
||||
|
@ -60,15 +60,15 @@ function blogline_get_meta_box( $meta_boxes ) {
|
|||
'fields' => array(
|
||||
array(
|
||||
'id' => $prefix . 'sidebar_primary',
|
||||
'name' => esc_html__( 'Primary Sidebar', 'blogline' ),
|
||||
'name' => esc_html__( 'Primary Sidebar', 'blogside' ),
|
||||
'type' => 'select',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
'options' => $sidebars_choices,
|
||||
),
|
||||
array(
|
||||
'id' => $prefix . 'layout',
|
||||
'type' => 'image_select',
|
||||
'name' => esc_html__( 'Layout', 'blogline' ),
|
||||
'name' => esc_html__( 'Layout', 'blogside' ),
|
||||
'std' => 'inherit',
|
||||
'force_delete' => false,
|
||||
'max_file_uploads' => '4',
|
||||
|
@ -84,4 +84,4 @@ function blogline_get_meta_box( $meta_boxes ) {
|
|||
|
||||
return $meta_boxes;
|
||||
}
|
||||
add_filter( 'rwmb_meta_boxes', 'blogline_get_meta_box' );
|
||||
add_filter( 'rwmb_meta_boxes', 'blogside_get_meta_box' );
|
|
@ -5,7 +5,7 @@ if ( ! class_exists( 'Kirki' ) ) {
|
|||
|
||||
/* Add Config
|
||||
/* ------------------------------------ */
|
||||
Kirki::add_config( 'blogline', array(
|
||||
Kirki::add_config( 'blogside', array(
|
||||
'capability' => 'edit_theme_options',
|
||||
'option_type' => 'theme_mod',
|
||||
) );
|
||||
|
@ -14,49 +14,49 @@ Kirki::add_config( 'blogline', array(
|
|||
/* ------------------------------------ */
|
||||
Kirki::add_panel( 'options', array(
|
||||
'priority' => 10,
|
||||
'title' => esc_html__( 'Theme Options', 'blogline' ),
|
||||
'title' => esc_html__( 'Theme Options', 'blogside' ),
|
||||
) );
|
||||
|
||||
/* Add Sections
|
||||
/* ------------------------------------ */
|
||||
Kirki::add_section( 'general', array(
|
||||
'priority' => 10,
|
||||
'title' => esc_html__( 'General', 'blogline' ),
|
||||
'title' => esc_html__( 'General', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
Kirki::add_section( 'blog', array(
|
||||
'priority' => 20,
|
||||
'title' => esc_html__( 'Blog', 'blogline' ),
|
||||
'title' => esc_html__( 'Blog', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
Kirki::add_section( 'header', array(
|
||||
'priority' => 30,
|
||||
'title' => esc_html__( 'Header', 'blogline' ),
|
||||
'title' => esc_html__( 'Header', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
Kirki::add_section( 'footer', array(
|
||||
'priority' => 40,
|
||||
'title' => esc_html__( 'Footer', 'blogline' ),
|
||||
'title' => esc_html__( 'Footer', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
Kirki::add_section( 'layout', array(
|
||||
'priority' => 50,
|
||||
'title' => esc_html__( 'Layout', 'blogline' ),
|
||||
'title' => esc_html__( 'Layout', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
Kirki::add_section( 'sidebars', array(
|
||||
'priority' => 60,
|
||||
'title' => esc_html__( 'Sidebars', 'blogline' ),
|
||||
'title' => esc_html__( 'Sidebars', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
Kirki::add_section( 'social', array(
|
||||
'priority' => 70,
|
||||
'title' => esc_html__( 'Social Links', 'blogline' ),
|
||||
'title' => esc_html__( 'Social Links', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
Kirki::add_section( 'styling', array(
|
||||
'priority' => 80,
|
||||
'title' => esc_html__( 'Styling', 'blogline' ),
|
||||
'title' => esc_html__( 'Styling', 'blogside' ),
|
||||
'panel' => 'options',
|
||||
) );
|
||||
|
||||
|
@ -64,69 +64,69 @@ Kirki::add_section( 'styling', array(
|
|||
/* ------------------------------------ */
|
||||
|
||||
// General: Responsive Layout
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'responsive',
|
||||
'label' => esc_html__( 'Responsive Layout', 'blogline' ),
|
||||
'description' => esc_html__( 'Mobile and tablet optimizations (responsive.css)', 'blogline' ),
|
||||
'label' => esc_html__( 'Responsive Layout', 'blogside' ),
|
||||
'description' => esc_html__( 'Mobile and tablet optimizations (responsive.css)', 'blogside' ),
|
||||
'section' => 'general',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// General: Mobile Sidebar
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'mobile-sidebar-hide',
|
||||
'label' => esc_html__( 'Mobile Sidebar Content', 'blogline' ),
|
||||
'description' => esc_html__( 'Sidebar content on low-resolution mobile devices (320px)', 'blogline' ),
|
||||
'label' => esc_html__( 'Mobile Sidebar Content', 'blogside' ),
|
||||
'description' => esc_html__( 'Sidebar content on low-resolution mobile devices (320px)', 'blogside' ),
|
||||
'section' => 'general',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// General: Recommended Plugins
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'recommended-plugins',
|
||||
'label' => esc_html__( 'Recommended Plugins', 'blogline' ),
|
||||
'description' => esc_html__( 'Enable or disable the recommended plugins notice', 'blogline' ),
|
||||
'label' => esc_html__( 'Recommended Plugins', 'blogside' ),
|
||||
'description' => esc_html__( 'Enable or disable the recommended plugins notice', 'blogside' ),
|
||||
'section' => 'general',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Blog: Blog Layout
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'blog-layout',
|
||||
'label' => esc_html__( 'Blog Layout', 'blogline' ),
|
||||
'label' => esc_html__( 'Blog Layout', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'blog-standard',
|
||||
'choices' => array(
|
||||
'blog-standard' => esc_html__( 'Standard', 'blogline' ),
|
||||
'blog-grid' => esc_html__( 'Grid', 'blogline' ),
|
||||
'blog-list' => esc_html__( 'List', 'blogline' ),
|
||||
'blog-standard' => esc_html__( 'Standard', 'blogside' ),
|
||||
'blog-grid' => esc_html__( 'Grid', 'blogside' ),
|
||||
'blog-list' => esc_html__( 'List', 'blogside' ),
|
||||
),
|
||||
) );
|
||||
// Blog: Heading
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'text',
|
||||
'settings' => 'blog-heading',
|
||||
'label' => esc_html__( 'Heading', 'blogline' ),
|
||||
'description' => esc_html__( 'Your blog heading', 'blogline' ),
|
||||
'label' => esc_html__( 'Heading', 'blogside' ),
|
||||
'description' => esc_html__( 'Your blog heading', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => '',
|
||||
) );
|
||||
// Blog: Subheading
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'text',
|
||||
'settings' => 'blog-subheading',
|
||||
'label' => esc_html__( 'Subheading', 'blogline' ),
|
||||
'description' => esc_html__( 'Your blog subheading', 'blogline' ),
|
||||
'label' => esc_html__( 'Subheading', 'blogside' ),
|
||||
'description' => esc_html__( 'Your blog subheading', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => '',
|
||||
) );
|
||||
// Blog: Excerpt Length
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'slider',
|
||||
'settings' => 'excerpt-length',
|
||||
'label' => esc_html__( 'Excerpt Length', 'blogline' ),
|
||||
'description' => esc_html__( 'Max number of words. Set it to 0 to disable.', 'blogline' ),
|
||||
'label' => esc_html__( 'Excerpt Length', 'blogside' ),
|
||||
'description' => esc_html__( 'Max number of words. Set it to 0 to disable.', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => '26',
|
||||
'choices' => array(
|
||||
|
@ -136,31 +136,31 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Blog: Featured Posts Include
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'featured-posts-include',
|
||||
'label' => esc_html__( 'Featured Posts', 'blogline' ),
|
||||
'description' => esc_html__( 'To show featured posts in the slider AND the content below. Usually not recommended.', 'blogline' ),
|
||||
'label' => esc_html__( 'Featured Posts', 'blogside' ),
|
||||
'description' => esc_html__( 'To show featured posts in the slider AND the content below. Usually not recommended.', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => false,
|
||||
) );
|
||||
// Blog: Featured Category
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 'featured-category',
|
||||
'label' => esc_html__( 'Featured Category', 'blogline' ),
|
||||
'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'blogline' ),
|
||||
'label' => esc_html__( 'Featured Category', 'blogside' ),
|
||||
'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => '',
|
||||
'choices' => Kirki_Helper::get_terms( 'category' ),
|
||||
'placeholder' => esc_html__( 'Select a category', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a category', 'blogside' ),
|
||||
) );
|
||||
// Blog: Featured Post Count
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'slider',
|
||||
'settings' => 'featured-posts-count',
|
||||
'label' => esc_html__( 'Featured Post Count', 'blogline' ),
|
||||
'description' => esc_html__( 'Max number of featured posts to display on the homepage. Set it to 0 to disable.', 'blogline' ),
|
||||
'label' => esc_html__( 'Featured Post Count', 'blogside' ),
|
||||
'description' => esc_html__( 'Max number of featured posts to display on the homepage. Set it to 0 to disable.', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => '3',
|
||||
'choices' => array(
|
||||
|
@ -170,138 +170,138 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Blog: Frontpage Widgets Top
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'frontpage-widgets-top',
|
||||
'label' => esc_html__( 'Frontpage Widgets Top', 'blogline' ),
|
||||
'description' => esc_html__( '2 columns of widgets', 'blogline' ),
|
||||
'label' => esc_html__( 'Frontpage Widgets Top', 'blogside' ),
|
||||
'description' => esc_html__( '2 columns of widgets', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'off',
|
||||
) );
|
||||
// Blog: Frontpage Widgets Bottom
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'frontpage-widgets-bottom',
|
||||
'label' => esc_html__( 'Frontpage Widgets Bottom', 'blogline' ),
|
||||
'description' => esc_html__( '2 columns of widgets', 'blogline' ),
|
||||
'label' => esc_html__( 'Frontpage Widgets Bottom', 'blogside' ),
|
||||
'description' => esc_html__( '2 columns of widgets', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'off',
|
||||
) );
|
||||
// Blog: Comment Count
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'comment-count',
|
||||
'label' => esc_html__( 'Thumbnail Comment Count', 'blogline' ),
|
||||
'description' => esc_html__( 'Comment count on thumbnails', 'blogline' ),
|
||||
'label' => esc_html__( 'Thumbnail Comment Count', 'blogside' ),
|
||||
'description' => esc_html__( 'Comment count on thumbnails', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Blog: Post Format Icon
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'format-icon',
|
||||
'label' => esc_html__( 'Post Format Icons', 'blogline' ),
|
||||
'description' => esc_html__( 'Circle icons', 'blogline' ),
|
||||
'label' => esc_html__( 'Post Format Icons', 'blogside' ),
|
||||
'description' => esc_html__( 'Circle icons', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Blog: Single - Authorbox
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'author-bio',
|
||||
'label' => esc_html__( 'Single - Author Bio', 'blogline' ),
|
||||
'description' => esc_html__( 'Shows post author description, if it exists', 'blogline' ),
|
||||
'label' => esc_html__( 'Single - Author Bio', 'blogside' ),
|
||||
'description' => esc_html__( 'Shows post author description, if it exists', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Blog: Single - Related Posts
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'related-posts',
|
||||
'label' => esc_html__( 'Single - Related Posts', 'blogline' ),
|
||||
'description' => esc_html__( 'Shows randomized related articles below the post', 'blogline' ),
|
||||
'label' => esc_html__( 'Single - Related Posts', 'blogside' ),
|
||||
'description' => esc_html__( 'Shows randomized related articles below the post', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'categories',
|
||||
'choices' => array(
|
||||
'disable' => esc_html__( 'Disable', 'blogline' ),
|
||||
'categories'=> esc_html__( 'Related by categories', 'blogline' ),
|
||||
'tags' => esc_html__( 'Related by tags', 'blogline' ),
|
||||
'disable' => esc_html__( 'Disable', 'blogside' ),
|
||||
'categories'=> esc_html__( 'Related by categories', 'blogside' ),
|
||||
'tags' => esc_html__( 'Related by tags', 'blogside' ),
|
||||
),
|
||||
) );
|
||||
// Blog: Single - Post Navigation
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'post-nav',
|
||||
'label' => esc_html__( 'Single - Post Navigation', 'blogline' ),
|
||||
'description' => esc_html__( 'Shows links to the next and previous article', 'blogline' ),
|
||||
'label' => esc_html__( 'Single - Post Navigation', 'blogside' ),
|
||||
'description' => esc_html__( 'Shows links to the next and previous article', 'blogside' ),
|
||||
'section' => 'blog',
|
||||
'default' => 's1',
|
||||
'choices' => array(
|
||||
'disable' => esc_html__( 'Disable', 'blogline' ),
|
||||
's1' => esc_html__( 'Sidebar Primary', 'blogline' ),
|
||||
'content' => esc_html__( 'Below content', 'blogline' ),
|
||||
'disable' => esc_html__( 'Disable', 'blogside' ),
|
||||
's1' => esc_html__( 'Sidebar Primary', 'blogside' ),
|
||||
'content' => esc_html__( 'Below content', 'blogside' ),
|
||||
),
|
||||
) );
|
||||
// Header: Search
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'header-search',
|
||||
'label' => esc_html__( 'Header Search', 'blogline' ),
|
||||
'description' => esc_html__( 'Header search button', 'blogline' ),
|
||||
'label' => esc_html__( 'Header Search', 'blogside' ),
|
||||
'description' => esc_html__( 'Header search button', 'blogside' ),
|
||||
'section' => 'header',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Header: Social Links
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'header-social',
|
||||
'label' => esc_html__( 'Header Social Links', 'blogline' ),
|
||||
'description' => esc_html__( 'Social link icon buttons', 'blogline' ),
|
||||
'label' => esc_html__( 'Header Social Links', 'blogside' ),
|
||||
'description' => esc_html__( 'Social link icon buttons', 'blogside' ),
|
||||
'section' => 'header',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Header: Profile Avatar
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'image',
|
||||
'settings' => 'profile-image',
|
||||
'label' => esc_html__( 'Profile Image', 'blogline' ),
|
||||
'description' => esc_html__( 'Minimum width 400px', 'blogline' ),
|
||||
'label' => esc_html__( 'Profile Image', 'blogside' ),
|
||||
'description' => esc_html__( 'Minimum width 400px', 'blogside' ),
|
||||
'section' => 'header',
|
||||
'default' => '',
|
||||
) );
|
||||
// Header: Profile Name
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'text',
|
||||
'settings' => 'profile-name',
|
||||
'label' => esc_html__( 'Profile Name', 'blogline' ),
|
||||
'description' => esc_html__( 'Your name appears below the image', 'blogline' ),
|
||||
'label' => esc_html__( 'Profile Name', 'blogside' ),
|
||||
'description' => esc_html__( 'Your name appears below the image', 'blogside' ),
|
||||
'section' => 'header',
|
||||
'default' => '',
|
||||
) );
|
||||
// Header: Profile Description
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'textarea',
|
||||
'settings' => 'profile-description',
|
||||
'label' => esc_html__( 'Profile Description', 'blogline' ),
|
||||
'description' => esc_html__( 'A short description of you', 'blogline' ),
|
||||
'label' => esc_html__( 'Profile Description', 'blogside' ),
|
||||
'description' => esc_html__( 'A short description of you', 'blogside' ),
|
||||
'section' => 'header',
|
||||
'default' => '',
|
||||
) );
|
||||
// Footer: Ads
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'footer-ads',
|
||||
'label' => esc_html__( 'Footer Ads', 'blogline' ),
|
||||
'description' => esc_html__( 'Footer widget ads area', 'blogline' ),
|
||||
'label' => esc_html__( 'Footer Ads', 'blogside' ),
|
||||
'description' => esc_html__( 'Footer widget ads area', 'blogside' ),
|
||||
'section' => 'footer',
|
||||
'default' => 'off',
|
||||
) );
|
||||
// Footer: Widget Columns
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'footer-widgets',
|
||||
'label' => esc_html__( 'Footer Widget Columns', 'blogline' ),
|
||||
'description' => esc_html__( 'Select columns to enable footer widgets. Recommended number: 3', 'blogline' ),
|
||||
'label' => esc_html__( 'Footer Widget Columns', 'blogside' ),
|
||||
'description' => esc_html__( 'Select columns to enable footer widgets. Recommended number: 3', 'blogside' ),
|
||||
'section' => 'footer',
|
||||
'default' => '0',
|
||||
'choices' => array(
|
||||
|
@ -313,47 +313,47 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Footer: Social Links
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'footer-social',
|
||||
'label' => esc_html__( 'Footer Social Links', 'blogline' ),
|
||||
'description' => esc_html__( 'Social link icon buttons', 'blogline' ),
|
||||
'label' => esc_html__( 'Footer Social Links', 'blogside' ),
|
||||
'description' => esc_html__( 'Social link icon buttons', 'blogside' ),
|
||||
'section' => 'footer',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Footer: Custom Logo
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'image',
|
||||
'settings' => 'footer-logo',
|
||||
'label' => esc_html__( 'Footer Logo', 'blogline' ),
|
||||
'description' => esc_html__( 'Upload your custom logo image', 'blogline' ),
|
||||
'label' => esc_html__( 'Footer Logo', 'blogside' ),
|
||||
'description' => esc_html__( 'Upload your custom logo image', 'blogside' ),
|
||||
'section' => 'footer',
|
||||
'default' => '',
|
||||
) );
|
||||
// Footer: Copyright
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'text',
|
||||
'settings' => 'copyright',
|
||||
'label' => esc_html__( 'Footer Copyright', 'blogline' ),
|
||||
'description' => esc_html__( 'Replace the footer copyright text', 'blogline' ),
|
||||
'label' => esc_html__( 'Footer Copyright', 'blogside' ),
|
||||
'description' => esc_html__( 'Replace the footer copyright text', 'blogside' ),
|
||||
'section' => 'footer',
|
||||
'default' => '',
|
||||
) );
|
||||
// Footer: Credit
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'credit',
|
||||
'label' => esc_html__( 'Footer Credit', 'blogline' ),
|
||||
'description' => esc_html__( 'Footer credit text', 'blogline' ),
|
||||
'label' => esc_html__( 'Footer Credit', 'blogside' ),
|
||||
'description' => esc_html__( 'Footer credit text', 'blogside' ),
|
||||
'section' => 'footer',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Layout: Global
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-global',
|
||||
'label' => esc_html__( 'Global Layout', 'blogline' ),
|
||||
'description' => esc_html__( 'Other layouts will override this option if they are set', 'blogline' ),
|
||||
'label' => esc_html__( 'Global Layout', 'blogside' ),
|
||||
'description' => esc_html__( 'Other layouts will override this option if they are set', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'col-2cl',
|
||||
'choices' => array(
|
||||
|
@ -363,11 +363,11 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Layout: Home
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-home',
|
||||
'label' => esc_html__( 'Home', 'blogline' ),
|
||||
'description' => esc_html__( '(is_home) Posts homepage layout', 'blogline' ),
|
||||
'label' => esc_html__( 'Home', 'blogside' ),
|
||||
'description' => esc_html__( '(is_home) Posts homepage layout', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'inherit',
|
||||
'choices' => array(
|
||||
|
@ -378,11 +378,11 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Layout: Single
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-single',
|
||||
'label' => esc_html__( 'Single', 'blogline' ),
|
||||
'description' => esc_html__( '(is_single) Single post layout - If a post has a set layout, it will override this.', 'blogline' ),
|
||||
'label' => esc_html__( 'Single', 'blogside' ),
|
||||
'description' => esc_html__( '(is_single) Single post layout - If a post has a set layout, it will override this.', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'inherit',
|
||||
'choices' => array(
|
||||
|
@ -393,11 +393,11 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Layout: Archive
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-archive',
|
||||
'label' => esc_html__( 'Archive', 'blogline' ),
|
||||
'description' => esc_html__( '(is_archive) Category, date, tag and author archive layout', 'blogline' ),
|
||||
'label' => esc_html__( 'Archive', 'blogside' ),
|
||||
'description' => esc_html__( '(is_archive) Category, date, tag and author archive layout', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'inherit',
|
||||
'choices' => array(
|
||||
|
@ -408,11 +408,11 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Layout : Archive - Category
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-archive-category',
|
||||
'label' => esc_html__( 'Archive - Category', 'blogline' ),
|
||||
'description' => esc_html__( '(is_category) Category archive layout', 'blogline' ),
|
||||
'label' => esc_html__( 'Archive - Category', 'blogside' ),
|
||||
'description' => esc_html__( '(is_category) Category archive layout', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'inherit',
|
||||
'choices' => array(
|
||||
|
@ -423,11 +423,11 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Layout: Search
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-search',
|
||||
'label' => esc_html__( 'Search', 'blogline' ),
|
||||
'description' => esc_html__( '(is_search) Search page layout', 'blogline' ),
|
||||
'label' => esc_html__( 'Search', 'blogside' ),
|
||||
'description' => esc_html__( '(is_search) Search page layout', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'inherit',
|
||||
'choices' => array(
|
||||
|
@ -438,11 +438,11 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Layout: Error 404
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-404',
|
||||
'label' => esc_html__( 'Error 404', 'blogline' ),
|
||||
'description' => esc_html__( '(is_404) Error 404 page layout', 'blogline' ),
|
||||
'label' => esc_html__( 'Error 404', 'blogside' ),
|
||||
'description' => esc_html__( '(is_404) Error 404 page layout', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'inherit',
|
||||
'choices' => array(
|
||||
|
@ -453,11 +453,11 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Layout: Default Page
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'layout-page',
|
||||
'label' => esc_html__( 'Default Page', 'blogline' ),
|
||||
'description' => esc_html__( '(is_page) Default page layout - If a page has a set layout, it will override this.', 'blogline' ),
|
||||
'label' => esc_html__( 'Default Page', 'blogside' ),
|
||||
'description' => esc_html__( '(is_page) Default page layout - If a page has a set layout, it will override this.', 'blogside' ),
|
||||
'section' => 'layout',
|
||||
'default' => 'inherit',
|
||||
'choices' => array(
|
||||
|
@ -469,7 +469,7 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
) );
|
||||
|
||||
|
||||
function blogline_kirki_sidebars_select() {
|
||||
function blogside_kirki_sidebars_select() {
|
||||
$sidebars = array();
|
||||
if ( isset( $GLOBALS['wp_registered_sidebars'] ) ) {
|
||||
$sidebars = $GLOBALS['wp_registered_sidebars'];
|
||||
|
@ -482,175 +482,175 @@ function blogline_kirki_sidebars_select() {
|
|||
return;
|
||||
}
|
||||
// Sidebars: Select
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 's1-home',
|
||||
'label' => esc_html__( 'Home', 'blogline' ),
|
||||
'description' => esc_html__( '(is_home) Primary', 'blogline' ),
|
||||
'label' => esc_html__( 'Home', 'blogside' ),
|
||||
'description' => esc_html__( '(is_home) Primary', 'blogside' ),
|
||||
'section' => 'sidebars',
|
||||
'choices' => $sidebars_choices,
|
||||
'default' => '',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
) );
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 's1-single',
|
||||
'label' => esc_html__( 'Single', 'blogline' ),
|
||||
'description' => esc_html__( '(is_single) Primary - If a single post has a unique sidebar, it will override this.', 'blogline' ),
|
||||
'label' => esc_html__( 'Single', 'blogside' ),
|
||||
'description' => esc_html__( '(is_single) Primary - If a single post has a unique sidebar, it will override this.', 'blogside' ),
|
||||
'section' => 'sidebars',
|
||||
'choices' => $sidebars_choices,
|
||||
'default' => '',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
) );
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 's1-archive',
|
||||
'label' => esc_html__( 'Archive', 'blogline' ),
|
||||
'description' => esc_html__( '(is_archive) Primary', 'blogline' ),
|
||||
'label' => esc_html__( 'Archive', 'blogside' ),
|
||||
'description' => esc_html__( '(is_archive) Primary', 'blogside' ),
|
||||
'section' => 'sidebars',
|
||||
'choices' => $sidebars_choices,
|
||||
'default' => '',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
) );
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 's1-archive-category',
|
||||
'label' => esc_html__( 'Archive - Category', 'blogline' ),
|
||||
'description' => esc_html__( '(is_category) Primary', 'blogline' ),
|
||||
'label' => esc_html__( 'Archive - Category', 'blogside' ),
|
||||
'description' => esc_html__( '(is_category) Primary', 'blogside' ),
|
||||
'section' => 'sidebars',
|
||||
'choices' => $sidebars_choices,
|
||||
'default' => '',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
) );
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 's1-search',
|
||||
'label' => esc_html__( 'Search', 'blogline' ),
|
||||
'description' => esc_html__( '(is_search) Primary', 'blogline' ),
|
||||
'label' => esc_html__( 'Search', 'blogside' ),
|
||||
'description' => esc_html__( '(is_search) Primary', 'blogside' ),
|
||||
'section' => 'sidebars',
|
||||
'choices' => $sidebars_choices,
|
||||
'default' => '',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
) );
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 's1-404',
|
||||
'label' => esc_html__( 'Error 404', 'blogline' ),
|
||||
'description' => esc_html__( '(is_404) Primary', 'blogline' ),
|
||||
'label' => esc_html__( 'Error 404', 'blogside' ),
|
||||
'description' => esc_html__( '(is_404) Primary', 'blogside' ),
|
||||
'section' => 'sidebars',
|
||||
'choices' => $sidebars_choices,
|
||||
'default' => '',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
) );
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 's1-page',
|
||||
'label' => esc_html__( 'Default Page', 'blogline' ),
|
||||
'description' => esc_html__( '(is_page) Primary - If a page has a unique sidebar, it will override this.', 'blogline' ),
|
||||
'label' => esc_html__( 'Default Page', 'blogside' ),
|
||||
'description' => esc_html__( '(is_page) Primary - If a page has a unique sidebar, it will override this.', 'blogside' ),
|
||||
'section' => 'sidebars',
|
||||
'choices' => $sidebars_choices,
|
||||
'default' => '',
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogline' ),
|
||||
'placeholder' => esc_html__( 'Select a sidebar', 'blogside' ),
|
||||
) );
|
||||
|
||||
}
|
||||
add_action( 'init', 'blogline_kirki_sidebars_select', 999 );
|
||||
add_action( 'init', 'blogside_kirki_sidebars_select', 999 );
|
||||
|
||||
// Social Links: List
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'repeater',
|
||||
'label' => esc_html__( 'Create Social Links', 'blogline' ),
|
||||
'description' => esc_html__( 'Create and organize your social links', 'blogline' ),
|
||||
'label' => esc_html__( 'Create Social Links', 'blogside' ),
|
||||
'description' => esc_html__( 'Create and organize your social links', 'blogside' ),
|
||||
'section' => 'social',
|
||||
'tooltip' => esc_html__( 'Font Awesome names:', 'blogline' ) . ' <a href="https://fontawesome.com/v4.7.0/icons/" target="_blank"><strong>' . esc_html__( 'View All', 'blogline' ) . ' </strong></a>',
|
||||
'tooltip' => esc_html__( 'Font Awesome names:', 'blogside' ) . ' <a href="https://fontawesome.com/v4.7.0/icons/" target="_blank"><strong>' . esc_html__( 'View All', 'blogside' ) . ' </strong></a>',
|
||||
'row_label' => array(
|
||||
'type' => 'text',
|
||||
'value' => esc_html__('social link', 'blogline' ),
|
||||
'value' => esc_html__('social link', 'blogside' ),
|
||||
),
|
||||
'settings' => 'social-links',
|
||||
'default' => '',
|
||||
'fields' => array(
|
||||
'social-title' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Title', 'blogline' ),
|
||||
'description' => esc_html__( 'Ex: Facebook', 'blogline' ),
|
||||
'label' => esc_html__( 'Title', 'blogside' ),
|
||||
'description' => esc_html__( 'Ex: Facebook', 'blogside' ),
|
||||
'default' => '',
|
||||
),
|
||||
'social-icon' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Icon Name', 'blogline' ),
|
||||
'description' => esc_html__( 'Font Awesome icons. Ex: fa-facebook ', 'blogline' ) . ' <a href="https://fontawesome.com/v4.7.0/icons/" target="_blank"><strong>' . esc_html__( 'View All', 'blogline' ) . ' </strong></a>',
|
||||
'label' => esc_html__( 'Icon Name', 'blogside' ),
|
||||
'description' => esc_html__( 'Font Awesome icons. Ex: fa-facebook ', 'blogside' ) . ' <a href="https://fontawesome.com/v4.7.0/icons/" target="_blank"><strong>' . esc_html__( 'View All', 'blogside' ) . ' </strong></a>',
|
||||
'default' => 'fa-',
|
||||
),
|
||||
'social-link' => array(
|
||||
'type' => 'link',
|
||||
'label' => esc_html__( 'Link', 'blogline' ),
|
||||
'description' => esc_html__( 'Enter the full url for your icon button', 'blogline' ),
|
||||
'label' => esc_html__( 'Link', 'blogside' ),
|
||||
'description' => esc_html__( 'Enter the full url for your icon button', 'blogside' ),
|
||||
'default' => 'http://',
|
||||
),
|
||||
'social-color' => array(
|
||||
'type' => 'color',
|
||||
'label' => esc_html__( 'Icon Color', 'blogline' ),
|
||||
'description' => esc_html__( 'Set a unique color for your icon (optional)', 'blogline' ),
|
||||
'label' => esc_html__( 'Icon Color', 'blogside' ),
|
||||
'description' => esc_html__( 'Set a unique color for your icon (optional)', 'blogside' ),
|
||||
'default' => '',
|
||||
),
|
||||
'social-target' => array(
|
||||
'type' => 'checkbox',
|
||||
'label' => esc_html__( 'Open in new window', 'blogline' ),
|
||||
'label' => esc_html__( 'Open in new window', 'blogside' ),
|
||||
'default' => false,
|
||||
),
|
||||
)
|
||||
) );
|
||||
// Styling: Enable
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'dynamic-styles',
|
||||
'label' => esc_html__( 'Dynamic Styles', 'blogline' ),
|
||||
'description' => esc_html__( 'Turn on to use the styling options below', 'blogline' ),
|
||||
'label' => esc_html__( 'Dynamic Styles', 'blogside' ),
|
||||
'description' => esc_html__( 'Turn on to use the styling options below', 'blogside' ),
|
||||
'section' => 'styling',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Styling: Font
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 'font',
|
||||
'label' => esc_html__( 'Font', 'blogline' ),
|
||||
'description' => esc_html__( 'Select font for the theme', 'blogline' ),
|
||||
'label' => esc_html__( 'Font', 'blogside' ),
|
||||
'description' => esc_html__( 'Select font for the theme', 'blogside' ),
|
||||
'section' => 'styling',
|
||||
'default' => 'raleway',
|
||||
'choices' => array(
|
||||
'titillium-web' => esc_html__( 'Titillium Web, Latin (Self-hosted)', 'blogline' ),
|
||||
'titillium-web-ext' => esc_html__( 'Titillium Web, Latin-Ext', 'blogline' ),
|
||||
'droid-serif' => esc_html__( 'Droid Serif, Latin', 'blogline' ),
|
||||
'source-sans-pro' => esc_html__( 'Source Sans Pro, Latin-Ext', 'blogline' ),
|
||||
'lato' => esc_html__( 'Lato, Latin', 'blogline' ),
|
||||
'raleway' => esc_html__( 'Raleway, Latin', 'blogline' ),
|
||||
'ubuntu' => esc_html__( 'Ubuntu, Latin-Ext', 'blogline' ),
|
||||
'ubuntu-cyr' => esc_html__( 'Ubuntu, Latin / Cyrillic-Ext', 'blogline' ),
|
||||
'roboto' => esc_html__( 'Roboto, Latin-Ext', 'blogline' ),
|
||||
'roboto-cyr' => esc_html__( 'Roboto, Latin / Cyrillic-Ext', 'blogline' ),
|
||||
'roboto-condensed' => esc_html__( 'Roboto Condensed, Latin-Ext', 'blogline' ),
|
||||
'roboto-condensed-cyr' => esc_html__( 'Roboto Condensed, Latin / Cyrillic-Ext', 'blogline' ),
|
||||
'roboto-slab' => esc_html__( 'Roboto Slab, Latin-Ext', 'blogline' ),
|
||||
'roboto-slab-cyr' => esc_html__( 'Roboto Slab, Latin / Cyrillic-Ext', 'blogline' ),
|
||||
'playfair-display' => esc_html__( 'Playfair Display, Latin-Ext', 'blogline' ),
|
||||
'playfair-display-cyr' => esc_html__( 'Playfair Display, Latin / Cyrillic', 'blogline' ),
|
||||
'open-sans' => esc_html__( 'Open Sans, Latin-Ext', 'blogline' ),
|
||||
'open-sans-cyr' => esc_html__( 'Open Sans, Latin / Cyrillic-Ext', 'blogline' ),
|
||||
'pt-serif' => esc_html__( 'PT Serif, Latin-Ext', 'blogline' ),
|
||||
'pt-serif-cyr' => esc_html__( 'PT Serif, Latin / Cyrillic-Ext', 'blogline' ),
|
||||
'arial' => esc_html__( 'Arial', 'blogline' ),
|
||||
'georgia' => esc_html__( 'Georgia', 'blogline' ),
|
||||
'verdana' => esc_html__( 'Verdana', 'blogline' ),
|
||||
'tahoma' => esc_html__( 'Tahoma', 'blogline' ),
|
||||
'titillium-web' => esc_html__( 'Titillium Web, Latin (Self-hosted)', 'blogside' ),
|
||||
'titillium-web-ext' => esc_html__( 'Titillium Web, Latin-Ext', 'blogside' ),
|
||||
'droid-serif' => esc_html__( 'Droid Serif, Latin', 'blogside' ),
|
||||
'source-sans-pro' => esc_html__( 'Source Sans Pro, Latin-Ext', 'blogside' ),
|
||||
'lato' => esc_html__( 'Lato, Latin', 'blogside' ),
|
||||
'raleway' => esc_html__( 'Raleway, Latin', 'blogside' ),
|
||||
'ubuntu' => esc_html__( 'Ubuntu, Latin-Ext', 'blogside' ),
|
||||
'ubuntu-cyr' => esc_html__( 'Ubuntu, Latin / Cyrillic-Ext', 'blogside' ),
|
||||
'roboto' => esc_html__( 'Roboto, Latin-Ext', 'blogside' ),
|
||||
'roboto-cyr' => esc_html__( 'Roboto, Latin / Cyrillic-Ext', 'blogside' ),
|
||||
'roboto-condensed' => esc_html__( 'Roboto Condensed, Latin-Ext', 'blogside' ),
|
||||
'roboto-condensed-cyr' => esc_html__( 'Roboto Condensed, Latin / Cyrillic-Ext', 'blogside' ),
|
||||
'roboto-slab' => esc_html__( 'Roboto Slab, Latin-Ext', 'blogside' ),
|
||||
'roboto-slab-cyr' => esc_html__( 'Roboto Slab, Latin / Cyrillic-Ext', 'blogside' ),
|
||||
'playfair-display' => esc_html__( 'Playfair Display, Latin-Ext', 'blogside' ),
|
||||
'playfair-display-cyr' => esc_html__( 'Playfair Display, Latin / Cyrillic', 'blogside' ),
|
||||
'open-sans' => esc_html__( 'Open Sans, Latin-Ext', 'blogside' ),
|
||||
'open-sans-cyr' => esc_html__( 'Open Sans, Latin / Cyrillic-Ext', 'blogside' ),
|
||||
'pt-serif' => esc_html__( 'PT Serif, Latin-Ext', 'blogside' ),
|
||||
'pt-serif-cyr' => esc_html__( 'PT Serif, Latin / Cyrillic-Ext', 'blogside' ),
|
||||
'arial' => esc_html__( 'Arial', 'blogside' ),
|
||||
'georgia' => esc_html__( 'Georgia', 'blogside' ),
|
||||
'verdana' => esc_html__( 'Verdana', 'blogside' ),
|
||||
'tahoma' => esc_html__( 'Tahoma', 'blogside' ),
|
||||
),
|
||||
) );
|
||||
// Styling: Container Width
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'slider',
|
||||
'settings' => 'container-width',
|
||||
'label' => esc_html__( 'Website Max-width', 'blogline' ),
|
||||
'description' => esc_html__( 'Max-width of the container', 'blogline' ),
|
||||
'label' => esc_html__( 'Website Max-width', 'blogside' ),
|
||||
'description' => esc_html__( 'Max-width of the container', 'blogside' ),
|
||||
'section' => 'styling',
|
||||
'default' => '1120',
|
||||
'choices' => array(
|
||||
|
@ -660,19 +660,19 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
),
|
||||
) );
|
||||
// Styling: Primary Color
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'color',
|
||||
'settings' => 'color-1',
|
||||
'label' => esc_html__( 'Primary Color', 'blogline' ),
|
||||
'label' => esc_html__( 'Primary Color', 'blogside' ),
|
||||
'section' => 'styling',
|
||||
'default' => '#55acee',
|
||||
) );
|
||||
// Styling: Image Border Radius
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
Kirki::add_field( 'blogside_theme', array(
|
||||
'type' => 'slider',
|
||||
'settings' => 'image-border-radius',
|
||||
'label' => esc_html__( 'Image Border Radius', 'blogline' ),
|
||||
'description' => esc_html__( 'Give your thumbnails and layout images rounded corners', 'blogline' ),
|
||||
'label' => esc_html__( 'Image Border Radius', 'blogside' ),
|
||||
'description' => esc_html__( 'Give your thumbnails and layout images rounded corners', 'blogside' ),
|
||||
'section' => 'styling',
|
||||
'default' => '0',
|
||||
'choices' => array(
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
<?php
|
||||
/*
|
||||
BloglinePosts Widget
|
||||
BlogsidePosts Widget
|
||||
|
||||
License: GNU General Public License v3.0
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Copyright: (c) 2013 Alexander "Alx" Agnarson - http://alxmedia.se
|
||||
|
||||
@package BloglinePosts
|
||||
@package BlogsidePosts
|
||||
@version 1.0
|
||||
*/
|
||||
|
||||
class BloglinePosts extends WP_Widget {
|
||||
class BlogsidePosts extends WP_Widget {
|
||||
|
||||
/* Constructor
|
||||
/* ------------------------------------ */
|
||||
function __construct() {
|
||||
parent::__construct( false, esc_html__( 'Alx Posts', 'blogline' ), array('description' => esc_html__( 'Display posts from a category', 'blogline' ), 'classname' => 'widget_blogline_posts', 'customize_selective_refresh' => true ) );
|
||||
parent::__construct( false, esc_html__( 'Alx Posts', 'blogside' ), array('description' => esc_html__( 'Display posts from a category', 'blogside' ), 'classname' => 'widget_blogside_posts', 'customize_selective_refresh' => true ) );
|
||||
}
|
||||
|
||||
public function blogline_get_defaults() {
|
||||
public function blogside_get_defaults() {
|
||||
return array(
|
||||
'title' => '',
|
||||
// Posts
|
||||
|
@ -38,7 +38,7 @@ class BloglinePosts extends WP_Widget {
|
|||
public function widget($args, $instance) {
|
||||
extract( $args );
|
||||
|
||||
$defaults = $this -> blogline_get_defaults();
|
||||
$defaults = $this -> blogside_get_defaults();
|
||||
|
||||
$instance = wp_parse_args( (array) $instance, $defaults );
|
||||
|
||||
|
@ -74,7 +74,7 @@ class BloglinePosts extends WP_Widget {
|
|||
<div class="post-item-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php the_post_thumbnail('blogside-medium'); ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -138,53 +138,53 @@ class BloglinePosts extends WP_Widget {
|
|||
|
||||
<div class="alx-options-posts">
|
||||
<p>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php esc_html_e( 'Title:', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php esc_html_e( 'Title:', 'blogside' ); ?></label>
|
||||
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" type="text" value="<?php echo esc_attr( $instance["title"] ); ?>" />
|
||||
</p>
|
||||
|
||||
<h4><?php esc_html_e( 'List Posts', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'List Posts', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('posts_thumb') ); ?>" name="<?php echo esc_attr( $this->get_field_name('posts_thumb') ); ?>" <?php checked( (bool) $instance["posts_thumb"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('posts_thumb') ); ?>"><?php esc_html_e( 'Show thumbnails', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('posts_thumb') ); ?>"><?php esc_html_e( 'Show thumbnails', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogside' ); ?></label>
|
||||
<input style="width:20%;" id="<?php echo esc_attr( $this->get_field_id("posts_num") ); ?>" name="<?php echo esc_attr( $this->get_field_name("posts_num") ); ?>" type="text" value="<?php echo absint($instance["posts_num"]); ?>" size='3' />
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_cat_id") ); ?>"><?php esc_html_e( 'Category:', 'blogline' ); ?></label>
|
||||
<?php wp_dropdown_categories( array( 'name' => $this->get_field_name("posts_cat_id"), 'selected' => $instance["posts_cat_id"], 'show_option_all' => esc_html__( 'All', 'blogline' ), 'show_count' => true ) ); ?>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_cat_id") ); ?>"><?php esc_html_e( 'Category:', 'blogside' ); ?></label>
|
||||
<?php wp_dropdown_categories( array( 'name' => $this->get_field_name("posts_cat_id"), 'selected' => $instance["posts_cat_id"], 'show_option_all' => esc_html__( 'All', 'blogside' ), 'show_count' => true ) ); ?>
|
||||
</p>
|
||||
<p style="padding-top: 0.3em;">
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_orderby") ); ?>"><?php esc_html_e( 'Order by:', 'blogline' ); ?></label>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_orderby") ); ?>"><?php esc_html_e( 'Order by:', 'blogside' ); ?></label>
|
||||
<select style="width: 100%;" id="<?php echo esc_attr( $this->get_field_id("posts_orderby") ); ?>" name="<?php echo esc_attr( $this->get_field_name("posts_orderby") ); ?>">
|
||||
<option value="date"<?php selected( $instance["posts_orderby"], "date" ); ?>><?php esc_html_e( 'Most recent', 'blogline' ); ?></option>
|
||||
<option value="comment_count"<?php selected( $instance["posts_orderby"], "comment_count" ); ?>><?php esc_html_e( 'Most commented', 'blogline' ); ?></option>
|
||||
<option value="rand"<?php selected( $instance["posts_orderby"], "rand" ); ?>><?php esc_html_e( 'Random', 'blogline' ); ?></option>
|
||||
<option value="date"<?php selected( $instance["posts_orderby"], "date" ); ?>><?php esc_html_e( 'Most recent', 'blogside' ); ?></option>
|
||||
<option value="comment_count"<?php selected( $instance["posts_orderby"], "comment_count" ); ?>><?php esc_html_e( 'Most commented', 'blogside' ); ?></option>
|
||||
<option value="rand"<?php selected( $instance["posts_orderby"], "rand" ); ?>><?php esc_html_e( 'Random', 'blogside' ); ?></option>
|
||||
</select>
|
||||
</p>
|
||||
<p style="padding-top: 0.3em;">
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_time") ); ?>"><?php esc_html_e( 'Posts from:', 'blogline' ); ?></label>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("posts_time") ); ?>"><?php esc_html_e( 'Posts from:', 'blogside' ); ?></label>
|
||||
<select style="width: 100%;" id="<?php echo esc_attr( $this->get_field_id("posts_time") ); ?>" name="<?php echo esc_attr( $this->get_field_name("posts_time") ); ?>">
|
||||
<option value="0"<?php selected( $instance["posts_time"], "0" ); ?>><?php esc_html_e( 'All time', 'blogline' ); ?></option>
|
||||
<option value="1 year ago"<?php selected( $instance["posts_time"], "1 year ago" ); ?>><?php esc_html_e( 'This year', 'blogline' ); ?></option>
|
||||
<option value="1 month ago"<?php selected( $instance["posts_time"], "1 month ago" ); ?>><?php esc_html_e( 'This month', 'blogline' ); ?></option>
|
||||
<option value="1 week ago"<?php selected( $instance["posts_time"], "1 week ago" ); ?>><?php esc_html_e( 'This week', 'blogline' ); ?></option>
|
||||
<option value="1 day ago"<?php selected( $instance["posts_time"], "1 day ago" ); ?>><?php esc_html_e( 'Past 24 hours', 'blogline' ); ?></option>
|
||||
<option value="0"<?php selected( $instance["posts_time"], "0" ); ?>><?php esc_html_e( 'All time', 'blogside' ); ?></option>
|
||||
<option value="1 year ago"<?php selected( $instance["posts_time"], "1 year ago" ); ?>><?php esc_html_e( 'This year', 'blogside' ); ?></option>
|
||||
<option value="1 month ago"<?php selected( $instance["posts_time"], "1 month ago" ); ?>><?php esc_html_e( 'This month', 'blogside' ); ?></option>
|
||||
<option value="1 week ago"<?php selected( $instance["posts_time"], "1 week ago" ); ?>><?php esc_html_e( 'This week', 'blogside' ); ?></option>
|
||||
<option value="1 day ago"<?php selected( $instance["posts_time"], "1 day ago" ); ?>><?php esc_html_e( 'Past 24 hours', 'blogside' ); ?></option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<h4><?php esc_html_e( 'Post Info', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'Post Info', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('posts_category') ); ?>" name="<?php echo esc_attr( $this->get_field_name('posts_category') ); ?>" <?php checked( (bool) $instance["posts_category"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('posts_category') ); ?>"><?php esc_html_e( 'Show categories', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('posts_category') ); ?>"><?php esc_html_e( 'Show categories', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('posts_date') ); ?>" name="<?php echo esc_attr( $this->get_field_name('posts_date') ); ?>" <?php checked( (bool) $instance["posts_date"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('posts_date') ); ?>"><?php esc_html_e( 'Show dates', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('posts_date') ); ?>"><?php esc_html_e( 'Show dates', 'blogside' ); ?></label>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
@ -198,11 +198,11 @@ class BloglinePosts extends WP_Widget {
|
|||
|
||||
/* Register widget
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_register_widget_posts' ) ) {
|
||||
if ( ! function_exists( 'blogside_register_widget_posts' ) ) {
|
||||
|
||||
function blogline_register_widget_posts() {
|
||||
register_widget( 'BloglinePosts' );
|
||||
function blogside_register_widget_posts() {
|
||||
register_widget( 'BlogsidePosts' );
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'widgets_init', 'blogline_register_widget_posts' );
|
||||
add_action( 'widgets_init', 'blogside_register_widget_posts' );
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
<?php
|
||||
/*
|
||||
BloglineTabs Widget
|
||||
BlogsideTabs Widget
|
||||
|
||||
License: GNU General Public License v3.0
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Copyright: (c) 2013 Alexander "Alx" Agnarson - http://alxmedia.se
|
||||
|
||||
@package BloglineTabs
|
||||
@package BlogsideTabs
|
||||
@version 1.0
|
||||
*/
|
||||
|
||||
class BloglineTabs extends WP_Widget {
|
||||
class BlogsideTabs extends WP_Widget {
|
||||
|
||||
/* Constructor
|
||||
/* ------------------------------------ */
|
||||
function __construct() {
|
||||
parent::__construct( false, esc_html__( 'Alx Tabs', 'blogline' ), array('description' => esc_html__('List posts, comments, and/or tags with or without tabs.', 'blogline' ), 'classname' => 'widget_blogline_tabs', 'customize_selective_refresh' => true ) );
|
||||
parent::__construct( false, esc_html__( 'Alx Tabs', 'blogside' ), array('description' => esc_html__('List posts, comments, and/or tags with or without tabs.', 'blogside' ), 'classname' => 'widget_blogside_tabs', 'customize_selective_refresh' => true ) );
|
||||
}
|
||||
|
||||
public function blogline_get_defaults() {
|
||||
public function blogside_get_defaults() {
|
||||
return array(
|
||||
'title' => '',
|
||||
'tabs_category' => 1,
|
||||
|
@ -54,10 +54,10 @@ class BloglineTabs extends WP_Widget {
|
|||
private function _create_tabs($tabs,$count) {
|
||||
// Borrowed from Jermaine Maree, thanks mate!
|
||||
$titles = array(
|
||||
'recent' => esc_html__('Recent Posts','blogline'),
|
||||
'popular' => esc_html__('Popular Posts','blogline'),
|
||||
'comments' => esc_html__('Recent Comments','blogline'),
|
||||
'tags' => esc_html__('Tags','blogline')
|
||||
'recent' => esc_html__('Recent Posts','blogside'),
|
||||
'popular' => esc_html__('Popular Posts','blogside'),
|
||||
'comments' => esc_html__('Recent Comments','blogside'),
|
||||
'tags' => esc_html__('Tags','blogside')
|
||||
);
|
||||
$icons = array(
|
||||
'recent' => 'fa fa-clock-o',
|
||||
|
@ -78,7 +78,7 @@ class BloglineTabs extends WP_Widget {
|
|||
public function widget($args, $instance) {
|
||||
extract( $args );
|
||||
|
||||
$defaults = $this -> blogline_get_defaults();
|
||||
$defaults = $this -> blogside_get_defaults();
|
||||
|
||||
$instance = wp_parse_args( (array) $instance, $defaults );
|
||||
|
||||
|
@ -124,7 +124,7 @@ class BloglineTabs extends WP_Widget {
|
|||
<div class="tab-item-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('blogline-small'); ?>
|
||||
<?php the_post_thumbnail('blogside-small'); ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-small.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -175,7 +175,7 @@ class BloglineTabs extends WP_Widget {
|
|||
<div class="tab-item-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('blogline-small'); ?>
|
||||
<?php the_post_thumbnail('blogside-small'); ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -218,7 +218,7 @@ class BloglineTabs extends WP_Widget {
|
|||
|
||||
<div class="tab-item-inner group">
|
||||
<?php $str=explode(' ',get_comment_excerpt($comment->comment_ID)); $comment_excerpt=implode(' ',array_slice($str,0,11)); if(count($str) > 11 && substr($comment_excerpt,-1)!='.') $comment_excerpt.='...' ?>
|
||||
<div class="tab-item-name"><?php echo esc_attr( $comment->comment_author ); ?> <?php esc_html_e('says:','blogline'); ?></div>
|
||||
<div class="tab-item-name"><?php echo esc_attr( $comment->comment_author ); ?> <?php esc_html_e('says:','blogside'); ?></div>
|
||||
<div class="tab-item-comment"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php echo esc_attr( $comment_excerpt ); ?></a></div>
|
||||
|
||||
</div>
|
||||
|
@ -314,113 +314,113 @@ class BloglineTabs extends WP_Widget {
|
|||
|
||||
<div class="alx-options-tabs">
|
||||
<p>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php esc_html_e( 'Title:', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php esc_html_e( 'Title:', 'blogside' ); ?></label>
|
||||
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" type="text" value="<?php echo esc_attr($instance["title"]); ?>" />
|
||||
</p>
|
||||
|
||||
<h4><?php esc_html_e( 'Recent Posts', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'Recent Posts', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('recent_enable') ); ?>" name="<?php echo esc_attr( $this->get_field_name('recent_enable') ); ?>" <?php checked( (bool) $instance["recent_enable"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('recent_enable') ); ?>"><?php esc_html_e( 'Enable recent posts', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('recent_enable') ); ?>"><?php esc_html_e( 'Enable recent posts', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('recent_thumbs') ); ?>" name="<?php echo esc_attr( $this->get_field_name('recent_thumbs') ); ?>" <?php checked( (bool) $instance["recent_thumbs"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('recent_thumbs') ); ?>"><?php esc_html_e( 'Show thumbnails', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('recent_thumbs') ); ?>"><?php esc_html_e( 'Show thumbnails', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("recent_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("recent_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogside' ); ?></label>
|
||||
<input style="width:20%;" id="<?php echo esc_attr( $this->get_field_id("recent_num") ); ?>" name="<?php echo esc_attr( $this->get_field_name("recent_num") ); ?>" type="text" value="<?php echo absint($instance["recent_num"]); ?>" size='3' />
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("recent_cat_id") ); ?>"><?php esc_html_e( 'Category:', 'blogline' ); ?></label>
|
||||
<?php wp_dropdown_categories( array( 'name' => $this->get_field_name("recent_cat_id"), 'selected' => $instance["recent_cat_id"], 'show_option_all' => esc_html__('All','blogline'), 'show_count' => true ) ); ?>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("recent_cat_id") ); ?>"><?php esc_html_e( 'Category:', 'blogside' ); ?></label>
|
||||
<?php wp_dropdown_categories( array( 'name' => $this->get_field_name("recent_cat_id"), 'selected' => $instance["recent_cat_id"], 'show_option_all' => esc_html__('All','blogside'), 'show_count' => true ) ); ?>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<h4><?php esc_html_e( 'Most Popular', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'Most Popular', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('popular_enable') ); ?>" name="<?php echo esc_attr( $this->get_field_name('popular_enable') ); ?>" <?php checked( (bool) $instance["popular_enable"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('popular_enable') ); ?>"><?php esc_html_e( 'Enable most popular posts', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('popular_enable') ); ?>"><?php esc_html_e( 'Enable most popular posts', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('popular_thumbs') ); ?>" name="<?php echo esc_attr( $this->get_field_name('popular_thumbs') ); ?>" <?php checked( (bool) $instance["popular_thumbs"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('popular_thumbs') ); ?>"><?php esc_html_e( 'Show thumbnails', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('popular_thumbs') ); ?>"><?php esc_html_e( 'Show thumbnails', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("popular_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("popular_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogside' ); ?></label>
|
||||
<input style="width:20%;" id="<?php echo esc_attr( $this->get_field_id("popular_num") ); ?>" name="<?php echo esc_attr( $this->get_field_name("popular_num") ); ?>" type="text" value="<?php echo absint($instance["popular_num"]); ?>" size='3' />
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("popular_cat_id") ); ?>"><?php esc_html_e( 'Category:', 'blogline' ); ?></label>
|
||||
<?php wp_dropdown_categories( array( 'name' => $this->get_field_name("popular_cat_id"), 'selected' => $instance["popular_cat_id"], 'show_option_all' => esc_html__('All','blogline'), 'show_count' => true ) ); ?>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("popular_cat_id") ); ?>"><?php esc_html_e( 'Category:', 'blogside' ); ?></label>
|
||||
<?php wp_dropdown_categories( array( 'name' => $this->get_field_name("popular_cat_id"), 'selected' => $instance["popular_cat_id"], 'show_option_all' => esc_html__('All','blogside'), 'show_count' => true ) ); ?>
|
||||
</p>
|
||||
<p style="padding-top: 0.3em;">
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("popular_time") ); ?>"><?php esc_html_e( 'Post with most comments from:', 'blogline' ); ?></label>
|
||||
<label style="width: 100%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("popular_time") ); ?>"><?php esc_html_e( 'Post with most comments from:', 'blogside' ); ?></label>
|
||||
<select style="width: 100%;" id="<?php echo esc_attr( $this->get_field_id("popular_time") ); ?>" name="<?php echo esc_attr( $this->get_field_name("popular_time") ); ?>">
|
||||
<option value="0"<?php selected( $instance["popular_time"], "0" ); ?>><?php esc_html_e( 'All time', 'blogline' ); ?></option>
|
||||
<option value="1 year ago"<?php selected( $instance["popular_time"], "1 year ago" ); ?>><?php esc_html_e( 'This year', 'blogline' ); ?></option>
|
||||
<option value="1 month ago"<?php selected( $instance["popular_time"], "1 month ago" ); ?>><?php esc_html_e( 'This month', 'blogline' ); ?></option>
|
||||
<option value="1 week ago"<?php selected( $instance["popular_time"], "1 week ago" ); ?>><?php esc_html_e( 'This week', 'blogline' ); ?></option>
|
||||
<option value="1 day ago"<?php selected( $instance["popular_time"], "1 day ago" ); ?>><?php esc_html_e( 'Past 24 hours', 'blogline' ); ?></option>
|
||||
<option value="0"<?php selected( $instance["popular_time"], "0" ); ?>><?php esc_html_e( 'All time', 'blogside' ); ?></option>
|
||||
<option value="1 year ago"<?php selected( $instance["popular_time"], "1 year ago" ); ?>><?php esc_html_e( 'This year', 'blogside' ); ?></option>
|
||||
<option value="1 month ago"<?php selected( $instance["popular_time"], "1 month ago" ); ?>><?php esc_html_e( 'This month', 'blogside' ); ?></option>
|
||||
<option value="1 week ago"<?php selected( $instance["popular_time"], "1 week ago" ); ?>><?php esc_html_e( 'This week', 'blogside' ); ?></option>
|
||||
<option value="1 day ago"<?php selected( $instance["popular_time"], "1 day ago" ); ?>><?php esc_html_e( 'Past 24 hours', 'blogside' ); ?></option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<h4><?php esc_html_e( 'Recent Comments', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'Recent Comments', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('comments_enable') ); ?>" name="<?php echo esc_attr( $this->get_field_name('comments_enable') ); ?>" <?php checked( (bool) $instance["comments_enable"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('comments_enable') ); ?>"><?php esc_html_e( 'Enable recent comments', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('comments_enable') ); ?>"><?php esc_html_e( 'Enable recent comments', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('comments_avatars') ); ?>" name="<?php echo esc_attr( $this->get_field_name('comments_avatars') ); ?>" <?php checked( (bool) $instance["comments_avatars"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('comments_avatars') ); ?>"><?php esc_html_e( 'Show avatars', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('comments_avatars') ); ?>"><?php esc_html_e( 'Show avatars', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("comments_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("comments_num") ); ?>"><?php esc_html_e( 'Items to show', 'blogside' ); ?></label>
|
||||
<input style="width:20%;" id="<?php echo esc_attr( $this->get_field_id("comments_num") ); ?>" name="<?php echo esc_attr( $this->get_field_name("comments_num") ); ?>" type="text" value="<?php echo absint($instance["comments_num"]); ?>" size='3' />
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<h4><?php esc_html_e( 'Tags', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'Tags', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('tags_enable') ); ?>" name="<?php echo esc_attr( $this->get_field_name('tags_enable') ); ?>" <?php checked( (bool) $instance["tags_enable"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('tags_enable') ); ?>"><?php esc_html_e( 'Enable tags', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('tags_enable') ); ?>"><?php esc_html_e( 'Enable tags', 'blogside' ); ?></label>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<h4><?php esc_html_e( 'Tab Order', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'Tab Order', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_recent") ); ?>"><?php esc_html_e( 'Recent posts', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_recent") ); ?>"><?php esc_html_e( 'Recent posts', 'blogside' ); ?></label>
|
||||
<input class="widefat" style="width:20%;" type="text" id="<?php echo esc_attr( $this->get_field_id("order_recent") ); ?>" name="<?php echo esc_attr( $this->get_field_name("order_recent") ); ?>" value="<?php echo esc_attr( $instance["order_recent"] ); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_popular") ); ?>"><?php esc_html_e( 'Most popular', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_popular") ); ?>"><?php esc_html_e( 'Most popular', 'blogside' ); ?></label>
|
||||
<input class="widefat" style="width:20%;" type="text" id="<?php echo esc_attr( $this->get_field_id("order_popular") ); ?>" name="<?php echo esc_attr( $this->get_field_name("order_popular") ); ?>" value="<?php echo esc_attr( $instance["order_popular"] ); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_comments") ); ?>"><?php esc_html_e( 'Recent comments', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_comments") ); ?>"><?php esc_html_e( 'Recent comments', 'blogside' ); ?></label>
|
||||
<input class="widefat" style="width:20%;" type="text" id="<?php echo esc_attr( $this->get_field_id("order_comments") ); ?>" name="<?php echo esc_attr( $this->get_field_name("order_comments") ); ?>" value="<?php echo esc_attr( $instance["order_comments"] ); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_tags") ); ?>"><?php esc_html_e( 'Tags', 'blogline' ); ?></label>
|
||||
<label style="width: 55%; display: inline-block;" for="<?php echo esc_attr( $this->get_field_id("order_tags") ); ?>"><?php esc_html_e( 'Tags', 'blogside' ); ?></label>
|
||||
<input class="widefat" style="width:20%;" type="text" id="<?php echo esc_attr( $this->get_field_id("order_tags") ); ?>" name="<?php echo esc_attr( $this->get_field_name("order_tags") ); ?>" value="<?php echo esc_attr( $instance["order_tags"] ); ?>" />
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<h4><?php esc_html_e( 'Tab Info', 'blogline' ); ?></h4>
|
||||
<h4><?php esc_html_e( 'Tab Info', 'blogside' ); ?></h4>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('tabs_category') ); ?>" name="<?php echo esc_attr( $this->get_field_name('tabs_category') ); ?>" <?php checked( (bool) $instance["tabs_category"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('tabs_category') ); ?>"><?php esc_html_e( 'Show categories', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('tabs_category') ); ?>"><?php esc_html_e( 'Show categories', 'blogside' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('tabs_date') ); ?>" name="<?php echo esc_attr( $this->get_field_name('tabs_date') ); ?>" <?php checked( (bool) $instance["tabs_date"], true ); ?>>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('tabs_date') ); ?>"><?php esc_html_e( 'Show dates', 'blogline' ); ?></label>
|
||||
<label for="<?php echo esc_attr( $this->get_field_id('tabs_date') ); ?>"><?php esc_html_e( 'Show dates', 'blogside' ); ?></label>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
@ -434,11 +434,11 @@ class BloglineTabs extends WP_Widget {
|
|||
|
||||
/* Register widget
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'blogline_register_widget_tabs' ) ) {
|
||||
if ( ! function_exists( 'blogside_register_widget_tabs' ) ) {
|
||||
|
||||
function blogline_register_widget_tabs() {
|
||||
register_widget( 'BloglineTabs' );
|
||||
function blogside_register_widget_tabs() {
|
||||
register_widget( 'BlogsideTabs' );
|
||||
}
|
||||
|
||||
}
|
||||
add_action( 'widgets_init', 'blogline_register_widget_tabs' );
|
||||
add_action( 'widgets_init', 'blogside_register_widget_tabs' );
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
<?php if ( get_header_image() == '' ) : ?>
|
||||
<div class="group pad">
|
||||
<?php echo blogline_site_title(); ?>
|
||||
<?php echo blogside_site_title(); ?>
|
||||
<?php if ( display_header_text() == true ): ?>
|
||||
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="pad group">
|
||||
|
||||
<?php if ( is_home() ) : ?>
|
||||
<h2><?php echo blogline_blog_title(); ?></h2>
|
||||
<h2><?php echo blogside_blog_title(); ?></h2>
|
||||
|
||||
<?php elseif ( is_single() ): ?>
|
||||
<ul class="meta-single group">
|
||||
|
@ -21,53 +21,53 @@
|
|||
<?php if ( !have_posts() ): ?><i class="fa fa-exclamation-circle"></i><?php endif; ?>
|
||||
<?php $search_results=$wp_query->found_posts;
|
||||
if ($search_results==1) {
|
||||
echo $search_results.' '.esc_html__('Search result','blogline');
|
||||
echo $search_results.' '.esc_html__('Search result','blogside');
|
||||
} else {
|
||||
echo $search_results.' '.esc_html__('Search results','blogline');
|
||||
echo $search_results.' '.esc_html__('Search results','blogside');
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php elseif ( is_404() ): ?>
|
||||
<h1><i class="fa fa-exclamation-circle"></i><?php esc_html_e('Error 404.','blogline'); ?> <span><?php esc_html_e('Page not found!','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-exclamation-circle"></i><?php esc_html_e('Error 404.','blogside'); ?> <span><?php esc_html_e('Page not found!','blogside'); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_author() ): ?>
|
||||
<?php $author = get_userdata( get_query_var('author') );?>
|
||||
<h1><i class="fa fa-user"></i><?php esc_html_e('Author:','blogline'); ?> <span><?php echo $author->display_name;?></span></h1>
|
||||
<h1><i class="fa fa-user"></i><?php esc_html_e('Author:','blogside'); ?> <span><?php echo $author->display_name;?></span></h1>
|
||||
|
||||
<?php elseif ( is_category() ): ?>
|
||||
<h1><i class="fa fa-folder-open"></i><?php esc_html_e('Category:','blogline'); ?> <span><?php echo single_cat_title('', false); ?></span></h1>
|
||||
<h1><i class="fa fa-folder-open"></i><?php esc_html_e('Category:','blogside'); ?> <span><?php echo single_cat_title('', false); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_tag() ): ?>
|
||||
<h1><i class="fa fa-tags"></i><?php esc_html_e('Tagged:','blogline'); ?> <span><?php echo single_tag_title('', false); ?></span></h1>
|
||||
<h1><i class="fa fa-tags"></i><?php esc_html_e('Tagged:','blogside'); ?> <span><?php echo single_tag_title('', false); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_day() ): ?>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Daily Archive:','blogline'); ?> <span><?php echo esc_html( get_the_time('F j, Y') ); ?></span></h1>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Daily Archive:','blogside'); ?> <span><?php echo esc_html( get_the_time('F j, Y') ); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_month() ): ?>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Monthly Archive:','blogline'); ?> <span><?php echo esc_html( get_the_time('F Y') ); ?></span></h1>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Monthly Archive:','blogside'); ?> <span><?php echo esc_html( get_the_time('F Y') ); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_year() ): ?>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Yearly Archive:','blogline'); ?> <span><?php echo esc_html( get_the_time('Y') ); ?></span></h1>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Yearly Archive:','blogside'); ?> <span><?php echo esc_html( get_the_time('Y') ); ?></span></h1>
|
||||
|
||||
<?php elseif ( has_post_format('audio') ): ?>
|
||||
<h1><i class="fa fa-volume-up"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Audio','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-volume-up"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Audio','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('aside') ): ?>
|
||||
<h1><i class="fa fa-pen"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Aside','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-pen"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Aside','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('chat') ): ?>
|
||||
<h1><i class="fa fa-comments-o"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Chat','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-comments-o"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Chat','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('gallery') ): ?>
|
||||
<h1><i class="fa fa-picture-o"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Gallery','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-picture-o"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Gallery','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('image') ): ?>
|
||||
<h1><i class="fa fa-camera"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Image','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-camera"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Image','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('link') ): ?>
|
||||
<h1><i class="fa fa-link"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Link','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-link"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Link','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('quote') ): ?>
|
||||
<h1><i class="fa fa-quote-left"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Quote','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-quote-left"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Quote','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('status') ): ?>
|
||||
<h1><i class="fa fa-bullhorn"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Status','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-bullhorn"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Status','blogside'); ?></span></h1>
|
||||
<?php elseif ( has_post_format('video') ): ?>
|
||||
<h1><i class="fa fa-video-camera"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Video','blogline'); ?></span></h1>
|
||||
<h1><i class="fa fa-video-camera"></i><?php esc_html_e('Type:','blogside'); ?> <span><?php esc_html_e('Video','blogside'); ?></span></h1>
|
||||
|
||||
<?php else: ?>
|
||||
<h2><?php the_title(); ?></h2>
|
||||
|
|
|
@ -17,30 +17,7 @@
|
|||
<?php if ( has_post_format( 'gallery' ) ): // Gallery ?>
|
||||
|
||||
<div class="post-format">
|
||||
<?php $images = blogline_post_images(); if ( !empty($images) ): ?>
|
||||
<script type="text/javascript">
|
||||
// Check if first slider image is loaded, and load flexslider on document ready
|
||||
jQuery(document).ready(function(){
|
||||
var firstImage = jQuery('#flexslider-<?php echo the_ID(); ?>').find('img').filter(':first'),
|
||||
checkforloaded = setInterval(function() {
|
||||
var image = firstImage.get(0);
|
||||
if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
|
||||
clearInterval(checkforloaded);
|
||||
jQuery('#flexslider-<?php echo the_ID(); ?>').flexslider({
|
||||
animation: "fade",
|
||||
slideshow: false,
|
||||
directionNav: true,
|
||||
controlNav: false,
|
||||
pauseOnHover: true,
|
||||
slideshowSpeed: 7000,
|
||||
animationSpeed: 600,
|
||||
smoothHeight: true,
|
||||
touch: false
|
||||
});
|
||||
}
|
||||
}, 20);
|
||||
});
|
||||
</script>
|
||||
<?php $images = blogside_post_images(); if ( !empty($images) ): ?>
|
||||
<div class="flex-container">
|
||||
<div class="flexslider" id="flexslider-<?php the_ID(); ?>">
|
||||
<ul class="slides">
|
||||
|
@ -67,7 +44,7 @@
|
|||
<div class="post-format">
|
||||
<div class="image-container">
|
||||
<?php if ( has_post_thumbnail() ) {
|
||||
the_post_thumbnail('blogline-large');
|
||||
the_post_thumbnail('blogside-large');
|
||||
$caption = get_post(get_post_thumbnail_id())->post_excerpt;
|
||||
if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
|
||||
} ?>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php if ( is_single() ): ?>
|
||||
<ul class="post-nav group">
|
||||
<li class="next"><?php next_post_link('%link', '<i class="fa fa-chevron-right"></i><strong>'.esc_html__('Next story', 'blogline').'</strong> <span>%title</span>'); ?></li>
|
||||
<li class="previous"><?php previous_post_link('%link', '<i class="fa fa-chevron-left"></i><strong>'.esc_html__('Previous story', 'blogline').'</strong> <span>%title</span>'); ?></li>
|
||||
<li class="next"><?php next_post_link('%link', '<i class="fa fa-chevron-right"></i><strong>'.esc_html__('Next story', 'blogside').'</strong> <span>%title</span>'); ?></li>
|
||||
<li class="previous"><?php previous_post_link('%link', '<i class="fa fa-chevron-left"></i><strong>'.esc_html__('Previous story', 'blogside').'</strong> <span>%title</span>'); ?></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
|
@ -1,9 +1,9 @@
|
|||
<?php $related = blogline_related_posts(); ?>
|
||||
<?php $related = blogside_related_posts(); ?>
|
||||
|
||||
<?php if ( $related->have_posts() ): ?>
|
||||
|
||||
<h4 class="heading">
|
||||
<i class="fa fa-hand-o-right"></i><?php esc_html_e('You may also like...','blogline'); ?>
|
||||
<i class="fa fa-hand-o-right"></i><?php esc_html_e('You may also like...','blogside'); ?>
|
||||
</h4>
|
||||
|
||||
<ul class="related-posts group">
|
||||
|
@ -15,7 +15,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php the_post_thumbnail('blogside-medium'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Blogline\n"
|
||||
"Project-Id-Version: Blogside\n"
|
||||
"POT-Creation-Date: 2018-09-21 22:01+0200\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
21
readme.txt
21
readme.txt
|
@ -1,27 +1,27 @@
|
|||
=== Blogline ===
|
||||
=== Blogside ===
|
||||
Contributors: alxmedia
|
||||
Requires at least: 4.9
|
||||
Tested up to: 4.9
|
||||
Version: 1.0.4
|
||||
Version: 1.0.5
|
||||
License: GPLv3
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0
|
||||
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
|
||||
|
||||
== Description ==
|
||||
|
||||
Blogline is a responsive 100% high resolution theme for personal blogs. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-1 sidebars to the left or right that can be uniquely specified for each page or post, 300px fixed width sidebar, 0-4 footer widget columns, almost zero layout images, related posts and post nav, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
|
||||
Blogside is a responsive 100% high resolution theme for personal blogs. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-1 sidebars to the left or right that can be uniquely specified for each page or post, 300px fixed width sidebar, 0-4 footer widget columns, almost zero layout images, related posts and post nav, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
|
||||
2. Type in Blogline in the search form and press the 'Enter' key on your keyboard.
|
||||
2. Type in Blogside in the search form and press the 'Enter' key on your keyboard.
|
||||
3. Click on the 'Activate' button to use your new theme right away.
|
||||
4. Navigate to Appearance > Customize in your admin panel and customize to taste.
|
||||
|
||||
== Copyright ==
|
||||
|
||||
Blogline WordPress Theme, Copyright 2018 AlxMedia
|
||||
Blogline is distributed under the terms of the GNU GPL
|
||||
Blogside WordPress Theme, Copyright 2018 AlxMedia
|
||||
Blogside is distributed under the terms of the GNU GPL
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -33,7 +33,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
Blogline bundles the following third-party resources:
|
||||
Blogside bundles the following third-party resources:
|
||||
|
||||
Font Awesome, Copyright Dave Gandy
|
||||
License: SIL OFL 1.1 (Fonts); MIT (CSS)
|
||||
|
@ -74,6 +74,11 @@ Sidebar images
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.5 - 2018-10-17 =
|
||||
* Renamed theme from Blogline (already taken) to Blogside
|
||||
* Fixed enqueued flexslider script in functions.php
|
||||
* Added screenshot images to readme
|
||||
|
||||
= 1.0.4 - 2018-09-08 =
|
||||
* Moved plugin territory features to companion plugin
|
||||
* Added missing style.css tags
|
||||
|
@ -90,7 +95,7 @@ Sidebar images
|
|||
* Added support for custom-header
|
||||
* Added support for custom-background
|
||||
* Updated meta dates to use wordpress settings
|
||||
* Changed function names from alx_ to blogline_
|
||||
* Changed function names from alx_ to blogside_
|
||||
* Fixed undefined index notices/errors for Alx Tabs and Alx Posts widgets
|
||||
* Fixed all theme sniffer errors
|
||||
* Removed settings for page/post comments on/off, already exist in core
|
||||
|
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 588 KiB After Width: | Height: | Size: 589 KiB |
|
@ -6,9 +6,9 @@
|
|||
|
||||
<div class="pad pad-top group">
|
||||
<div class="notebox">
|
||||
<?php esc_html_e('For the term','blogline'); ?> "<span><?php echo get_search_query(); ?></span>".
|
||||
<?php esc_html_e('For the term','blogside'); ?> "<span><?php echo get_search_query(); ?></span>".
|
||||
<?php if ( !have_posts() ): ?>
|
||||
<?php esc_html_e('Please try another search:','blogline'); ?>
|
||||
<?php esc_html_e('Please try another search:','blogside'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="search-again">
|
||||
<?php get_search_form(); ?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<form method="get" class="searchform themeform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
<div>
|
||||
<input type="text" class="search" name="s" onblur="if(this.value=='')this.value='<?php esc_attr_e('To search type and hit enter','blogline'); ?>';" onfocus="if(this.value=='<?php esc_attr_e('To search type and hit enter','blogline'); ?>')this.value='';" value="<?php esc_attr_e('To search type and hit enter','blogline'); ?>" />
|
||||
<input type="text" class="search" name="s" onblur="if(this.value=='')this.value='<?php esc_attr_e('To search type and hit enter','blogside'); ?>';" onfocus="if(this.value=='<?php esc_attr_e('To search type and hit enter','blogside'); ?>')this.value='';" value="<?php esc_attr_e('To search type and hit enter','blogside'); ?>" />
|
||||
</div>
|
||||
</form>
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
$sidebar = blogline_sidebar_primary();
|
||||
$layout = blogline_layout_class();
|
||||
$sidebar = blogside_sidebar_primary();
|
||||
$layout = blogside_layout_class();
|
||||
if ( $layout != 'col-1c'):
|
||||
?>
|
||||
|
||||
<div class="sidebar s1">
|
||||
|
||||
<a class="sidebar-toggle" title="<?php esc_attr_e('Expand Sidebar','blogline'); ?>"><i class="fa icon-sidebar-toggle"></i></a>
|
||||
<a class="sidebar-toggle" title="<?php esc_attr_e('Expand Sidebar','blogside'); ?>"><i class="fa icon-sidebar-toggle"></i></a>
|
||||
|
||||
<div class="sidebar-content">
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
|||
<div id="profile-description"><?php echo get_theme_mod('profile-description'); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if ( get_theme_mod( 'header-social', 'on' ) == 'on' ): ?>
|
||||
<?php blogline_social_links() ; ?>
|
||||
<?php blogside_social_links() ; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<div class="entry">
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages(array('before'=>'<div class="post-pages">'.esc_html__('Pages:','blogline'),'after'=>'</div>')); ?>
|
||||
<?php wp_link_pages(array('before'=>'<div class="post-pages">'.esc_html__('Pages:','blogside'),'after'=>'</div>')); ?>
|
||||
<div class="clear"></div>
|
||||
</div><!--/.entry-->
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php the_tags('<p class="post-tags"><span>'.esc_html__('Tags:','blogline').'</span> ','','</p>'); ?>
|
||||
<?php the_tags('<p class="post-tags"><span>'.esc_html__('Tags:','blogside').'</span> ','','</p>'); ?>
|
||||
|
||||
<?php do_action( 'alx_ext_sharrre' ); ?>
|
||||
|
||||
|
|
16
style.css
16
style.css
|
@ -1,12 +1,12 @@
|
|||
/*
|
||||
Theme Name: Blogline
|
||||
Theme URI: http://alxmedia.se/themes/blogline/
|
||||
Version: 1.0.4
|
||||
Description: <a href="http://alxmedia.se/themes/blogline/">Blogline</a> is a responsive 100% high resolution theme for personal blogs. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-1 sidebars to the left or right that can be uniquely specified for each page or post, 300px fixed width sidebar, 0-4 footer widget columns, almost zero layout images, related posts and post nav, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
|
||||
Theme Name: Blogside
|
||||
Theme URI: http://alxmedia.se/themes/blogside/
|
||||
Version: 1.0.5
|
||||
Description: <a href="http://alxmedia.se/themes/blogside/">Blogside</a> is a responsive 100% high resolution theme for personal blogs. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-1 sidebars to the left or right that can be uniquely specified for each page or post, 300px fixed width sidebar, 0-4 footer widget columns, almost zero layout images, related posts and post nav, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
|
||||
Author: Alexander Agnarson
|
||||
Author URI: http://alxmedia.se
|
||||
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
|
||||
Text Domain: blogline
|
||||
Text Domain: blogside
|
||||
|
||||
Copyright: (c) 2018 Alexander "Alx" Agnarson
|
||||
License: GNU General Public License v3.0
|
||||
|
@ -1015,8 +1015,8 @@ transition-property: background color; transition-duration: 0.2s; transition-tim
|
|||
.widget_rss > h3:after { content: "\f09e"; }
|
||||
.widget_pages > h3:after { content: "\f067"; }
|
||||
.widget_nav_menu > h3:after { content: "\f067"; }
|
||||
.widget_blogline_posts > h3:after { content: "\f067"; }
|
||||
.widget_blogline_tabs > h3:after { content: "\f067"; }
|
||||
.widget_blogside_posts > h3:after { content: "\f067"; }
|
||||
.widget_blogside_tabs > h3:after { content: "\f067"; }
|
||||
.widget_text > h3:after { content: "\f067"; }
|
||||
.widget_search > h3:after { content: "\f002"; }
|
||||
.widget_tag_cloud > h3:after { content: "\f0c2"; }
|
||||
|
@ -1156,7 +1156,7 @@ transition-property: background color; transition-duration: 0.2s; transition-tim
|
|||
|
||||
/* custom widget : alxvideo
|
||||
/* ------------------------------------ */
|
||||
.widget_blogline_video h3 { margin-bottom: 14px; }
|
||||
.widget_blogside_video h3 { margin-bottom: 14px; }
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue