diff --git a/404.php b/404.php index e79c1ef..002decb 100644 --- a/404.php +++ b/404.php @@ -11,7 +11,7 @@
', 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( $message ), '
', esc_html( $message ), '
', esc_html__( 'No plugins were selected to be activated. No action taken.', 'blogline' ), '
', esc_html__( 'No plugins were selected to be activated. No action taken.', 'blogside' ), '
', esc_html__( 'No plugins are available to be activated at this time.', 'blogline' ), '
', esc_html__( 'No plugins are available to be activated at this time.', 'blogside' ), '
%1$s %2$s.
Thank you for using this theme, you have good taste! ;-)
@@ -82,14 +82,14 @@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.
blogline.zip
fileblogside.zip
fileIt 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:
blogline.zip
file to upload.blogside.zip
file to upload.blogline.zip
, as you did on first-time install, and activate it.blogside.zip
, as you did on first-time install, and activate it.You are now running the latest and best version of the theme!
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.
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 {