- ID ), 'magazinertwo-medium' ); ?>
+ ID ), 'featureon-medium' ); ?>
diff --git a/content-list.php b/content-list.php
index 4978b8d..b29fd56 100644
--- a/content-list.php
+++ b/content-list.php
@@ -6,7 +6,7 @@
-
+
diff --git a/content.php b/content.php
index 7a9b26b..882bb73 100644
--- a/content.php
+++ b/content.php
@@ -6,7 +6,7 @@
@@ -81,7 +81,7 @@
-
+
diff --git a/functions.php b/functions.php
index 137f4f5..71d6ecc 100644
--- a/functions.php
+++ b/functions.php
@@ -15,16 +15,16 @@
include( get_template_directory() . '/functions/kirki/kirki.php' );
// Load theme updater functions
-function magazinertwo_theme_updater() {
+function featureon_theme_updater() {
require( get_template_directory() . '/updater/theme-updater.php' );
}
-add_action( 'after_setup_theme', 'magazinertwo_theme_updater' );
+add_action( 'after_setup_theme', 'featureon_theme_updater' );
-if ( ! function_exists( 'magazinertwo_load' ) ) {
+if ( ! function_exists( 'featureon_load' ) ) {
- function magazinertwo_load() {
+ function featureon_load() {
// Load theme languages
- load_theme_textdomain( 'magazinertwo', get_template_directory().'/languages' );
+ load_theme_textdomain( 'featureon', get_template_directory().'/languages' );
// Load theme options and meta boxes
include( get_template_directory() . '/functions/theme-options.php' );
@@ -38,7 +38,7 @@ if ( ! function_exists( 'magazinertwo_load' ) ) {
}
}
-add_action( 'after_setup_theme', 'magazinertwo_load' );
+add_action( 'after_setup_theme', 'featureon_load' );
/* ------------------------------------------------------------------------- *
@@ -51,9 +51,9 @@ add_action( 'after_setup_theme', 'magazinertwo_load' );
/* Theme setup
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_setup' ) ) {
+if ( ! function_exists( 'featureon_setup' ) ) {
- function magazinertwo_setup() {
+ function featureon_setup() {
// Enable title tag
add_theme_support( 'title-tag' );
@@ -73,11 +73,11 @@ if ( ! function_exists( 'magazinertwo_setup' ) ) {
add_theme_support( 'woocommerce' );
// Thumbnail sizes
- add_image_size( 'magazinertwo-small', 160, 160, true );
- add_image_size( 'magazinertwo-medium', 520, 293, true );
- add_image_size( 'magazinertwo-large', 720, 405, true );
- add_image_size( 'magazinertwo-huge', 1280, 620, true );
- add_image_size( 'magazinertwo-square', 320, 320, true );
+ add_image_size( 'featureon-small', 160, 160, true );
+ add_image_size( 'featureon-medium', 520, 293, true );
+ add_image_size( 'featureon-large', 720, 405, true );
+ add_image_size( 'featureon-huge', 1280, 620, true );
+ add_image_size( 'featureon-square', 320, 320, true );
// Thumbnail sizes custom widgets
add_image_size( 'alx-small', 160, 160, true );
@@ -85,22 +85,22 @@ if ( ! function_exists( 'magazinertwo_setup' ) ) {
// Custom menu areas
register_nav_menus( array(
- 'mobile' => esc_html__( 'Mobile', 'magazinertwo' ),
- 'topbar' => esc_html__( 'Topbar', 'magazinertwo' ),
- 'header' => esc_html__( 'Header', 'magazinertwo' ),
- 'footer' => esc_html__( 'Footer', 'magazinertwo' ),
+ 'mobile' => esc_html__( 'Mobile', 'featureon' ),
+ 'topbar' => esc_html__( 'Topbar', 'featureon' ),
+ 'header' => esc_html__( 'Header', 'featureon' ),
+ 'footer' => esc_html__( 'Footer', 'featureon' ),
) );
}
}
-add_action( 'after_setup_theme', 'magazinertwo_setup' );
+add_action( 'after_setup_theme', 'featureon_setup' );
/* Custom logo
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_custom_logo' ) ) {
+if ( ! function_exists( 'featureon_custom_logo' ) ) {
- function magazinertwo_custom_logo() {
+ function featureon_custom_logo() {
$defaults = array(
'height' => 120,
'width' => 400,
@@ -112,14 +112,14 @@ if ( ! function_exists( 'magazinertwo_custom_logo' ) ) {
}
}
-add_action( 'after_setup_theme', 'magazinertwo_custom_logo' );
+add_action( 'after_setup_theme', 'featureon_custom_logo' );
/* Custom header
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_custom_header' ) ) {
+if ( ! function_exists( 'featureon_custom_header' ) ) {
- function magazinertwo_custom_header() {
+ function featureon_custom_header() {
$args = array(
'default-image' => false,
'default-text' => false,
@@ -132,90 +132,90 @@ if ( ! function_exists( 'magazinertwo_custom_header' ) ) {
}
}
-add_action( 'after_setup_theme', 'magazinertwo_custom_header' );
+add_action( 'after_setup_theme', 'featureon_custom_header' );
/* Custom background
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_custom_background' ) ) {
+if ( ! function_exists( 'featureon_custom_background' ) ) {
- function magazinertwo_custom_background() {
+ function featureon_custom_background() {
$args = array();
add_theme_support( 'custom-background', $args );
}
}
-add_action( 'after_setup_theme', 'magazinertwo_custom_background' );
+add_action( 'after_setup_theme', 'featureon_custom_background' );
/* Deregister
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_deregister' ) ) {
+if ( ! function_exists( 'featureon_deregister' ) ) {
- function magazinertwo_deregister() {
+ function featureon_deregister() {
wp_deregister_style( 'wp-pagenavi' );
wp_deregister_style( 'social-count-plus' );
}
}
-add_action( 'wp_enqueue_scripts', 'magazinertwo_deregister', 100 );
+add_action( 'wp_enqueue_scripts', 'featureon_deregister', 100 );
/* Register sidebars
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_sidebars' ) ) {
+if ( ! function_exists( 'featureon_sidebars' ) ) {
- function magazinertwo_sidebars() {
- register_sidebar(array( 'name' => esc_html__('Primary','magazinertwo'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' '));
- register_sidebar(array( 'name' => esc_html__('Secondary','magazinertwo'),'id' => 'secondary','description' => esc_html__("Normal full width sidebar","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' '));
+ function featureon_sidebars() {
+ register_sidebar(array( 'name' => esc_html__('Primary','featureon'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' '));
+ register_sidebar(array( 'name' => esc_html__('Secondary','featureon'),'id' => 'secondary','description' => esc_html__("Normal full width sidebar","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' '));
- if ( get_theme_mod('header-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Header Ads','magazinertwo'),'id' => 'header-ads', 'description' => esc_html("Header ads area","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
- if ( get_theme_mod('footer-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Footer Ads',"magazinertwo"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
+ if ( get_theme_mod('header-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Header Ads','featureon'),'id' => 'header-ads', 'description' => esc_html("Header ads area","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
+ if ( get_theme_mod('footer-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Footer Ads',"featureon"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","featureon"), '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','magazinertwo'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','magazinertwo'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','magazinertwo'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','magazinertwo'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','featureon'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","featureon"), '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','featureon'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","featureon"), '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','featureon'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","featureon"), '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','featureon'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
- if ( get_theme_mod('footer-widgets') >= '1' ) { register_sidebar(array( 'name' => esc_html__('Footer 1','magazinertwo'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
- if ( get_theme_mod('footer-widgets') >= '2' ) { register_sidebar(array( 'name' => esc_html__('Footer 2','magazinertwo'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
- if ( get_theme_mod('footer-widgets') >= '3' ) { register_sidebar(array( 'name' => esc_html__('Footer 3','magazinertwo'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
- if ( get_theme_mod('footer-widgets') >= '4' ) { register_sidebar(array( 'name' => esc_html__('Footer 4','magazinertwo'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","magazinertwo"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
+ if ( get_theme_mod('footer-widgets') >= '1' ) { register_sidebar(array( 'name' => esc_html__('Footer 1','featureon'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
+ if ( get_theme_mod('footer-widgets') >= '2' ) { register_sidebar(array( 'name' => esc_html__('Footer 2','featureon'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
+ if ( get_theme_mod('footer-widgets') >= '3' ) { register_sidebar(array( 'name' => esc_html__('Footer 3','featureon'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
+ if ( get_theme_mod('footer-widgets') >= '4' ) { register_sidebar(array( 'name' => esc_html__('Footer 4','featureon'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","featureon"), 'before_widget' => '','after_widget' => '
','before_title' => '','after_title' => ' ')); }
}
}
-add_action( 'widgets_init', 'magazinertwo_sidebars' );
+add_action( 'widgets_init', 'featureon_sidebars' );
/* Enqueue javascript
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_scripts' ) ) {
+if ( ! function_exists( 'featureon_scripts' ) ) {
- function magazinertwo_scripts() {
- wp_enqueue_script( 'magazinertwo-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false );
- wp_enqueue_script( 'magazinertwo-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true );
- wp_enqueue_script( 'magazinertwo-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true );
- wp_enqueue_script( 'magazinertwo-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true );
+ function featureon_scripts() {
+ wp_enqueue_script( 'featureon-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false );
+ wp_enqueue_script( 'featureon-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true );
+ wp_enqueue_script( 'featureon-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true );
+ wp_enqueue_script( 'featureon-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', 'magazinertwo_scripts' );
+add_action( 'wp_enqueue_scripts', 'featureon_scripts' );
/* Enqueue css
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_styles' ) ) {
+if ( ! function_exists( 'featureon_styles' ) ) {
- function magazinertwo_styles() {
- wp_enqueue_style( 'magazinertwo-style', get_stylesheet_uri() );
- if ( get_theme_mod('responsive','on') =='on' ) { wp_enqueue_style( 'magazinertwo-responsive', get_template_directory_uri().'/responsive.css' ); }
- if ( get_theme_mod('dark','off') == 'on' ) { wp_enqueue_style( 'magazinertwo-dark', get_template_directory_uri().'/dark.css' ); }
- wp_enqueue_style( 'magazinertwo-font-awesome', get_template_directory_uri().'/fonts/all.min.css' );
+ function featureon_styles() {
+ wp_enqueue_style( 'featureon-style', get_stylesheet_uri() );
+ if ( get_theme_mod('responsive','on') =='on' ) { wp_enqueue_style( 'featureon-responsive', get_template_directory_uri().'/responsive.css' ); }
+ if ( get_theme_mod('dark','off') == 'on' ) { wp_enqueue_style( 'featureon-dark', get_template_directory_uri().'/dark.css' ); }
+ wp_enqueue_style( 'featureon-font-awesome', get_template_directory_uri().'/fonts/all.min.css' );
}
}
-add_action( 'wp_enqueue_scripts', 'magazinertwo_styles' );
+add_action( 'wp_enqueue_scripts', 'featureon_styles' );
/* ------------------------------------------------------------------------- *
@@ -224,9 +224,9 @@ add_action( 'wp_enqueue_scripts', 'magazinertwo_styles' );
/* Layout class
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_layout_class' ) ) {
+if ( ! function_exists( 'featureon_layout_class' ) ) {
- function magazinertwo_layout_class() {
+ function featureon_layout_class() {
// Default layout
$layout = 'col-3cm';
$default = 'col-3cm';
@@ -266,9 +266,9 @@ if ( ! function_exists( 'magazinertwo_layout_class' ) ) {
/* Dynamic sidebar primary
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_sidebar_primary' ) ) {
+if ( ! function_exists( 'featureon_sidebar_primary' ) ) {
- function magazinertwo_sidebar_primary() {
+ function featureon_sidebar_primary() {
// Default sidebar
$sidebar = 'primary';
@@ -300,9 +300,9 @@ if ( ! function_exists( 'magazinertwo_sidebar_primary' ) ) {
/* Dynamic sidebar secondary
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_sidebar_secondary' ) ) {
+if ( ! function_exists( 'featureon_sidebar_secondary' ) ) {
- function magazinertwo_sidebar_secondary() {
+ function featureon_sidebar_secondary() {
// Default sidebar
$sidebar = 'secondary';
@@ -334,9 +334,9 @@ if ( ! function_exists( 'magazinertwo_sidebar_secondary' ) ) {
/* Social links
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_social_links' ) ) {
+if ( ! function_exists( 'featureon_social_links' ) ) {
- function magazinertwo_social_links() {
+ function featureon_social_links() {
if ( !get_theme_mod('social-links') =='' ) {
$links = get_theme_mod('social-links', array());
if ( !empty( $links ) ) {
@@ -370,9 +370,9 @@ if ( ! function_exists( 'magazinertwo_social_links' ) ) {
/* Site name/logo
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_site_title' ) ) {
+if ( ! function_exists( 'featureon_site_title' ) ) {
- function magazinertwo_site_title() {
+ function featureon_site_title() {
$custom_logo_id = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
@@ -400,9 +400,9 @@ if ( ! function_exists( 'magazinertwo_site_title' ) ) {
/* Blog title
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_blog_title' ) ) {
+if ( ! function_exists( 'featureon_blog_title' ) ) {
- function magazinertwo_blog_title() {
+ function featureon_blog_title() {
global $post;
$heading = esc_html( get_theme_mod('blog-heading') );
$subheading = esc_html( get_theme_mod('blog-subheading') );
@@ -423,9 +423,9 @@ if ( ! function_exists( 'magazinertwo_blog_title' ) ) {
/* Related posts
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_related_posts' ) ) {
+if ( ! function_exists( 'featureon_related_posts' ) ) {
- function magazinertwo_related_posts() {
+ function featureon_related_posts() {
wp_reset_postdata();
global $post;
@@ -474,9 +474,9 @@ if ( ! function_exists( 'magazinertwo_related_posts' ) ) {
/* Get images attached to post
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_post_images' ) ) {
+if ( ! function_exists( 'featureon_post_images' ) ) {
- function magazinertwo_post_images( $args=array() ) {
+ function featureon_post_images( $args=array() ) {
global $post;
$defaults = array(
@@ -498,9 +498,9 @@ if ( ! function_exists( 'magazinertwo_post_images' ) ) {
/* Get featured post ids
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_get_featured_post_ids' ) ) {
+if ( ! function_exists( 'featureon_get_featured_post_ids' ) ) {
- function magazinertwo_get_featured_post_ids() {
+ function featureon_get_featured_post_ids() {
$args = array(
'category' => absint( get_theme_mod('featured-category','') ),
'numberposts' => absint( get_theme_mod('featured-posts-count','5')),
@@ -521,10 +521,10 @@ if ( ! function_exists( 'magazinertwo_get_featured_post_ids' ) ) {
/* Body class
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_body_class' ) ) {
+if ( ! function_exists( 'featureon_body_class' ) ) {
- function magazinertwo_body_class( $classes ) {
- $classes[] = magazinertwo_layout_class();
+ function featureon_body_class( $classes ) {
+ $classes[] = featureon_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'; }
@@ -537,14 +537,14 @@ if ( ! function_exists( 'magazinertwo_body_class' ) ) {
}
}
-add_filter( 'body_class', 'magazinertwo_body_class' );
+add_filter( 'body_class', 'featureon_body_class' );
/* Excerpt ending
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_excerpt_more' ) ) {
+if ( ! function_exists( 'featureon_excerpt_more' ) ) {
- function magazinertwo_excerpt_more( $more ) {
+ function featureon_excerpt_more( $more ) {
if ( is_admin() ) {
return $more;
}
@@ -552,14 +552,14 @@ if ( ! function_exists( 'magazinertwo_excerpt_more' ) ) {
}
}
-add_filter( 'excerpt_more', 'magazinertwo_excerpt_more' );
+add_filter( 'excerpt_more', 'featureon_excerpt_more' );
/* Excerpt length
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_excerpt_length' ) ) {
+if ( ! function_exists( 'featureon_excerpt_length' ) ) {
- function magazinertwo_excerpt_length( $length ) {
+ function featureon_excerpt_length( $length ) {
if ( is_admin() ) {
return $length;
}
@@ -573,14 +573,14 @@ if ( ! function_exists( 'magazinertwo_excerpt_length' ) ) {
}
}
-add_filter( 'excerpt_length', 'magazinertwo_excerpt_length', 999 );
+add_filter( 'excerpt_length', 'featureon_excerpt_length', 999 );
/* Add responsive container to embeds
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_embed_html' ) ) {
+if ( ! function_exists( 'featureon_embed_html' ) ) {
- function magazinertwo_embed_html( $html, $url ) {
+ function featureon_embed_html( $html, $url ) {
$pattern = '/^https?:\/\/(www\.)?twitter\.com/';
$is_twitter = preg_match( $pattern, $url );
@@ -593,19 +593,19 @@ if ( ! function_exists( 'magazinertwo_embed_html' ) ) {
}
}
-add_filter( 'embed_oembed_html', 'magazinertwo_embed_html', 10, 3 );
+add_filter( 'embed_oembed_html', 'featureon_embed_html', 10, 3 );
/* Add responsive container to jetpack embeds
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_embed_html_jp' ) ) {
+if ( ! function_exists( 'featureon_embed_html_jp' ) ) {
- function magazinertwo_embed_html_jp( $html ) {
+ function featureon_embed_html_jp( $html ) {
return '' . $html . '
';
}
}
-add_filter( 'video_embed_html', 'magazinertwo_embed_html_jp' );
+add_filter( 'video_embed_html', 'featureon_embed_html_jp' );
/* ------------------------------------------------------------------------- *
@@ -614,9 +614,9 @@ add_filter( 'video_embed_html', 'magazinertwo_embed_html_jp' );
/* Include or exclude featured articles in loop
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_pre_get_posts' ) ) {
+if ( ! function_exists( 'featureon_pre_get_posts' ) ) {
- function magazinertwo_pre_get_posts( $query ) {
+ function featureon_pre_get_posts( $query ) {
// Are we on main query ?
if ( !$query->is_main_query() ) return;
if ( $query->is_home() ) {
@@ -624,7 +624,7 @@ if ( ! function_exists( 'magazinertwo_pre_get_posts' ) ) {
// Featured posts enabled
if ( get_theme_mod('featured-posts-count','5') != '0' ) {
// Get featured post ids
- $featured_post_ids = magazinertwo_get_featured_post_ids();
+ $featured_post_ids = featureon_get_featured_post_ids();
// Exclude posts
if ( $featured_post_ids && !get_theme_mod('featured-posts-include') )
$query->set('post__not_in', $featured_post_ids);
@@ -633,26 +633,26 @@ if ( ! function_exists( 'magazinertwo_pre_get_posts' ) ) {
}
}
-add_action( 'pre_get_posts', 'magazinertwo_pre_get_posts' );
+add_action( 'pre_get_posts', 'featureon_pre_get_posts' );
/* Script for no-js / js class
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_html_js_class' ) ) {
+if ( ! function_exists( 'featureon_html_js_class' ) ) {
- function magazinertwo_html_js_class () {
+ function featureon_html_js_class () {
echo ''. "\n";
}
}
-add_action( 'wp_head', 'magazinertwo_html_js_class', 1 );
+add_action( 'wp_head', 'featureon_html_js_class', 1 );
/* Admin panel css
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_admin_panel_css' ) ) {
+if ( ! function_exists( 'featureon_admin_panel_css' ) ) {
- function magazinertwo_admin_panel_css() {
+ function featureon_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.', 'magazinertwo' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'magazinertwo' ), 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.', 'featureon' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'featureon' ), 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.', 'magazinertwo' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'magazinertwo' ), 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.', 'featureon' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'featureon' ), 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', 'magazinertwo' ) . ' ' . $last_plugin );
+ $imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'featureon' ) . ' ' . $last_plugin );
$rendered .= sprintf(
$line_template,
sprintf(
- translate_nooped_plural( $this->strings[ $type ], $count, 'magazinertwo' ),
+ translate_nooped_plural( $this->strings[ $type ], $count, 'featureon' ),
$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, 'magazinertwo' ),
+ translate_nooped_plural( $this->strings['install_link'], $install_count, 'featureon' ),
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, 'magazinertwo' ),
+ translate_nooped_plural( $this->strings['update_link'], $update_count, 'featureon' ),
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, 'magazinertwo' ),
+ translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'featureon' ),
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', 'magazinertwo' ),
+ __( 'TGMPA v%s', 'featureon' ),
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', 'magazinertwo' );
+ return __( 'Required', 'featureon' );
}
- return __( 'Recommended', 'magazinertwo' );
+ return __( 'Recommended', 'featureon' );
}
/**
@@ -2289,13 +2289,13 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
switch ( $type ) {
case 'repo':
- $string = __( 'WordPress Repository', 'magazinertwo' );
+ $string = __( 'WordPress Repository', 'featureon' );
break;
case 'external':
- $string = __( 'External Source', 'magazinertwo' );
+ $string = __( 'External Source', 'featureon' );
break;
case 'bundled':
- $string = __( 'Pre-Packaged', 'magazinertwo' );
+ $string = __( 'Pre-Packaged', 'featureon' );
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', 'magazinertwo' );
+ return __( 'Not Installed', 'featureon' );
}
if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
- $install_status = __( 'Installed But Not Activated', 'magazinertwo' );
+ $install_status = __( 'Installed But Not Activated', 'featureon' );
} else {
- $install_status = __( 'Active', 'magazinertwo' );
+ $install_status = __( 'Active', 'featureon' );
}
$update_status = '';
if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
- $update_status = __( 'Required Update not Available', 'magazinertwo' );
+ $update_status = __( 'Required Update not Available', 'featureon' );
} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
- $update_status = __( 'Requires Update', 'magazinertwo' );
+ $update_status = __( 'Requires Update', 'featureon' );
} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
- $update_status = __( 'Update recommended', 'magazinertwo' );
+ $update_status = __( 'Update recommended', 'featureon' );
}
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', 'magazinertwo' ),
+ _x( '%1$s, %2$s', 'Install/Update Status', 'featureon' ),
$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', 'magazinertwo' );
+ $text = _nx( 'All (%s) ', 'All (%s) ', $count, 'plugins', 'featureon' );
break;
case 'install':
/* translators: 1: number of plugins. */
- $text = _n( 'To Install (%s) ', 'To Install (%s) ', $count, 'magazinertwo' );
+ $text = _n( 'To Install (%s) ', 'To Install (%s) ', $count, 'featureon' );
break;
case 'update':
/* translators: 1: number of plugins. */
- $text = _n( 'Update Available (%s) ', 'Update Available (%s) ', $count, 'magazinertwo' );
+ $text = _n( 'Update Available (%s) ', 'Update Available (%s) ', $count, 'featureon' );
break;
case 'activate':
/* translators: 1: number of plugins. */
- $text = _n( 'To Activate (%s) ', 'To Activate (%s) ', $count, 'magazinertwo' );
+ $text = _n( 'To Activate (%s) ', 'To Activate (%s) ', $count, 'featureon' );
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"', 'magazinertwo' );
+ $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'featureon' );
$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:', 'magazinertwo' ) . '
',
+ '%2$s ' . __( 'Installed version:', 'featureon' ) . '
',
$color,
$installed
);
@@ -2495,7 +2495,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
if ( ! empty( $item['minimum_version'] ) ) {
$output[] = sprintf(
- '%1$s ' . __( 'Minimum required version:', 'magazinertwo' ) . '
',
+ '%1$s ' . __( 'Minimum required version:', 'featureon' ) . '
',
$item['minimum_version']
);
}
@@ -2507,7 +2507,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
}
$output[] = sprintf(
- '%2$s ' . __( 'Available version:', 'magazinertwo' ) . '
',
+ '%2$s ' . __( 'Available version:', 'featureon' ) . '
',
$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.', 'magazinertwo' ) . ' ' . esc_html__( 'Return to the Dashboard', 'magazinertwo' ) . ' ';
+ echo esc_html__( 'No plugins to install, update or activate.', 'featureon' ) . '
' . esc_html__( 'Return to the Dashboard', 'featureon' ) . ' ';
echo '';
}
@@ -2544,14 +2544,14 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
public function get_columns() {
$columns = array(
'cb' => '
',
- 'plugin' => __( 'Plugin', 'magazinertwo' ),
- 'source' => __( 'Source', 'magazinertwo' ),
- 'type' => __( 'Type', 'magazinertwo' ),
+ 'plugin' => __( 'Plugin', 'featureon' ),
+ 'source' => __( 'Source', 'featureon' ),
+ 'type' => __( 'Type', 'featureon' ),
);
if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
- $columns['version'] = __( 'Version', 'magazinertwo' );
- $columns['status'] = __( 'Status', 'magazinertwo' );
+ $columns['version'] = __( 'Version', 'featureon' );
+ $columns['status'] = __( 'Status', 'featureon' );
}
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', 'magazinertwo' );
+ $actions['install'] = __( 'Install %2$s', 'featureon' );
} 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', 'magazinertwo' );
+ $actions['update'] = __( 'Update %2$s', 'featureon' );
}
// 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', 'magazinertwo' );
+ $actions['activate'] = __( 'Activate %2$s', 'featureon' );
}
}
@@ -2681,7 +2681,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
',
- esc_html__( 'Upgrade message from the plugin author:', 'magazinertwo' ),
+ esc_html__( 'Upgrade message from the plugin author:', 'featureon' ),
' ', 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', 'magazinertwo' );
+ $actions['tgmpa-bulk-install'] = __( 'Install', 'featureon' );
}
}
if ( 'install' !== $this->view_context ) {
if ( current_user_can( 'update_plugins' ) ) {
- $actions['tgmpa-bulk-update'] = __( 'Update', 'magazinertwo' );
+ $actions['tgmpa-bulk-update'] = __( 'Update', 'featureon' );
}
if ( current_user_can( 'activate_plugins' ) ) {
- $actions['tgmpa-bulk-activate'] = __( 'Activate', 'magazinertwo' );
+ $actions['tgmpa-bulk-activate'] = __( 'Activate', 'featureon' );
}
}
@@ -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.', 'magazinertwo' );
+ $message = __( 'No plugins were selected to be installed. No action taken.', 'featureon' );
} else {
- $message = __( 'No plugins were selected to be updated. No action taken.', 'magazinertwo' );
+ $message = __( 'No plugins were selected to be updated. No action taken.', 'featureon' );
}
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.', 'magazinertwo' );
+ $message = __( 'No plugins are available to be installed at this time.', 'featureon' );
} else {
- $message = __( 'No plugins are available to be updated at this time.', 'magazinertwo' );
+ $message = __( 'No plugins are available to be updated at this time.', 'featureon' );
}
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.', 'magazinertwo' ), '
';
+ echo '', esc_html__( 'No plugins were selected to be activated. No action taken.', 'featureon' ), '
';
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.', 'magazinertwo' ), '
';
+ echo '', esc_html__( 'No plugins are available to be activated at this time.', 'featureon' ), '
';
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', 'magazinertwo' ) . ' ' . $last_plugin );
+ $imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'featureon' ) . ' ' . $last_plugin );
printf( // WPCS: xss ok.
'',
- esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'magazinertwo' ) ),
+ esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'featureon' ) ),
$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.', 'magazinertwo' );
- $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'magazinertwo' );
+ $this->strings['activation_failed'] = __( 'Plugin activation failed.', 'featureon' );
+ $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'featureon' );
}
/**
@@ -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)', 'magazinertwo' );
+ $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'featureon' );
} else {
/* translators: 1: plugin name, 2: error message. */
- $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: %2$s .', 'magazinertwo' );
+ $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: %2$s .', 'featureon' );
/* translators: 1: plugin name. */
- $this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'magazinertwo' );
+ $this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'featureon' );
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.', 'magazinertwo' );
+ $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.', 'featureon' );
/* translators: 1: plugin name. */
- $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'magazinertwo' ) . ' ' . esc_html__( 'Show Details', 'magazinertwo' ) . ' ' . esc_html__( 'Hide Details', 'magazinertwo' ) . ' . ';
- $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'magazinertwo' );
+ $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'featureon' ) . ' ' . esc_html__( 'Show Details', 'featureon' ) . ' ' . esc_html__( 'Hide Details', 'featureon' ) . ' . ';
+ $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'featureon' );
/* 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)', 'magazinertwo' );
+ $this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'featureon' );
} 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.', 'magazinertwo' );
+ $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'featureon' );
/* translators: 1: plugin name. */
- $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'magazinertwo' ) . ' ' . esc_html__( 'Show Details', 'magazinertwo' ) . ' ' . esc_html__( 'Hide Details', 'magazinertwo' ) . ' . ';
- $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'magazinertwo' );
+ $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'featureon' ) . ' ' . esc_html__( 'Show Details', 'featureon' ) . ' ' . esc_html__( 'Hide Details', 'featureon' ) . ' . ';
+ $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'featureon' );
/* 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)', 'magazinertwo' );
+ $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'featureon' );
}
}
}
@@ -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', 'magazinertwo' ) . ' '
+ '' . esc_html__( 'Return to the Dashboard', 'featureon' ) . ' '
);
} else {
$update_actions['tgmpa_page'] = '' . esc_html( $this->tgmpa->strings['return'] ) . ' ';
diff --git a/functions/dynamic-styles.php b/functions/dynamic-styles.php
index f8f13a2..37250e0 100644
--- a/functions/dynamic-styles.php
+++ b/functions/dynamic-styles.php
@@ -5,9 +5,9 @@
/* Convert hexadecimal to rgb
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_hex2rgb' ) ) {
+if ( ! function_exists( 'featureon_hex2rgb' ) ) {
- function magazinertwo_hex2rgb( $hex, $array=false ) {
+ function featureon_hex2rgb( $hex, $array=false ) {
$hex = str_replace("#", "", $hex);
if ( strlen($hex) == 3 ) {
@@ -30,9 +30,9 @@ if ( ! function_exists( 'magazinertwo_hex2rgb' ) ) {
/* Google fonts
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_enqueue_google_fonts' ) ) {
+if ( ! function_exists( 'featureon_enqueue_google_fonts' ) ) {
- function magazinertwo_enqueue_google_fonts () {
+ function featureon_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( 'magazinertwo_enqueue_google_fonts' ) ) {
}
}
-add_action( 'wp_enqueue_scripts', 'magazinertwo_enqueue_google_fonts' );
+add_action( 'wp_enqueue_scripts', 'featureon_enqueue_google_fonts' );
/* Dynamic css output
/* ------------------------------------ */
-if ( ! function_exists( 'magazinertwo_dynamic_css' ) ) {
+if ( ! function_exists( 'featureon_dynamic_css' ) ) {
- function magazinertwo_dynamic_css() {
+ function featureon_dynamic_css() {
if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) {
// rgb values
$color_1 = get_theme_mod('color-1');
- $color_1_rgb = magazinertwo_hex2rgb($color_1);
+ $color_1_rgb = featureon_hex2rgb($color_1);
// start output
$styles = '';
@@ -310,9 +310,9 @@ box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); }
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( 'magazinertwo-style', $styles );
+ wp_add_inline_style( 'featureon-style', $styles );
}
}
}
-add_action( 'wp_enqueue_scripts', 'magazinertwo_dynamic_css' );
+add_action( 'wp_enqueue_scripts', 'featureon_dynamic_css' );
diff --git a/functions/meta-boxes.php b/functions/meta-boxes.php
index 8781105..f4159e3 100644
--- a/functions/meta-boxes.php
+++ b/functions/meta-boxes.php
@@ -1,5 +1,5 @@
'page-options',
- 'title' => esc_html__( 'Page Options', 'magazinertwo' ),
+ 'title' => esc_html__( 'Page Options', 'featureon' ),
'post_types' => array( 'page' ),
'context' => 'advanced',
'priority' => 'high',
@@ -26,22 +26,22 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
'fields' => array(
array(
'id' => $prefix . 'sidebar_primary',
- 'name' => esc_html__( 'Primary Sidebar', 'magazinertwo' ),
+ 'name' => esc_html__( 'Primary Sidebar', 'featureon' ),
'type' => 'select',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
'options' => $sidebars_choices,
),
array(
'id' => $prefix . 'sidebar_secondary',
- 'name' => esc_html__( 'Secondary Sidebar', 'magazinertwo' ),
+ 'name' => esc_html__( 'Secondary Sidebar', 'featureon' ),
'type' => 'select',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
'options' => $sidebars_choices,
),
array(
'id' => $prefix . 'layout',
'type' => 'image_select',
- 'name' => esc_html__( 'Layout', 'magazinertwo' ),
+ 'name' => esc_html__( 'Layout', 'featureon' ),
'std' => 'inherit',
'force_delete' => false,
'max_file_uploads' => '4',
@@ -62,7 +62,7 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
/* ------------------------------------ */
$meta_boxes[] = array(
'id' => 'post-options',
- 'title' => esc_html__( 'Post Options', 'magazinertwo' ),
+ 'title' => esc_html__( 'Post Options', 'featureon' ),
'post_types' => array( 'post' ),
'context' => 'advanced',
'priority' => 'high',
@@ -70,22 +70,22 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
'fields' => array(
array(
'id' => $prefix . 'sidebar_primary',
- 'name' => esc_html__( 'Primary Sidebar', 'magazinertwo' ),
+ 'name' => esc_html__( 'Primary Sidebar', 'featureon' ),
'type' => 'select',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
'options' => $sidebars_choices,
),
array(
'id' => $prefix . 'sidebar_secondary',
- 'name' => esc_html__( 'Secondary Sidebar', 'magazinertwo' ),
+ 'name' => esc_html__( 'Secondary Sidebar', 'featureon' ),
'type' => 'select',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
'options' => $sidebars_choices,
),
array(
'id' => $prefix . 'layout',
'type' => 'image_select',
- 'name' => esc_html__( 'Layout', 'magazinertwo' ),
+ 'name' => esc_html__( 'Layout', 'featureon' ),
'std' => 'inherit',
'force_delete' => false,
'max_file_uploads' => '4',
@@ -105,4 +105,4 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
return $meta_boxes;
}
-add_filter( 'rwmb_meta_boxes', 'magazinertwo_get_meta_box' );
\ No newline at end of file
+add_filter( 'rwmb_meta_boxes', 'featureon_get_meta_box' );
\ No newline at end of file
diff --git a/functions/theme-options.php b/functions/theme-options.php
index 96cbe43..d050f98 100644
--- a/functions/theme-options.php
+++ b/functions/theme-options.php
@@ -5,7 +5,7 @@ if ( ! class_exists( 'Kirki' ) ) {
/* Add Config
/* ------------------------------------ */
-Kirki::add_config( 'magazinertwo', array(
+Kirki::add_config( 'featureon', array(
'capability' => 'edit_theme_options',
'option_type' => 'theme_mod',
) );
@@ -14,49 +14,49 @@ Kirki::add_config( 'magazinertwo', array(
/* ------------------------------------ */
Kirki::add_panel( 'options', array(
'priority' => 10,
- 'title' => esc_html__( 'Theme Options', 'magazinertwo' ),
+ 'title' => esc_html__( 'Theme Options', 'featureon' ),
) );
/* Add Sections
/* ------------------------------------ */
Kirki::add_section( 'general', array(
'priority' => 10,
- 'title' => esc_html__( 'General', 'magazinertwo' ),
+ 'title' => esc_html__( 'General', 'featureon' ),
'panel' => 'options',
) );
Kirki::add_section( 'blog', array(
'priority' => 20,
- 'title' => esc_html__( 'Blog', 'magazinertwo' ),
+ 'title' => esc_html__( 'Blog', 'featureon' ),
'panel' => 'options',
) );
Kirki::add_section( 'header', array(
'priority' => 30,
- 'title' => esc_html__( 'Header', 'magazinertwo' ),
+ 'title' => esc_html__( 'Header', 'featureon' ),
'panel' => 'options',
) );
Kirki::add_section( 'footer', array(
'priority' => 40,
- 'title' => esc_html__( 'Footer', 'magazinertwo' ),
+ 'title' => esc_html__( 'Footer', 'featureon' ),
'panel' => 'options',
) );
Kirki::add_section( 'layout', array(
'priority' => 50,
- 'title' => esc_html__( 'Layout', 'magazinertwo' ),
+ 'title' => esc_html__( 'Layout', 'featureon' ),
'panel' => 'options',
) );
Kirki::add_section( 'sidebars', array(
'priority' => 60,
- 'title' => esc_html__( 'Sidebars', 'magazinertwo' ),
+ 'title' => esc_html__( 'Sidebars', 'featureon' ),
'panel' => 'options',
) );
Kirki::add_section( 'social', array(
'priority' => 70,
- 'title' => esc_html__( 'Social Links', 'magazinertwo' ),
+ 'title' => esc_html__( 'Social Links', 'featureon' ),
'panel' => 'options',
) );
Kirki::add_section( 'styling', array(
'priority' => 80,
- 'title' => esc_html__( 'Styling', 'magazinertwo' ),
+ 'title' => esc_html__( 'Styling', 'featureon' ),
'panel' => 'options',
) );
@@ -64,93 +64,93 @@ Kirki::add_section( 'styling', array(
/* ------------------------------------ */
// General: Responsive Layout
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'responsive',
- 'label' => esc_html__( 'Responsive Layout', 'magazinertwo' ),
- 'description' => esc_html__( 'Mobile and tablet optimizations (responsive.css)', 'magazinertwo' ),
+ 'label' => esc_html__( 'Responsive Layout', 'featureon' ),
+ 'description' => esc_html__( 'Mobile and tablet optimizations (responsive.css)', 'featureon' ),
'section' => 'general',
'default' => 'on',
) );
// General: Mobile Sidebar
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio',
'settings' => 'mobile-sidebar-hide',
- 'label' => esc_html__( 'Mobile Sidebar Content', 'magazinertwo' ),
- 'description' => esc_html__( 'Hide sidebar content on low-resolution mobile devices (320px)', 'magazinertwo' ),
+ 'label' => esc_html__( 'Mobile Sidebar Content', 'featureon' ),
+ 'description' => esc_html__( 'Hide sidebar content on low-resolution mobile devices (320px)', 'featureon' ),
'section' => 'general',
'default' => '1',
'choices' => array(
- '1' => esc_html__( 'Show sidebars', 'magazinertwo' ),
- 's1' => esc_html__( 'Hide primary sidebar', 'magazinertwo' ),
- 's2' => esc_html__( 'Hide secondary sidebar', 'magazinertwo' ),
- 's1-s2' => esc_html__( 'Hide both sidebars', 'magazinertwo' ),
+ '1' => esc_html__( 'Show sidebars', 'featureon' ),
+ 's1' => esc_html__( 'Hide primary sidebar', 'featureon' ),
+ 's2' => esc_html__( 'Hide secondary sidebar', 'featureon' ),
+ 's1-s2' => esc_html__( 'Hide both sidebars', 'featureon' ),
),
) );
// General: Post Comments
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'post-comments',
- 'label' => esc_html__( 'Post Comments', 'magazinertwo' ),
- 'description' => esc_html__( 'Comments on posts', 'magazinertwo' ),
+ 'label' => esc_html__( 'Post Comments', 'featureon' ),
+ 'description' => esc_html__( 'Comments on posts', 'featureon' ),
'section' => 'general',
'default' => 'on',
) );
// General: Page Comments
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'page-comments',
- 'label' => esc_html__( 'Page Comments', 'magazinertwo' ),
- 'description' => esc_html__( 'Comments on pages', 'magazinertwo' ),
+ 'label' => esc_html__( 'Page Comments', 'featureon' ),
+ 'description' => esc_html__( 'Comments on pages', 'featureon' ),
'section' => 'general',
'default' => 'off',
) );
// General: Recommended Plugins
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'recommended-plugins',
- 'label' => esc_html__( 'Recommended Plugins', 'magazinertwo' ),
- 'description' => esc_html__( 'Enable or disable the recommended plugins notice', 'magazinertwo' ),
+ 'label' => esc_html__( 'Recommended Plugins', 'featureon' ),
+ 'description' => esc_html__( 'Enable or disable the recommended plugins notice', 'featureon' ),
'section' => 'general',
'default' => 'on',
) );
// Blog: Blog Layout
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio',
'settings' => 'blog-layout',
- 'label' => esc_html__( 'Blog Layout', 'magazinertwo' ),
+ 'label' => esc_html__( 'Blog Layout', 'featureon' ),
'section' => 'blog',
'default' => 'blog-standard',
'choices' => array(
- 'blog-standard' => esc_html__( 'Standard', 'magazinertwo' ),
- 'blog-grid' => esc_html__( 'Grid', 'magazinertwo' ),
- 'blog-list' => esc_html__( 'List', 'magazinertwo' ),
+ 'blog-standard' => esc_html__( 'Standard', 'featureon' ),
+ 'blog-grid' => esc_html__( 'Grid', 'featureon' ),
+ 'blog-list' => esc_html__( 'List', 'featureon' ),
),
) );
// Blog: Heading
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'text',
'settings' => 'blog-heading',
- 'label' => esc_html__( 'Heading', 'magazinertwo' ),
- 'description' => esc_html__( 'Your blog heading', 'magazinertwo' ),
+ 'label' => esc_html__( 'Heading', 'featureon' ),
+ 'description' => esc_html__( 'Your blog heading', 'featureon' ),
'section' => 'blog',
'default' => '',
) );
// Blog: Subheading
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'text',
'settings' => 'blog-subheading',
- 'label' => esc_html__( 'Subheading', 'magazinertwo' ),
- 'description' => esc_html__( 'Your blog subheading', 'magazinertwo' ),
+ 'label' => esc_html__( 'Subheading', 'featureon' ),
+ 'description' => esc_html__( 'Your blog subheading', 'featureon' ),
'section' => 'blog',
'default' => '',
) );
// Blog: Featured Post Count (Home)
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'featured-posts-count',
- 'label' => esc_html__( 'Featured Post Count (Home)', 'magazinertwo' ),
- 'description' => esc_html__( 'Max number of featured posts to display on the homepage. Set it to 0 to disable.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Featured Post Count (Home)', 'featureon' ),
+ 'description' => esc_html__( 'Max number of featured posts to display on the homepage. Set it to 0 to disable.', 'featureon' ),
'section' => 'blog',
'default' => '5',
'choices' => array(
@@ -160,11 +160,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Blog: Featured Post Count (Category)
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'featured-posts-count-category',
- 'label' => esc_html__( 'Featured Post Count (Category)', 'magazinertwo' ),
- 'description' => esc_html__( 'Max number of featured posts to display on category pages. Set it to 0 to disable.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Featured Post Count (Category)', 'featureon' ),
+ 'description' => esc_html__( 'Max number of featured posts to display on category pages. Set it to 0 to disable.', 'featureon' ),
'section' => 'blog',
'default' => '5',
'choices' => array(
@@ -174,31 +174,31 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Blog: Featured Category
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 'featured-category',
- 'label' => esc_html__( 'Featured Category', 'magazinertwo' ),
- 'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'magazinertwo' ),
+ 'label' => esc_html__( 'Featured Category', 'featureon' ),
+ 'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'featureon' ),
'section' => 'blog',
'default' => '',
'choices' => Kirki_Helper::get_terms( 'category' ),
- 'placeholder' => esc_html__( 'Select a category', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a category', 'featureon' ),
) );
// Blog: Featured Posts Include
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'checkbox',
'settings' => 'featured-posts-include',
- 'label' => esc_html__( 'Featured Posts', 'magazinertwo' ),
- 'description' => esc_html__( 'To show featured posts in the slider AND the content below. Usually not recommended.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Featured Posts', 'featureon' ),
+ 'description' => esc_html__( 'To show featured posts in the slider AND the content below. Usually not recommended.', 'featureon' ),
'section' => 'blog',
'default' => false,
) );
// Blog: Highlights Category Count
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'highlight-posts-count',
- 'label' => esc_html__( 'Highlight Post Count', 'magazinertwo' ),
- 'description' => esc_html__( 'Max number of highlight posts to display. Set it to 0 to disable.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Highlight Post Count', 'featureon' ),
+ 'description' => esc_html__( 'Max number of highlight posts to display. Set it to 0 to disable.', 'featureon' ),
'section' => 'blog',
'default' => '7',
'choices' => array(
@@ -208,49 +208,49 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Blog: Highlights Category
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 'highlight-category',
- 'label' => esc_html__( 'Highlights Category', 'magazinertwo' ),
- 'description' => esc_html__( 'The 3 latest posts', 'magazinertwo' ),
+ 'label' => esc_html__( 'Highlights Category', 'featureon' ),
+ 'description' => esc_html__( 'The 3 latest posts', 'featureon' ),
'section' => 'blog',
'default' => '',
'choices' => Kirki_Helper::get_terms( 'category' ),
- 'placeholder' => esc_html__( 'Select a category', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a category', 'featureon' ),
) );
// Blog: Frontpage Widgets Top
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'frontpage-widgets-top',
- 'label' => esc_html__( 'Frontpage Widgets Top', 'magazinertwo' ),
- 'description' => esc_html__( '2 columns of widgets', 'magazinertwo' ),
+ 'label' => esc_html__( 'Frontpage Widgets Top', 'featureon' ),
+ 'description' => esc_html__( '2 columns of widgets', 'featureon' ),
'section' => 'blog',
'default' => 'off',
) );
// Blog: Frontpage Widgets Bottom
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'frontpage-widgets-bottom',
- 'label' => esc_html__( 'Frontpage Widgets Bottom', 'magazinertwo' ),
- 'description' => esc_html__( '2 columns of widgets', 'magazinertwo' ),
+ 'label' => esc_html__( 'Frontpage Widgets Bottom', 'featureon' ),
+ 'description' => esc_html__( '2 columns of widgets', 'featureon' ),
'section' => 'blog',
'default' => 'off',
) );
// Blog: Thumbnail Comment Count
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'comment-count',
- 'label' => esc_html__( 'Thumbnail Comment Count', 'magazinertwo' ),
- 'description' => esc_html__( 'Comment count on thumbnails', 'magazinertwo' ),
+ 'label' => esc_html__( 'Thumbnail Comment Count', 'featureon' ),
+ 'description' => esc_html__( 'Comment count on thumbnails', 'featureon' ),
'section' => 'blog',
'default' => 'on',
) );
// Blog: Excerpt Length
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'excerpt-length',
- 'label' => esc_html__( 'Excerpt Length', 'magazinertwo' ),
- 'description' => esc_html__( 'Max number of words. Set it to 0 to disable.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Excerpt Length', 'featureon' ),
+ 'description' => esc_html__( 'Max number of words. Set it to 0 to disable.', 'featureon' ),
'section' => 'blog',
'default' => '26',
'choices' => array(
@@ -260,85 +260,85 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Blog: Single - Authorbox
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'author-bio',
- 'label' => esc_html__( 'Single - Author Bio', 'magazinertwo' ),
- 'description' => esc_html__( 'Shows post author description, if it exists', 'magazinertwo' ),
+ 'label' => esc_html__( 'Single - Author Bio', 'featureon' ),
+ 'description' => esc_html__( 'Shows post author description, if it exists', 'featureon' ),
'section' => 'blog',
'default' => 'on',
) );
// Blog: Single - Related Posts
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio',
'settings' => 'related-posts',
- 'label' => esc_html__( 'Single - Related Posts', 'magazinertwo' ),
- 'description' => esc_html__( 'Shows randomized related articles below the post', 'magazinertwo' ),
+ 'label' => esc_html__( 'Single - Related Posts', 'featureon' ),
+ 'description' => esc_html__( 'Shows randomized related articles below the post', 'featureon' ),
'section' => 'blog',
'default' => 'categories',
'choices' => array(
- 'disable' => esc_html__( 'Disable', 'magazinertwo' ),
- 'categories'=> esc_html__( 'Related by categories', 'magazinertwo' ),
- 'tags' => esc_html__( 'Related by tags', 'magazinertwo' ),
+ 'disable' => esc_html__( 'Disable', 'featureon' ),
+ 'categories'=> esc_html__( 'Related by categories', 'featureon' ),
+ 'tags' => esc_html__( 'Related by tags', 'featureon' ),
),
) );
// Blog: Single - Post Navigation
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio',
'settings' => 'post-nav',
- 'label' => esc_html__( 'Single - Post Navigation', 'magazinertwo' ),
- 'description' => esc_html__( 'Shows links to the next and previous article', 'magazinertwo' ),
+ 'label' => esc_html__( 'Single - Post Navigation', 'featureon' ),
+ 'description' => esc_html__( 'Shows links to the next and previous article', 'featureon' ),
'section' => 'blog',
'default' => 's1',
'choices' => array(
- 'disable' => esc_html__( 'Disable', 'magazinertwo' ),
- 's1' => esc_html__( 'Sidebar Primary', 'magazinertwo' ),
- 's2' => esc_html__( 'Sidebar Secondary', 'magazinertwo' ),
- 'content' => esc_html__( 'Below content', 'magazinertwo' ),
+ 'disable' => esc_html__( 'Disable', 'featureon' ),
+ 's1' => esc_html__( 'Sidebar Primary', 'featureon' ),
+ 's2' => esc_html__( 'Sidebar Secondary', 'featureon' ),
+ 'content' => esc_html__( 'Below content', 'featureon' ),
),
) );
// Header: Ads
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'header-ads',
- 'label' => esc_html__( 'Header Ads', 'magazinertwo' ),
- 'description' => esc_html__( 'Header widget ads area', 'magazinertwo' ),
+ 'label' => esc_html__( 'Header Ads', 'featureon' ),
+ 'description' => esc_html__( 'Header widget ads area', 'featureon' ),
'section' => 'header',
'default' => 'off',
) );
// Header: Search
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'header-search',
- 'label' => esc_html__( 'Header Search', 'magazinertwo' ),
- 'description' => esc_html__( 'Header search button', 'magazinertwo' ),
+ 'label' => esc_html__( 'Header Search', 'featureon' ),
+ 'description' => esc_html__( 'Header search button', 'featureon' ),
'section' => 'header',
'default' => 'on',
) );
// Header: Social Links
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'header-social',
- 'label' => esc_html__( 'Header Social Links', 'magazinertwo' ),
- 'description' => esc_html__( 'Social link icon buttons', 'magazinertwo' ),
+ 'label' => esc_html__( 'Header Social Links', 'featureon' ),
+ 'description' => esc_html__( 'Social link icon buttons', 'featureon' ),
'section' => 'header',
'default' => 'on',
) );
// Footer: Ads
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'footer-ads',
- 'label' => esc_html__( 'Footer Ads', 'magazinertwo' ),
- 'description' => esc_html__( 'Footer widget ads area', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Ads', 'featureon' ),
+ 'description' => esc_html__( 'Footer widget ads area', 'featureon' ),
'section' => 'footer',
'default' => 'off',
) );
// Footer: Widget Columns
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'footer-widgets',
- 'label' => esc_html__( 'Footer Widget Columns', 'magazinertwo' ),
- 'description' => esc_html__( 'Select columns to enable footer widgets. Recommended number: 3', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Widget Columns', 'featureon' ),
+ 'description' => esc_html__( 'Select columns to enable footer widgets. Recommended number: 3', 'featureon' ),
'section' => 'footer',
'default' => '0',
'choices' => array(
@@ -350,47 +350,47 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Footer: Social Links
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'footer-social',
- 'label' => esc_html__( 'Footer Social Links', 'magazinertwo' ),
- 'description' => esc_html__( 'Social link icon buttons', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Social Links', 'featureon' ),
+ 'description' => esc_html__( 'Social link icon buttons', 'featureon' ),
'section' => 'footer',
'default' => 'on',
) );
// Footer: Custom Logo
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'image',
'settings' => 'footer-logo',
- 'label' => esc_html__( 'Footer Logo', 'magazinertwo' ),
- 'description' => esc_html__( 'Upload your custom logo image', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Logo', 'featureon' ),
+ 'description' => esc_html__( 'Upload your custom logo image', 'featureon' ),
'section' => 'footer',
'default' => '',
) );
// Footer: Copyright
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'text',
'settings' => 'copyright',
- 'label' => esc_html__( 'Footer Copyright', 'magazinertwo' ),
- 'description' => esc_html__( 'Replace the footer copyright text', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Copyright', 'featureon' ),
+ 'description' => esc_html__( 'Replace the footer copyright text', 'featureon' ),
'section' => 'footer',
'default' => '',
) );
// Footer: Credit
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'credit',
- 'label' => esc_html__( 'Footer Credit', 'magazinertwo' ),
- 'description' => esc_html__( 'Footer credit text', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Credit', 'featureon' ),
+ 'description' => esc_html__( 'Footer credit text', 'featureon' ),
'section' => 'footer',
'default' => 'on',
) );
// Layout: Global
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-global',
- 'label' => esc_html__( 'Global Layout', 'magazinertwo' ),
- 'description' => esc_html__( 'Other layouts will override this option if they are set', 'magazinertwo' ),
+ 'label' => esc_html__( 'Global Layout', 'featureon' ),
+ 'description' => esc_html__( 'Other layouts will override this option if they are set', 'featureon' ),
'section' => 'layout',
'default' => 'col-3cm',
'choices' => array(
@@ -403,11 +403,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Layout: Home
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-home',
- 'label' => esc_html__( 'Home', 'magazinertwo' ),
- 'description' => esc_html__( '(is_home) Posts homepage layout', 'magazinertwo' ),
+ 'label' => esc_html__( 'Home', 'featureon' ),
+ 'description' => esc_html__( '(is_home) Posts homepage layout', 'featureon' ),
'section' => 'layout',
'default' => 'inherit',
'choices' => array(
@@ -421,11 +421,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Layout: Single
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-single',
- 'label' => esc_html__( 'Single', 'magazinertwo' ),
- 'description' => esc_html__( '(is_single) Single post layout - If a post has a set layout, it will override this.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Single', 'featureon' ),
+ 'description' => esc_html__( '(is_single) Single post layout - If a post has a set layout, it will override this.', 'featureon' ),
'section' => 'layout',
'default' => 'inherit',
'choices' => array(
@@ -439,11 +439,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Layout: Archive
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-archive',
- 'label' => esc_html__( 'Archive', 'magazinertwo' ),
- 'description' => esc_html__( '(is_archive) Category, date, tag and author archive layout', 'magazinertwo' ),
+ 'label' => esc_html__( 'Archive', 'featureon' ),
+ 'description' => esc_html__( '(is_archive) Category, date, tag and author archive layout', 'featureon' ),
'section' => 'layout',
'default' => 'inherit',
'choices' => array(
@@ -457,11 +457,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Layout : Archive - Category
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-archive-category',
- 'label' => esc_html__( 'Archive - Category', 'magazinertwo' ),
- 'description' => esc_html__( '(is_category) Category archive layout', 'magazinertwo' ),
+ 'label' => esc_html__( 'Archive - Category', 'featureon' ),
+ 'description' => esc_html__( '(is_category) Category archive layout', 'featureon' ),
'section' => 'layout',
'default' => 'inherit',
'choices' => array(
@@ -475,11 +475,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Layout: Search
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-search',
- 'label' => esc_html__( 'Search', 'magazinertwo' ),
- 'description' => esc_html__( '(is_search) Search page layout', 'magazinertwo' ),
+ 'label' => esc_html__( 'Search', 'featureon' ),
+ 'description' => esc_html__( '(is_search) Search page layout', 'featureon' ),
'section' => 'layout',
'default' => 'inherit',
'choices' => array(
@@ -493,11 +493,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Layout: Error 404
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-404',
- 'label' => esc_html__( 'Error 404', 'magazinertwo' ),
- 'description' => esc_html__( '(is_404) Error 404 page layout', 'magazinertwo' ),
+ 'label' => esc_html__( 'Error 404', 'featureon' ),
+ 'description' => esc_html__( '(is_404) Error 404 page layout', 'featureon' ),
'section' => 'layout',
'default' => 'inherit',
'choices' => array(
@@ -511,11 +511,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Layout: Default Page
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio-image',
'settings' => 'layout-page',
- 'label' => esc_html__( 'Default Page', 'magazinertwo' ),
- 'description' => esc_html__( '(is_page) Default page layout - If a page has a set layout, it will override this.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Default Page', 'featureon' ),
+ 'description' => esc_html__( '(is_page) Default page layout - If a page has a set layout, it will override this.', 'featureon' ),
'section' => 'layout',
'default' => 'inherit',
'choices' => array(
@@ -530,7 +530,7 @@ Kirki::add_field( 'magazinertwo_theme', array(
) );
-function magazinertwo_kirki_sidebars_select() {
+function featureon_kirki_sidebars_select() {
$sidebars = array();
if ( isset( $GLOBALS['wp_registered_sidebars'] ) ) {
$sidebars = $GLOBALS['wp_registered_sidebars'];
@@ -543,263 +543,263 @@ function magazinertwo_kirki_sidebars_select() {
return;
}
// Sidebars: Select
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's1-home',
- 'label' => esc_html__( 'Home', 'magazinertwo' ),
- 'description' => esc_html__( '(is_home) Primary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Home', 'featureon' ),
+ 'description' => esc_html__( '(is_home) Primary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's2-home',
- 'label' => esc_html__( 'Home', 'magazinertwo' ),
- 'description' => esc_html__( '(is_home) Secondary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Home', 'featureon' ),
+ 'description' => esc_html__( '(is_home) Secondary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's1-single',
- 'label' => esc_html__( 'Single', 'magazinertwo' ),
- 'description' => esc_html__( '(is_single) Primary - If a single post has a unique sidebar, it will override this.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Single', 'featureon' ),
+ 'description' => esc_html__( '(is_single) Primary - If a single post has a unique sidebar, it will override this.', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's2-single',
- 'label' => esc_html__( 'Single', 'magazinertwo' ),
- 'description' => esc_html__( '(is_single) Secondary - If a single post has a unique sidebar, it will override this.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Single', 'featureon' ),
+ 'description' => esc_html__( '(is_single) Secondary - If a single post has a unique sidebar, it will override this.', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's1-archive',
- 'label' => esc_html__( 'Archive', 'magazinertwo' ),
- 'description' => esc_html__( '(is_archive) Primary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Archive', 'featureon' ),
+ 'description' => esc_html__( '(is_archive) Primary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's2-archive',
- 'label' => esc_html__( 'Archive', 'magazinertwo' ),
- 'description' => esc_html__( '(is_archive) Secondary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Archive', 'featureon' ),
+ 'description' => esc_html__( '(is_archive) Secondary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's1-archive-category',
- 'label' => esc_html__( 'Archive - Category', 'magazinertwo' ),
- 'description' => esc_html__( '(is_category) Primary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Archive - Category', 'featureon' ),
+ 'description' => esc_html__( '(is_category) Primary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's2-archive-category',
- 'label' => esc_html__( 'Archive - Category', 'magazinertwo' ),
- 'description' => esc_html__( '(is_category) Secondary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Archive - Category', 'featureon' ),
+ 'description' => esc_html__( '(is_category) Secondary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's1-search',
- 'label' => esc_html__( 'Search', 'magazinertwo' ),
- 'description' => esc_html__( '(is_search) Primary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Search', 'featureon' ),
+ 'description' => esc_html__( '(is_search) Primary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's2-search',
- 'label' => esc_html__( 'Search', 'magazinertwo' ),
- 'description' => esc_html__( '(is_search) Secondary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Search', 'featureon' ),
+ 'description' => esc_html__( '(is_search) Secondary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's1-404',
- 'label' => esc_html__( 'Error 404', 'magazinertwo' ),
- 'description' => esc_html__( '(is_404) Primary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Error 404', 'featureon' ),
+ 'description' => esc_html__( '(is_404) Primary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's2-404',
- 'label' => esc_html__( 'Error 404', 'magazinertwo' ),
- 'description' => esc_html__( '(is_404) Secondary', 'magazinertwo' ),
+ 'label' => esc_html__( 'Error 404', 'featureon' ),
+ 'description' => esc_html__( '(is_404) Secondary', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's1-page',
- 'label' => esc_html__( 'Default Page', 'magazinertwo' ),
- 'description' => esc_html__( '(is_page) Primary - If a page has a unique sidebar, it will override this.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Default Page', 'featureon' ),
+ 'description' => esc_html__( '(is_page) Primary - If a page has a unique sidebar, it will override this.', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
- Kirki::add_field( 'magazinertwo_theme', array(
+ Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 's2-page',
- 'label' => esc_html__( 'Default Page', 'magazinertwo' ),
- 'description' => esc_html__( '(is_page) Secondary - If a page has a unique sidebar, it will override this.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Default Page', 'featureon' ),
+ 'description' => esc_html__( '(is_page) Secondary - If a page has a unique sidebar, it will override this.', 'featureon' ),
'section' => 'sidebars',
'choices' => $sidebars_choices,
'default' => '',
- 'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
+ 'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
) );
}
-add_action( 'init', 'magazinertwo_kirki_sidebars_select', 999 );
+add_action( 'init', 'featureon_kirki_sidebars_select', 999 );
// Social Links: List
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'repeater',
- 'label' => esc_html__( 'Create Social Links', 'magazinertwo' ),
- 'description' => esc_html__( 'Create and organize your social links', 'magazinertwo' ),
+ 'label' => esc_html__( 'Create Social Links', 'featureon' ),
+ 'description' => esc_html__( 'Create and organize your social links', 'featureon' ),
'section' => 'social',
- 'tooltip' => esc_html__( 'Font Awesome names:', 'magazinertwo' ) . ' ' . esc_html__( 'View All', 'magazinertwo' ) . ' ',
+ 'tooltip' => esc_html__( 'Font Awesome names:', 'featureon' ) . ' ' . esc_html__( 'View All', 'featureon' ) . ' ',
'row_label' => array(
'type' => 'text',
- 'value' => esc_html__('social link', 'magazinertwo' ),
+ 'value' => esc_html__('social link', 'featureon' ),
),
'settings' => 'social-links',
'default' => '',
'fields' => array(
'social-title' => array(
'type' => 'text',
- 'label' => esc_html__( 'Title', 'magazinertwo' ),
- 'description' => esc_html__( 'Ex: Facebook', 'magazinertwo' ),
+ 'label' => esc_html__( 'Title', 'featureon' ),
+ 'description' => esc_html__( 'Ex: Facebook', 'featureon' ),
'default' => '',
),
'social-icon' => array(
'type' => 'text',
- 'label' => esc_html__( 'Icon Name', 'magazinertwo' ),
- 'description' => esc_html__( 'Font Awesome icons. Ex: fa-facebook ', 'magazinertwo' ) . ' ' . esc_html__( 'View All', 'magazinertwo' ) . ' ',
+ 'label' => esc_html__( 'Icon Name', 'featureon' ),
+ 'description' => esc_html__( 'Font Awesome icons. Ex: fa-facebook ', 'featureon' ) . ' ' . esc_html__( 'View All', 'featureon' ) . ' ',
'default' => 'fa-',
),
'social-link' => array(
'type' => 'link',
- 'label' => esc_html__( 'Link', 'magazinertwo' ),
- 'description' => esc_html__( 'Enter the full url for your icon button', 'magazinertwo' ),
+ 'label' => esc_html__( 'Link', 'featureon' ),
+ 'description' => esc_html__( 'Enter the full url for your icon button', 'featureon' ),
'default' => 'http://',
),
'social-color' => array(
'type' => 'color',
- 'label' => esc_html__( 'Icon Color', 'magazinertwo' ),
- 'description' => esc_html__( 'Set a unique color for your icon (optional)', 'magazinertwo' ),
+ 'label' => esc_html__( 'Icon Color', 'featureon' ),
+ 'description' => esc_html__( 'Set a unique color for your icon (optional)', 'featureon' ),
'default' => '',
),
'social-target' => array(
'type' => 'checkbox',
- 'label' => esc_html__( 'Open in new window', 'magazinertwo' ),
+ 'label' => esc_html__( 'Open in new window', 'featureon' ),
'default' => false,
),
)
) );
// Styling: Enable
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'dynamic-styles',
- 'label' => esc_html__( 'Dynamic Styles', 'magazinertwo' ),
- 'description' => esc_html__( 'Turn on to use the styling options below', 'magazinertwo' ),
+ 'label' => esc_html__( 'Dynamic Styles', 'featureon' ),
+ 'description' => esc_html__( 'Turn on to use the styling options below', 'featureon' ),
'section' => 'styling',
'default' => 'on',
) );
// Styling: Boxed Layout
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'boxed',
- 'label' => esc_html__( 'Boxed Layout', 'magazinertwo' ),
- 'description' => esc_html__( 'Use a boxed layout', 'magazinertwo' ),
+ 'label' => esc_html__( 'Boxed Layout', 'featureon' ),
+ 'description' => esc_html__( 'Use a boxed layout', 'featureon' ),
'section' => 'styling',
'default' => 'off',
) );
// Styling: Dark Layout
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'dark',
- 'label' => esc_html__( 'Dark Layout', 'magazinertwo' ),
- 'description' => esc_html__( 'Dark base style', 'magazinertwo' ),
+ 'label' => esc_html__( 'Dark Layout', 'featureon' ),
+ 'description' => esc_html__( 'Dark base style', 'featureon' ),
'section' => 'styling',
'default' => 'off',
) );
// Styling: Font
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'select',
'settings' => 'font',
- 'label' => esc_html__( 'Font', 'magazinertwo' ),
- 'description' => esc_html__( 'Select font for the theme', 'magazinertwo' ),
+ 'label' => esc_html__( 'Font', 'featureon' ),
+ 'description' => esc_html__( 'Select font for the theme', 'featureon' ),
'section' => 'styling',
'default' => 'roboto',
'choices' => array(
- 'titillium-web' => esc_html__( 'Titillium Web, Latin (Self-hosted)', 'magazinertwo' ),
- 'titillium-web-ext' => esc_html__( 'Titillium Web, Latin-Ext', 'magazinertwo' ),
- 'droid-serif' => esc_html__( 'Droid Serif, Latin', 'magazinertwo' ),
- 'source-sans-pro' => esc_html__( 'Source Sans Pro, Latin-Ext', 'magazinertwo' ),
- 'lato' => esc_html__( 'Lato, Latin', 'magazinertwo' ),
- 'raleway' => esc_html__( 'Raleway, Latin', 'magazinertwo' ),
- 'ubuntu' => esc_html__( 'Ubuntu, Latin-Ext', 'magazinertwo' ),
- 'ubuntu-cyr' => esc_html__( 'Ubuntu, Latin / Cyrillic-Ext', 'magazinertwo' ),
- 'roboto' => esc_html__( 'Roboto, Latin-Ext', 'magazinertwo' ),
- 'roboto-cyr' => esc_html__( 'Roboto, Latin / Cyrillic-Ext', 'magazinertwo' ),
- 'roboto-condensed' => esc_html__( 'Roboto Condensed, Latin-Ext', 'magazinertwo' ),
- 'roboto-condensed-cyr' => esc_html__( 'Roboto Condensed, Latin / Cyrillic-Ext', 'magazinertwo' ),
- 'roboto-slab' => esc_html__( 'Roboto Slab, Latin-Ext', 'magazinertwo' ),
- 'roboto-slab-cyr' => esc_html__( 'Roboto Slab, Latin / Cyrillic-Ext', 'magazinertwo' ),
- 'playfair-display' => esc_html__( 'Playfair Display, Latin-Ext', 'magazinertwo' ),
- 'playfair-display-cyr' => esc_html__( 'Playfair Display, Latin / Cyrillic', 'magazinertwo' ),
- 'open-sans' => esc_html__( 'Open Sans, Latin-Ext', 'magazinertwo' ),
- 'open-sans-cyr' => esc_html__( 'Open Sans, Latin / Cyrillic-Ext', 'magazinertwo' ),
- 'pt-serif' => esc_html__( 'PT Serif, Latin-Ext', 'magazinertwo' ),
- 'pt-serif-cyr' => esc_html__( 'PT Serif, Latin / Cyrillic-Ext', 'magazinertwo' ),
- 'arial' => esc_html__( 'Arial', 'magazinertwo' ),
- 'georgia' => esc_html__( 'Georgia', 'magazinertwo' ),
- 'verdana' => esc_html__( 'Verdana', 'magazinertwo' ),
- 'tahoma' => esc_html__( 'Tahoma', 'magazinertwo' ),
+ 'titillium-web' => esc_html__( 'Titillium Web, Latin (Self-hosted)', 'featureon' ),
+ 'titillium-web-ext' => esc_html__( 'Titillium Web, Latin-Ext', 'featureon' ),
+ 'droid-serif' => esc_html__( 'Droid Serif, Latin', 'featureon' ),
+ 'source-sans-pro' => esc_html__( 'Source Sans Pro, Latin-Ext', 'featureon' ),
+ 'lato' => esc_html__( 'Lato, Latin', 'featureon' ),
+ 'raleway' => esc_html__( 'Raleway, Latin', 'featureon' ),
+ 'ubuntu' => esc_html__( 'Ubuntu, Latin-Ext', 'featureon' ),
+ 'ubuntu-cyr' => esc_html__( 'Ubuntu, Latin / Cyrillic-Ext', 'featureon' ),
+ 'roboto' => esc_html__( 'Roboto, Latin-Ext', 'featureon' ),
+ 'roboto-cyr' => esc_html__( 'Roboto, Latin / Cyrillic-Ext', 'featureon' ),
+ 'roboto-condensed' => esc_html__( 'Roboto Condensed, Latin-Ext', 'featureon' ),
+ 'roboto-condensed-cyr' => esc_html__( 'Roboto Condensed, Latin / Cyrillic-Ext', 'featureon' ),
+ 'roboto-slab' => esc_html__( 'Roboto Slab, Latin-Ext', 'featureon' ),
+ 'roboto-slab-cyr' => esc_html__( 'Roboto Slab, Latin / Cyrillic-Ext', 'featureon' ),
+ 'playfair-display' => esc_html__( 'Playfair Display, Latin-Ext', 'featureon' ),
+ 'playfair-display-cyr' => esc_html__( 'Playfair Display, Latin / Cyrillic', 'featureon' ),
+ 'open-sans' => esc_html__( 'Open Sans, Latin-Ext', 'featureon' ),
+ 'open-sans-cyr' => esc_html__( 'Open Sans, Latin / Cyrillic-Ext', 'featureon' ),
+ 'pt-serif' => esc_html__( 'PT Serif, Latin-Ext', 'featureon' ),
+ 'pt-serif-cyr' => esc_html__( 'PT Serif, Latin / Cyrillic-Ext', 'featureon' ),
+ 'arial' => esc_html__( 'Arial', 'featureon' ),
+ 'georgia' => esc_html__( 'Georgia', 'featureon' ),
+ 'verdana' => esc_html__( 'Verdana', 'featureon' ),
+ 'tahoma' => esc_html__( 'Tahoma', 'featureon' ),
),
) );
// Styling: Container Width
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'container-width',
- 'label' => esc_html__( 'Website Max-width', 'magazinertwo' ),
- 'description' => esc_html__( 'Max-width of the container. If you use 2 sidebars, your container should be at least 1280px. Note: For 720px content (default) use 1460px for 2 sidebars and 1200px for 1 sidebar. If you use a combination of both, try something inbetween.', 'magazinertwo' ),
+ 'label' => esc_html__( 'Website Max-width', 'featureon' ),
+ 'description' => esc_html__( 'Max-width of the container. If you use 2 sidebars, your container should be at least 1280px. Note: For 720px content (default) use 1460px for 2 sidebars and 1200px for 1 sidebar. If you use a combination of both, try something inbetween.', 'featureon' ),
'section' => 'styling',
'default' => '1460',
'choices' => array(
@@ -809,11 +809,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Styling: Featured Section Height
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'featured-height',
- 'label' => esc_html__( 'Featured Section Height', 'magazinertwo' ),
- 'description' => esc_html__( 'Height of the featured posts section', 'magazinertwo' ),
+ 'label' => esc_html__( 'Featured Section Height', 'featureon' ),
+ 'description' => esc_html__( 'Height of the featured posts section', 'featureon' ),
'section' => 'styling',
'default' => '540',
'choices' => array(
@@ -823,87 +823,87 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Styling: Sidebar Width
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'radio',
'settings' => 'sidebar-padding',
- 'label' => esc_html__( 'Sidebar Width', 'magazinertwo' ),
+ 'label' => esc_html__( 'Sidebar Width', 'featureon' ),
'section' => 'styling',
'default' => '30',
'choices' => array(
- '30' => esc_html__( '280px primary (30px padding)', 'magazinertwo' ),
- '20' => esc_html__( '300px primary (20px padding)', 'magazinertwo' ),
+ '30' => esc_html__( '280px primary (30px padding)', 'featureon' ),
+ '20' => esc_html__( '300px primary (20px padding)', 'featureon' ),
),
) );
// Styling: Primary Color
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-1',
- 'label' => esc_html__( 'Primary Color', 'magazinertwo' ),
+ 'label' => esc_html__( 'Primary Color', 'featureon' ),
'section' => 'styling',
'default' => '#0fb4d2',
) );
// Styling: Mobile Menu Background
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-mobile-menu',
- 'label' => esc_html__( 'Mobile Menu Color', 'magazinertwo' ),
+ 'label' => esc_html__( 'Mobile Menu Color', 'featureon' ),
'section' => 'styling',
'default' => '',
) );
// Styling: Topbar Menu Color
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-topbar-menu',
- 'label' => esc_html__( 'Topbar Menu Color', 'magazinertwo' ),
+ 'label' => esc_html__( 'Topbar Menu Color', 'featureon' ),
'section' => 'styling',
'default' => '',
) );
// Styling: Header Color
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-header',
- 'label' => esc_html__( 'Header Color', 'magazinertwo' ),
+ 'label' => esc_html__( 'Header Color', 'featureon' ),
'section' => 'styling',
'default' => '',
) );
// Styling: Header Menu Color
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-header-menu',
- 'label' => esc_html__( 'Header Menu Color', 'magazinertwo' ),
+ 'label' => esc_html__( 'Header Menu Color', 'featureon' ),
'section' => 'styling',
'default' => '',
) );
// Styling: Subheader Background
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-subheader',
- 'label' => esc_html__( 'Subheader Background', 'magazinertwo' ),
+ 'label' => esc_html__( 'Subheader Background', 'featureon' ),
'section' => 'styling',
'default' => '',
) );
// Styling: Footer Menu Background
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-footer-menu',
- 'label' => esc_html__( 'Footer Menu Color', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Menu Color', 'featureon' ),
'section' => 'styling',
'default' => '#222222',
) );
// Styling: Footer Background
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'color',
'settings' => 'color-footer',
- 'label' => esc_html__( 'Footer Background', 'magazinertwo' ),
+ 'label' => esc_html__( 'Footer Background', 'featureon' ),
'section' => 'styling',
'default' => '#282828',
) );
// Styling: Header Logo Max-height
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'logo-max-height',
- 'label' => esc_html__( 'Header Logo Image Max-height', 'magazinertwo' ),
- 'description' => esc_html__( 'Your logo image should have the double height of this to be high resolution', 'magazinertwo' ),
+ 'label' => esc_html__( 'Header Logo Image Max-height', 'featureon' ),
+ 'description' => esc_html__( 'Your logo image should have the double height of this to be high resolution', 'featureon' ),
'section' => 'styling',
'default' => '60',
'choices' => array(
@@ -913,11 +913,11 @@ Kirki::add_field( 'magazinertwo_theme', array(
),
) );
// Styling: Image Border Radius
-Kirki::add_field( 'magazinertwo_theme', array(
+Kirki::add_field( 'featureon_theme', array(
'type' => 'slider',
'settings' => 'image-border-radius',
- 'label' => esc_html__( 'Image Border Radius', 'magazinertwo' ),
- 'description' => esc_html__( 'Give your thumbnails and layout images rounded corners', 'magazinertwo' ),
+ 'label' => esc_html__( 'Image Border Radius', 'featureon' ),
+ 'description' => esc_html__( 'Give your thumbnails and layout images rounded corners', 'featureon' ),
'section' => 'styling',
'default' => '0',
'choices' => array(
diff --git a/header.php b/header.php
index dfcc326..3dc769c 100644
--- a/header.php
+++ b/header.php
@@ -14,7 +14,7 @@
-
+
@@ -47,7 +47,7 @@
-
+
@@ -62,7 +62,7 @@
-
+
diff --git a/inc/page-title.php b/inc/page-title.php
index e84b622..cbc62b6 100644
--- a/inc/page-title.php
+++ b/inc/page-title.php
@@ -2,7 +2,7 @@
-
+
/ '); ?>
@@ -16,34 +16,34 @@
found_posts;
if ($search_results==1) {
- echo $search_results.' '.esc_html__('Search result','magazinertwo');
+ echo $search_results.' '.esc_html__('Search result','featureon');
} else {
- echo $search_results.' '.esc_html__('Search results','magazinertwo');
+ echo $search_results.' '.esc_html__('Search results','featureon');
}
?>
-
+
-
display_name;?>
+
display_name;?>
-
+
-
+
-
+
-
+
diff --git a/inc/post-formats.php b/inc/post-formats.php
index 4c68e25..2352f97 100644
--- a/inc/post-formats.php
+++ b/inc/post-formats.php
@@ -18,7 +18,7 @@
-
+