diff --git a/404.php b/404.php index e79c1ef..002decb 100644 --- a/404.php +++ b/404.php @@ -11,7 +11,7 @@
-

+

diff --git a/comments.php b/comments.php index 7f3aa79..e62e074 100644 --- a/comments.php +++ b/comments.php @@ -4,11 +4,11 @@ -

+

diff --git a/content-featured.php b/content-featured.php index df23965..209f853 100644 --- a/content-featured.php +++ b/content-featured.php @@ -4,7 +4,7 @@
- + <?php the_title_attribute(); ?> diff --git a/content-grid.php b/content-grid.php index 2cdcdb3..e75151f 100644 --- a/content-grid.php +++ b/content-grid.php @@ -4,7 +4,7 @@
- + <?php the_title_attribute(); ?> diff --git a/content-list.php b/content-list.php index 382cbf0..18f6bb4 100644 --- a/content-list.php +++ b/content-list.php @@ -4,7 +4,7 @@
- + <?php the_title_attribute(); ?> diff --git a/content.php b/content.php index d2cedba..aa444a1 100644 --- a/content.php +++ b/content.php @@ -23,7 +23,7 @@
diff --git a/footer.php b/footer.php index 6062708..b55b0d9 100644 --- a/footer.php +++ b/footer.php @@ -73,13 +73,13 @@

-

© .

+

© .

@@ -87,7 +87,7 @@
- +
diff --git a/functions.php b/functions.php index 6f63dd1..be78f84 100644 --- a/functions.php +++ b/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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); + function blogside_sidebars() { + register_sidebar(array( 'name' => esc_html__('Primary','blogside'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","blogside"), 'before_widget' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } - 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } + 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' => '
','after_widget' => '
','before_title' => '

','after_title' => '

')); } } } -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 '
' . $html . '
'; } } -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 ''. "\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 ''. "\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 ''; } else { echo '

', esc_html( $this->strings['return'] ), '

'; @@ -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 (%s)', 'All (%s)', $count, 'plugins', 'blogline' ); + $text = _nx( 'All (%s)', 'All (%s)', $count, 'plugins', 'blogside' ); break; case 'install': /* translators: 1: number of plugins. */ - $text = _n( 'To Install (%s)', 'To Install (%s)', $count, 'blogline' ); + $text = _n( 'To Install (%s)', 'To Install (%s)', $count, 'blogside' ); break; case 'update': /* translators: 1: number of plugins. */ - $text = _n( 'Update Available (%s)', 'Update Available (%s)', $count, 'blogline' ); + $text = _n( 'Update Available (%s)', 'Update Available (%s)', $count, 'blogside' ); break; case 'activate': /* translators: 1: number of plugins. */ - $text = _n( 'To Activate (%s)', 'To Activate (%s)', $count, 'blogline' ); + $text = _n( 'To Activate (%s)', 'To Activate (%s)', $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( - '

%2$s' . __( 'Installed version:', 'blogline' ) . '

', + '

%2$s' . __( 'Installed version:', 'blogside' ) . '

', $color, $installed ); @@ -2495,7 +2495,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) { if ( ! empty( $item['minimum_version'] ) ) { $output[] = sprintf( - '

%1$s' . __( 'Minimum required version:', 'blogline' ) . '

', + '

%1$s' . __( 'Minimum required version:', 'blogside' ) . '

', $item['minimum_version'] ); } @@ -2507,7 +2507,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) { } $output[] = sprintf( - '

%2$s' . __( 'Available version:', 'blogline' ) . '

', + '

%2$s' . __( 'Available version:', 'blogside' ) . '

', $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' ) . ' ' . esc_html__( 'Return to the Dashboard', 'blogline' ) . ''; + echo esc_html__( 'No plugins to install, update or activate.', 'blogside' ) . ' ' . esc_html__( 'Return to the Dashboard', 'blogside' ) . ''; echo ''; } @@ -2544,14 +2544,14 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) { public function get_columns() { $columns = array( 'cb' => '', - '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' ) ) {
', - esc_html__( 'Upgrade message from the plugin author:', 'blogline' ), + esc_html__( 'Upgrade message from the plugin author:', 'blogside' ), ' ', wp_kses_data( $item['upgrade_notice'] ), '
@@ -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 '

', esc_html( $message ), '

'; @@ -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 '

', esc_html( $message ), '

'; @@ -2905,7 +2905,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) { // Did user actually select any plugins to activate ? if ( empty( $_POST['plugin'] ) ) { - echo '

', esc_html__( 'No plugins were selected to be activated. No action taken.', 'blogline' ), '

'; + echo '

', esc_html__( 'No plugins were selected to be activated. No action taken.', 'blogside' ), '

'; 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 '

', esc_html__( 'No plugins are available to be activated at this time.', 'blogline' ), '

'; + echo '

', esc_html__( 'No plugins are available to be activated at this time.', 'blogside' ), '

'; 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. '

%1$s %2$s.

', - 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: %2$s.', 'blogline' ); + $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: %2$s.', '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' ) . ' ' . esc_html__( 'Show Details', 'blogline' ) . '.'; - $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' ) . ' ' . esc_html__( 'Show Details', 'blogside' ) . '.'; + $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' ) . ' ' . esc_html__( 'Show Details', 'blogline' ) . '.'; - $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' ) . ' ' . esc_html__( 'Show Details', 'blogside' ) . '.'; + $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 ''; $update_actions['dashboard'] = sprintf( esc_html( $this->tgmpa->strings['complete'] ), - '' . esc_html__( 'Return to the Dashboard', 'blogline' ) . '' + '' . esc_html__( 'Return to the Dashboard', 'blogside' ) . '' ); } else { $update_actions['tgmpa_page'] = '' . esc_html( $this->tgmpa->strings['return'] ) . ''; diff --git a/functions/documentation/documentation.html b/functions/documentation/documentation.html index c88a1ae..ae92889 100644 --- a/functions/documentation/documentation.html +++ b/functions/documentation/documentation.html @@ -54,7 +54,7 @@
-

Blogline

+

Blogside

Thank you for using this theme, you have good taste! ;-)

AlxMedia · Themes

@@ -82,14 +82,14 @@

02Installation

-

Installing your theme is pretty easy! After downloading you should have a blogline.zip 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.

+

Installing your theme is pretty easy! After downloading you should have a blogside.zip 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.

Upload the theme

  1. Go to Appearance > Themes in the WordPress menu
  2. Click on the Add New button
  3. Click on the Upload link
  4. -
  5. Select the blogline.zip file
  6. +
  7. Select the blogside.zip file
  8. Click Install Now
@@ -159,11 +159,11 @@

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:

  1. Download the latest version.
  2. -
  3. Locate the blogline.zip file to upload.
  4. +
  5. Locate the blogside.zip file to upload.
  6. Go to Appearance > Themes in the WordPress menu
  7. Activate a default theme temporarily, such as Twenty Twelve (to be able to delete your current theme)
  8. Click on the theme you wish to update, and press the red delete link bottom right. Your admin panel options should remain saved.
  9. -
  10. Upload the new blogline.zip, as you did on first-time install, and activate it.
  11. +
  12. Upload the new blogside.zip, as you did on first-time install, and activate it.

You are now running the latest and best version of the theme!

@@ -351,10 +351,10 @@

This theme has been built with child themes in mind, 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.

Load certain functionality from the child theme instead

-

This only applies for files loaded from the parent theme's functions.php. 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).

+

This only applies for files loaded from the parent theme's functions.php. 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).

Now we have this function in our child theme - but it makes absolutely no difference, and still loads all files from the parent theme.

-
function blogline_styles() {
+
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 @@
 			
 			

To load from the child theme instead, change get_template_directory_uri to get_stylesheet_directory_uri 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:

-
function blogline_styles() {
+
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' );
 }
-

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:

+

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:

// Load theme languages
 load_theme_textdomain( 'themename', get_template_directory().'/languages' );
@@ -391,7 +391,7 @@ load_theme_textdomain( 'themename', get_stylesheet_directory().'/languages' );Disabling functions

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:

-
function blogline_plugins() { }
+
function blogside_plugins() { }

Simply emptying the function, disabling it completely.

Replacing page templates

@@ -523,14 +523,14 @@ float: left;

05.4Change Thumbnail Size

-

To modify the custom thumbnail sizes for your theme, you need to copy over the whole function blogline_setup() {} to your child theme, using the methods explained above.

+

To modify the custom thumbnail sizes for your theme, you need to copy over the whole function blogside_setup() {} to your child theme, using the methods explained above.

Within this function you will find the thumbnail sizes under where it says:

// Thumbnail sizes

Modify the height and width values as you want, using add_image_size codex as guideline to how it works. After that you've changed size and saved, you need to run the regenerate thumbnails plugin once before you will see any difference.

-

Important: 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 function blogline_thumbnail_upscale() {} to your child theme's functions.php, disabling the function completely.

+

Important: 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 function blogside_thumbnail_upscale() {} to your child theme's functions.php, disabling the function completely.

diff --git a/functions/dynamic-styles.php b/functions/dynamic-styles.php index c1b4057..5df9128 100644 --- a/functions/dynamic-styles.php +++ b/functions/dynamic-styles.php @@ -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' ); diff --git a/functions/meta-boxes.php b/functions/meta-boxes.php index 3e272e6..3e299c9 100644 --- a/functions/meta-boxes.php +++ b/functions/meta-boxes.php @@ -1,5 +1,5 @@ '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' ); \ No newline at end of file +add_filter( 'rwmb_meta_boxes', 'blogside_get_meta_box' ); \ No newline at end of file diff --git a/functions/theme-options.php b/functions/theme-options.php index 54def41..bcdd84d 100644 --- a/functions/theme-options.php +++ b/functions/theme-options.php @@ -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' ) . ' ' . esc_html__( 'View All', 'blogline' ) . ' ', + 'tooltip' => esc_html__( 'Font Awesome names:', 'blogside' ) . ' ' . esc_html__( 'View All', 'blogside' ) . ' ', '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' ) . ' ' . esc_html__( 'View All', 'blogline' ) . ' ', + 'label' => esc_html__( 'Icon Name', 'blogside' ), + 'description' => esc_html__( 'Font Awesome icons. Ex: fa-facebook ', 'blogside' ) . ' ' . esc_html__( 'View All', 'blogside' ) . ' ', '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( diff --git a/functions/widgets/alx-posts.php b/functions/widgets/alx-posts.php index 98cf3ce..2ca6e5b 100644 --- a/functions/widgets/alx-posts.php +++ b/functions/widgets/alx-posts.php @@ -1,25 +1,25 @@ 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 {
- + <?php the_title_attribute(); ?> @@ -138,53 +138,53 @@ class BloglinePosts extends WP_Widget {

- + " />

-

+

> - +

- + " name="get_field_name("posts_num") ); ?>" type="text" value="" size='3' />

- - $this->get_field_name("posts_cat_id"), 'selected' => $instance["posts_cat_id"], 'show_option_all' => esc_html__( 'All', 'blogline' ), 'show_count' => true ) ); ?> + + $this->get_field_name("posts_cat_id"), 'selected' => $instance["posts_cat_id"], 'show_option_all' => esc_html__( 'All', 'blogside' ), 'show_count' => true ) ); ?>

- +

- +


-

+

> - +

> - +


@@ -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' ); diff --git a/functions/widgets/alx-tabs.php b/functions/widgets/alx-tabs.php index 163c263..68a8675 100644 --- a/functions/widgets/alx-tabs.php +++ b/functions/widgets/alx-tabs.php @@ -1,25 +1,25 @@ 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 {
- + <?php the_title_attribute(); ?> @@ -175,7 +175,7 @@ class BloglineTabs extends WP_Widget {
- + <?php the_title_attribute(); ?> @@ -218,7 +218,7 @@ class BloglineTabs extends WP_Widget { @@ -314,113 +314,113 @@ class BloglineTabs extends WP_Widget {

- + " />

-

+

> - +

> - +

- + " name="get_field_name("recent_num") ); ?>" type="text" value="" size='3' />

- - $this->get_field_name("recent_cat_id"), 'selected' => $instance["recent_cat_id"], 'show_option_all' => esc_html__('All','blogline'), 'show_count' => true ) ); ?> + + $this->get_field_name("recent_cat_id"), 'selected' => $instance["recent_cat_id"], 'show_option_all' => esc_html__('All','blogside'), 'show_count' => true ) ); ?>


-

+

> - +

> - +

- + " name="get_field_name("popular_num") ); ?>" type="text" value="" size='3' />

- - $this->get_field_name("popular_cat_id"), 'selected' => $instance["popular_cat_id"], 'show_option_all' => esc_html__('All','blogline'), 'show_count' => true ) ); ?> + + $this->get_field_name("popular_cat_id"), 'selected' => $instance["popular_cat_id"], 'show_option_all' => esc_html__('All','blogside'), 'show_count' => true ) ); ?>

- +


-

+

> - +

> - +

- + " name="get_field_name("comments_num") ); ?>" type="text" value="" size='3' />


-

+

> - +


-

+

- + " name="get_field_name("order_recent") ); ?>" value="" />

- + " name="get_field_name("order_popular") ); ?>" value="" />

- + " name="get_field_name("order_comments") ); ?>" value="" />

- + " name="get_field_name("order_tags") ); ?>" value="" />


-

+

> - +

> - +


@@ -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' ); diff --git a/header.php b/header.php index b568d84..f84b112 100644 --- a/header.php +++ b/header.php @@ -64,7 +64,7 @@
- +

diff --git a/inc/page-title.php b/inc/page-title.php index a9826d8..bfef869 100644 --- a/inc/page-title.php +++ b/inc/page-title.php @@ -2,7 +2,7 @@
-

+