Change theme name from Split to Splits

This commit is contained in:
AlxMedia 2022-12-22 12:54:15 +01:00
parent c7ac424d85
commit 7f892aacf5
36 changed files with 593 additions and 1471 deletions

12
404.php
View file

@ -1,12 +1,12 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left"> <div id="splits-left">
<?php get_template_part('inc/featured'); ?> <?php get_template_part('inc/featured'); ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div id="split-right-top" class="pad"> <div id="splits-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
</div> </div>
@ -17,12 +17,12 @@
</div><!--/.notebox--> </div><!--/.notebox-->
<div class="entry"> <div class="entry">
<p><?php esc_html_e( 'The page you are trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.', 'split' ); ?></p> <p><?php esc_html_e( 'The page you are trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.', 'splits' ); ?></p>
</div><!--/.entry--> </div><!--/.entry-->
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -1,12 +1,12 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left"> <div id="splits-left">
<?php get_template_part('inc/featured'); ?> <?php get_template_part('inc/featured'); ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div id="split-right-top" class="pad"> <div id="splits-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
</div> </div>
@ -46,7 +46,7 @@
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -1,9 +1,9 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left"> <div id="splits-left">
<div id="split-left-top" class="page-title alt group pad"> <div id="splits-left-top" class="page-title alt group pad">
<h2><?php esc_html_e('Most Recent.','split'); ?> <span><?php esc_html_e('In','split'); ?> <?php echo single_cat_title('', false); ?>.</span></h2> <h2><?php esc_html_e('Most Recent.','splits'); ?> <span><?php esc_html_e('In','splits'); ?> <?php echo single_cat_title('', false); ?>.</span></h2>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -23,11 +23,11 @@
wp_reset_postdata(); wp_reset_postdata();
?> ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div id="split-right-top" class="pad"> <div id="splits-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
</div> </div>
@ -100,7 +100,7 @@
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -4,11 +4,11 @@
<?php if ( have_comments() ) : global $wp_query; ?> <?php if ( have_comments() ) : global $wp_query; ?>
<h3 class="heading"><?php comments_number( esc_html__( 'No Responses', 'split' ), esc_html__( '1 Response', 'split' ), esc_html__( '% Responses', 'split' ) ); ?></h3> <h3 class="heading"><?php comments_number( esc_html__( 'No Responses', 'splits' ), esc_html__( '1 Response', 'splits' ), esc_html__( '% Responses', 'splits' ) ); ?></h3>
<ul class="comment-tabs group"> <ul class="comment-tabs group">
<li class="active"><a href="#commentlist-container"><i class="fas fa-comments"></i><?php esc_html_e( 'Comments', 'split' ); ?><span><?php echo count($wp_query->comments_by_type['comment']); ?></span></a></li> <li class="active"><a href="#commentlist-container"><i class="fas fa-comments"></i><?php esc_html_e( 'Comments', 'splits' ); ?><span><?php echo count($wp_query->comments_by_type['comment']); ?></span></a></li>
<li><a href="#pinglist-container"><i class="fas fa-share"></i><?php esc_html_e( 'Pingbacks', 'split' ); ?><span><?php echo count($wp_query->comments_by_type['pings']); ?></span></a></li> <li><a href="#pinglist-container"><i class="fas fa-share"></i><?php esc_html_e( 'Pingbacks', 'splits' ); ?><span><?php echo count($wp_query->comments_by_type['pings']); ?></span></a></li>
</ul> </ul>
<?php if ( ! empty( $comments_by_type['comment'] ) ) { ?> <?php if ( ! empty( $comments_by_type['comment'] ) ) { ?>

View file

@ -4,7 +4,7 @@
<div class="featured-thumb"> <div class="featured-thumb">
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-large'); ?> <?php the_post_thumbnail('splits-large'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>

View file

@ -6,7 +6,7 @@
<div class="post-thumbnail"> <div class="post-thumbnail">
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('splits-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>

View file

@ -4,7 +4,7 @@
<div class="highlights-thumb"> <div class="highlights-thumb">
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('splits-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>

View file

@ -6,7 +6,7 @@
<div class="post-thumbnail"> <div class="post-thumbnail">
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-square'); ?> <?php the_post_thumbnail('splits-square'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-square.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-square.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>

View file

@ -6,7 +6,7 @@
<div class="post-thumbnail"> <div class="post-thumbnail">
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('splits-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>

View file

@ -1,4 +1,4 @@
</div><!--/#split--> </div><!--/#splits-->
<footer id="footer"> <footer id="footer">
@ -66,13 +66,13 @@
<?php if ( get_theme_mod( 'copyright' ) ): ?> <?php if ( get_theme_mod( 'copyright' ) ): ?>
<p><?php echo esc_html( get_theme_mod( 'copyright' ) ); ?></p> <p><?php echo esc_html( get_theme_mod( 'copyright' ) ); ?></p>
<?php else: ?> <?php else: ?>
<p><?php bloginfo(); ?> &copy; <?php echo esc_html( date_i18n( esc_html__( 'Y', 'split' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'split' ); ?></p> <p><?php bloginfo(); ?> &copy; <?php echo esc_html( date_i18n( esc_html__( 'Y', 'splits' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'splits' ); ?></p>
<?php endif; ?> <?php endif; ?>
</div><!--/#copyright--> </div><!--/#copyright-->
<?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?> <?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?>
<div id="credit"> <div id="credit">
<p><?php esc_html_e('Powered by','split'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','split'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p> <p><?php esc_html_e('Powered by','splits'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','splits'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
</div><!--/#credit--> </div><!--/#credit-->
<?php endif; ?> <?php endif; ?>
@ -80,7 +80,7 @@
<div class="grid one-half last"> <div class="grid one-half last">
<?php if ( get_theme_mod( 'footer-social', 'on' ) == 'on' ): ?> <?php if ( get_theme_mod( 'footer-social', 'on' ) == 'on' ): ?>
<?php split_social_links() ; ?> <?php splits_social_links() ; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>

View file

@ -14,17 +14,11 @@
// Load Kirki // Load Kirki
include( get_template_directory() . '/functions/kirki/kirki.php' ); include( get_template_directory() . '/functions/kirki/kirki.php' );
// Load theme updater functions if ( ! function_exists( 'splits_load' ) ) {
function split_theme_updater() {
require( get_template_directory() . '/functions/updater/theme-updater.php' );
}
add_action( 'after_setup_theme', 'split_theme_updater' );
if ( ! function_exists( 'split_load' ) ) { function splits_load() {
function split_load() {
// Load theme languages // Load theme languages
load_theme_textdomain( 'split', get_template_directory().'/languages' ); load_theme_textdomain( 'splits', get_template_directory().'/languages' );
// Load theme options and meta boxes // Load theme options and meta boxes
include( get_template_directory() . '/functions/theme-options.php' ); include( get_template_directory() . '/functions/theme-options.php' );
@ -38,7 +32,7 @@ if ( ! function_exists( 'split_load' ) ) {
} }
} }
add_action( 'after_setup_theme', 'split_load' ); add_action( 'after_setup_theme', 'splits_load' );
/* ------------------------------------------------------------------------- * /* ------------------------------------------------------------------------- *
@ -51,9 +45,9 @@ add_action( 'after_setup_theme', 'split_load' );
/* Theme setup /* Theme setup
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_setup' ) ) { if ( ! function_exists( 'splits_setup' ) ) {
function split_setup() { function splits_setup() {
// Enable title tag // Enable title tag
add_theme_support( 'title-tag' ); add_theme_support( 'title-tag' );
@ -76,10 +70,10 @@ if ( ! function_exists( 'split_setup' ) ) {
remove_theme_support( 'widgets-block-editor' ); remove_theme_support( 'widgets-block-editor' );
// Thumbnail sizes // Thumbnail sizes
add_image_size( 'split-small', 160, 160, true ); add_image_size( 'splits-small', 160, 160, true );
add_image_size( 'split-medium', 520, 293, true ); add_image_size( 'splits-medium', 520, 293, true );
add_image_size( 'split-large', 720, 405, true ); add_image_size( 'splits-large', 720, 405, true );
add_image_size( 'split-square', 320, 320, true ); add_image_size( 'splits-square', 320, 320, true );
// Thumbnail sizes custom widgets // Thumbnail sizes custom widgets
add_image_size( 'alx-small', 160, 160, true ); add_image_size( 'alx-small', 160, 160, true );
@ -87,15 +81,15 @@ if ( ! function_exists( 'split_setup' ) ) {
// Custom menu areas // Custom menu areas
register_nav_menus( array( register_nav_menus( array(
'mobile' => esc_html__( 'Mobile', 'split' ), 'mobile' => esc_html__( 'Mobile', 'splits' ),
'topbar' => esc_html__( 'Topbar', 'split' ), 'topbar' => esc_html__( 'Topbar', 'splits' ),
'header' => esc_html__( 'Header', 'split' ), 'header' => esc_html__( 'Header', 'splits' ),
'footer' => esc_html__( 'Footer', 'split' ), 'footer' => esc_html__( 'Footer', 'splits' ),
) ); ) );
} }
} }
add_action( 'after_setup_theme', 'split_setup' ); add_action( 'after_setup_theme', 'splits_setup' );
/* Custom navigation /* Custom navigation
@ -117,9 +111,9 @@ add_action( 'wp', function() {
/* Custom logo /* Custom logo
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_custom_logo' ) ) { if ( ! function_exists( 'splits_custom_logo' ) ) {
function split_custom_logo() { function splits_custom_logo() {
$defaults = array( $defaults = array(
'height' => 120, 'height' => 120,
'width' => 400, 'width' => 400,
@ -131,14 +125,14 @@ if ( ! function_exists( 'split_custom_logo' ) ) {
} }
} }
add_action( 'after_setup_theme', 'split_custom_logo' ); add_action( 'after_setup_theme', 'splits_custom_logo' );
/* Custom header /* Custom header
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_custom_header' ) ) { if ( ! function_exists( 'splits_custom_header' ) ) {
function split_custom_header() { function splits_custom_header() {
$args = array( $args = array(
'default-image' => false, 'default-image' => false,
'default-text' => false, 'default-text' => false,
@ -151,89 +145,89 @@ if ( ! function_exists( 'split_custom_header' ) ) {
} }
} }
add_action( 'after_setup_theme', 'split_custom_header' ); add_action( 'after_setup_theme', 'splits_custom_header' );
/* Custom background /* Custom background
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_custom_background' ) ) { if ( ! function_exists( 'splits_custom_background' ) ) {
function split_custom_background() { function splits_custom_background() {
$args = array(); $args = array();
add_theme_support( 'custom-background', $args ); add_theme_support( 'custom-background', $args );
} }
} }
add_action( 'after_setup_theme', 'split_custom_background' ); add_action( 'after_setup_theme', 'splits_custom_background' );
/* Deregister /* Deregister
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_deregister' ) ) { if ( ! function_exists( 'splits_deregister' ) ) {
function split_deregister() { function splits_deregister() {
wp_deregister_style( 'wp-pagenavi' ); wp_deregister_style( 'wp-pagenavi' );
wp_deregister_style( 'social-count-plus' ); wp_deregister_style( 'social-count-plus' );
} }
} }
add_action( 'wp_enqueue_scripts', 'split_deregister', 100 ); add_action( 'wp_enqueue_scripts', 'splits_deregister', 100 );
/* Register sidebars /* Register sidebars
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_sidebars' ) ) { if ( ! function_exists( 'splits_sidebars' ) ) {
function split_sidebars() { function splits_sidebars() {
register_sidebar(array( 'name' => esc_html__('Primary','split'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); register_sidebar(array( 'name' => esc_html__('Primary','splits'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>'));
if ( get_theme_mod('header-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Header Ads','split'),'id' => 'header-ads', 'description' => esc_html("Header ads area","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('header-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Header Ads','splits'),'id' => 'header-ads', 'description' => esc_html("Header ads area","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('footer-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Footer Ads',"split"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('footer-ads') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Footer Ads',"splits"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 1','split'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 1','splits'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 2','split'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('frontpage-widgets-top') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Top 2','splits'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 1','split'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 1','splits'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 2','split'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('frontpage-widgets-bottom') == 'on' ) { register_sidebar(array( 'name' => esc_html__('Frontpage Bottom 2','splits'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('footer-widgets') >= '1' ) { register_sidebar(array( 'name' => esc_html__('Footer 1','split'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('footer-widgets') >= '1' ) { register_sidebar(array( 'name' => esc_html__('Footer 1','splits'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('footer-widgets') >= '2' ) { register_sidebar(array( 'name' => esc_html__('Footer 2','split'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('footer-widgets') >= '2' ) { register_sidebar(array( 'name' => esc_html__('Footer 2','splits'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('footer-widgets') >= '3' ) { register_sidebar(array( 'name' => esc_html__('Footer 3','split'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('footer-widgets') >= '3' ) { register_sidebar(array( 'name' => esc_html__('Footer 3','splits'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
if ( get_theme_mod('footer-widgets') >= '4' ) { register_sidebar(array( 'name' => esc_html__('Footer 4','split'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","split"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); } if ( get_theme_mod('footer-widgets') >= '4' ) { register_sidebar(array( 'name' => esc_html__('Footer 4','splits'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","splits"), 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="group"><span>','after_title' => '</span></h3>')); }
} }
} }
add_action( 'widgets_init', 'split_sidebars' ); add_action( 'widgets_init', 'splits_sidebars' );
/* Enqueue javascript /* Enqueue javascript
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_scripts' ) ) { if ( ! function_exists( 'splits_scripts' ) ) {
function split_scripts() { function splits_scripts() {
wp_enqueue_script( 'split-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false ); wp_enqueue_script( 'splits-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false );
wp_enqueue_script( 'split-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'splits-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true );
wp_enqueue_script( 'split-stickyfill', get_template_directory_uri() . '/js/stickyfill.min.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'splits-stickyfill', get_template_directory_uri() . '/js/stickyfill.min.js', array( 'jquery' ),'', true );
wp_enqueue_script( 'split-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'splits-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true );
wp_enqueue_script( 'split-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'splits-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true );
if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
} }
} }
add_action( 'wp_enqueue_scripts', 'split_scripts' ); add_action( 'wp_enqueue_scripts', 'splits_scripts' );
/* Enqueue css /* Enqueue css
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_styles' ) ) { if ( ! function_exists( 'splits_styles' ) ) {
function split_styles() { function splits_styles() {
wp_enqueue_style( 'split-style', get_stylesheet_uri() ); wp_enqueue_style( 'splits-style', get_stylesheet_uri() );
wp_enqueue_style( 'split-responsive', get_template_directory_uri().'/responsive.css' ); wp_enqueue_style( 'splits-responsive', get_template_directory_uri().'/responsive.css' );
wp_enqueue_style( 'split-font-awesome', get_template_directory_uri().'/fonts/all.min.css' ); wp_enqueue_style( 'splits-font-awesome', get_template_directory_uri().'/fonts/all.min.css' );
} }
} }
add_action( 'wp_enqueue_scripts', 'split_styles' ); add_action( 'wp_enqueue_scripts', 'splits_styles' );
/* ------------------------------------------------------------------------- * /* ------------------------------------------------------------------------- *
@ -242,9 +236,9 @@ add_action( 'wp_enqueue_scripts', 'split_styles' );
/* Layout class /* Layout class
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_layout_class' ) ) { if ( ! function_exists( 'splits_layout_class' ) ) {
function split_layout_class() { function splits_layout_class() {
// Default layout // Default layout
$layout = 'col-2cl'; $layout = 'col-2cl';
$default = 'col-2cl'; $default = 'col-2cl';
@ -284,9 +278,9 @@ if ( ! function_exists( 'split_layout_class' ) ) {
/* Dynamic sidebar primary /* Dynamic sidebar primary
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_sidebar_primary' ) ) { if ( ! function_exists( 'splits_sidebar_primary' ) ) {
function split_sidebar_primary() { function splits_sidebar_primary() {
// Default sidebar // Default sidebar
$sidebar = 'primary'; $sidebar = 'primary';
@ -318,9 +312,9 @@ if ( ! function_exists( 'split_sidebar_primary' ) ) {
/* Dynamic sidebar secondary /* Dynamic sidebar secondary
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_sidebar_secondary' ) ) { if ( ! function_exists( 'splits_sidebar_secondary' ) ) {
function split_sidebar_secondary() { function splits_sidebar_secondary() {
// Default sidebar // Default sidebar
$sidebar = 'secondary'; $sidebar = 'secondary';
@ -352,9 +346,9 @@ if ( ! function_exists( 'split_sidebar_secondary' ) ) {
/* Social links /* Social links
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_social_links' ) ) { if ( ! function_exists( 'splits_social_links' ) ) {
function split_social_links() { function splits_social_links() {
if ( !get_theme_mod('social-links') =='' ) { if ( !get_theme_mod('social-links') =='' ) {
$links = get_theme_mod('social-links', array()); $links = get_theme_mod('social-links', array());
if ( !empty( $links ) ) { if ( !empty( $links ) ) {
@ -388,9 +382,9 @@ if ( ! function_exists( 'split_social_links' ) ) {
/* Site name/logo /* Site name/logo
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_site_title' ) ) { if ( ! function_exists( 'splits_site_title' ) ) {
function split_site_title() { function splits_site_title() {
$custom_logo_id = get_theme_mod( 'custom_logo' ); $custom_logo_id = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' ); $logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
@ -418,9 +412,9 @@ if ( ! function_exists( 'split_site_title' ) ) {
/* Blog title /* Blog title
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_blog_title' ) ) { if ( ! function_exists( 'splits_blog_title' ) ) {
function split_blog_title() { function splits_blog_title() {
global $post; global $post;
$heading = esc_html( get_theme_mod('blog-heading') ); $heading = esc_html( get_theme_mod('blog-heading') );
$subheading = esc_html( get_theme_mod('blog-subheading') ); $subheading = esc_html( get_theme_mod('blog-subheading') );
@ -441,9 +435,9 @@ if ( ! function_exists( 'split_blog_title' ) ) {
/* Related posts /* Related posts
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_related_posts' ) ) { if ( ! function_exists( 'splits_related_posts' ) ) {
function split_related_posts() { function splits_related_posts() {
wp_reset_postdata(); wp_reset_postdata();
global $post; global $post;
@ -492,9 +486,9 @@ if ( ! function_exists( 'split_related_posts' ) ) {
/* Get images attached to post /* Get images attached to post
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_post_images' ) ) { if ( ! function_exists( 'splits_post_images' ) ) {
function split_post_images( $args=array() ) { function splits_post_images( $args=array() ) {
global $post; global $post;
$defaults = array( $defaults = array(
@ -516,9 +510,9 @@ if ( ! function_exists( 'split_post_images' ) ) {
/* Get featured post ids /* Get featured post ids
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_get_featured_post_ids' ) ) { if ( ! function_exists( 'splits_get_featured_post_ids' ) ) {
function split_get_featured_post_ids() { function splits_get_featured_post_ids() {
$args = array( $args = array(
'category' => absint( get_theme_mod('featured-category','') ), 'category' => absint( get_theme_mod('featured-category','') ),
'numberposts' => absint( get_theme_mod('featured-posts-count','3') ), 'numberposts' => absint( get_theme_mod('featured-posts-count','3') ),
@ -539,10 +533,10 @@ if ( ! function_exists( 'split_get_featured_post_ids' ) ) {
/* Body class /* Body class
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_body_class' ) ) { if ( ! function_exists( 'splits_body_class' ) ) {
function split_body_class( $classes ) { function splits_body_class( $classes ) {
$classes[] = split_layout_class(); $classes[] = splits_layout_class();
if ( get_theme_mod( 'boxed','off' ) != 'on' ) { $classes[] = 'full-width'; } if ( get_theme_mod( 'boxed','off' ) != 'on' ) { $classes[] = 'full-width'; }
if ( get_theme_mod( 'boxed','off' ) == 'on' ) { $classes[] = 'boxed'; } if ( get_theme_mod( 'boxed','off' ) == 'on' ) { $classes[] = 'boxed'; }
if ( has_nav_menu( 'topbar' ) ) { $classes[] = 'topbar-enabled'; } if ( has_nav_menu( 'topbar' ) ) { $classes[] = 'topbar-enabled'; }
@ -553,14 +547,14 @@ if ( ! function_exists( 'split_body_class' ) ) {
} }
} }
add_filter( 'body_class', 'split_body_class' ); add_filter( 'body_class', 'splits_body_class' );
/* Excerpt ending /* Excerpt ending
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_excerpt_more' ) ) { if ( ! function_exists( 'splits_excerpt_more' ) ) {
function split_excerpt_more( $more ) { function splits_excerpt_more( $more ) {
if ( is_admin() ) { if ( is_admin() ) {
return $more; return $more;
} }
@ -568,14 +562,14 @@ if ( ! function_exists( 'split_excerpt_more' ) ) {
} }
} }
add_filter( 'excerpt_more', 'split_excerpt_more' ); add_filter( 'excerpt_more', 'splits_excerpt_more' );
/* Excerpt length /* Excerpt length
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_excerpt_length' ) ) { if ( ! function_exists( 'splits_excerpt_length' ) ) {
function split_excerpt_length( $length ) { function splits_excerpt_length( $length ) {
if ( is_admin() ) { if ( is_admin() ) {
return $length; return $length;
} }
@ -589,14 +583,14 @@ if ( ! function_exists( 'split_excerpt_length' ) ) {
} }
} }
add_filter( 'excerpt_length', 'split_excerpt_length', 999 ); add_filter( 'excerpt_length', 'splits_excerpt_length', 999 );
/* Add responsive container to embeds /* Add responsive container to embeds
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_embed_html' ) ) { if ( ! function_exists( 'splits_embed_html' ) ) {
function split_embed_html( $html, $url ) { function splits_embed_html( $html, $url ) {
$pattern = '/^https?:\/\/(www\.)?twitter\.com/'; $pattern = '/^https?:\/\/(www\.)?twitter\.com/';
$is_twitter = preg_match( $pattern, $url ); $is_twitter = preg_match( $pattern, $url );
@ -609,19 +603,19 @@ if ( ! function_exists( 'split_embed_html' ) ) {
} }
} }
add_filter( 'embed_oembed_html', 'split_embed_html', 10, 3 ); add_filter( 'embed_oembed_html', 'splits_embed_html', 10, 3 );
/* Add responsive container to jetpack embeds /* Add responsive container to jetpack embeds
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_embed_html_jp' ) ) { if ( ! function_exists( 'splits_embed_html_jp' ) ) {
function split_embed_html_jp( $html ) { function splits_embed_html_jp( $html ) {
return '<div class="video-container">' . $html . '</div>'; return '<div class="video-container">' . $html . '</div>';
} }
} }
add_filter( 'video_embed_html', 'split_embed_html_jp' ); add_filter( 'video_embed_html', 'splits_embed_html_jp' );
/* ------------------------------------------------------------------------- * /* ------------------------------------------------------------------------- *
@ -630,9 +624,9 @@ add_filter( 'video_embed_html', 'split_embed_html_jp' );
/* Include or exclude featured articles in loop /* Include or exclude featured articles in loop
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_pre_get_posts' ) ) { if ( ! function_exists( 'splits_pre_get_posts' ) ) {
function split_pre_get_posts( $query ) { function splits_pre_get_posts( $query ) {
// Are we on main query ? // Are we on main query ?
if ( !$query->is_main_query() ) return; if ( !$query->is_main_query() ) return;
if ( $query->is_home() ) { if ( $query->is_home() ) {
@ -640,7 +634,7 @@ if ( ! function_exists( 'split_pre_get_posts' ) ) {
// Featured posts enabled // Featured posts enabled
if ( get_theme_mod('featured-posts-count','3') != '0' ) { if ( get_theme_mod('featured-posts-count','3') != '0' ) {
// Get featured post ids // Get featured post ids
$featured_post_ids = split_get_featured_post_ids(); $featured_post_ids = splits_get_featured_post_ids();
// Exclude posts // Exclude posts
if ( $featured_post_ids && !get_theme_mod('featured-posts-include') ) if ( $featured_post_ids && !get_theme_mod('featured-posts-include') )
$query->set('post__not_in', $featured_post_ids); $query->set('post__not_in', $featured_post_ids);
@ -649,26 +643,26 @@ if ( ! function_exists( 'split_pre_get_posts' ) ) {
} }
} }
add_action( 'pre_get_posts', 'split_pre_get_posts' ); add_action( 'pre_get_posts', 'splits_pre_get_posts' );
/* Script for no-js / js class /* Script for no-js / js class
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_html_js_class' ) ) { if ( ! function_exists( 'splits_html_js_class' ) ) {
function split_html_js_class () { function splits_html_js_class () {
echo '<script>document.documentElement.className = document.documentElement.className.replace("no-js","js");</script>'. "\n"; echo '<script>document.documentElement.className = document.documentElement.className.replace("no-js","js");</script>'. "\n";
} }
} }
add_action( 'wp_head', 'split_html_js_class', 1 ); add_action( 'wp_head', 'splits_html_js_class', 1 );
/* Admin panel css /* Admin panel css
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_admin_panel_css' ) ) { if ( ! function_exists( 'splits_admin_panel_css' ) ) {
function split_admin_panel_css() { function splits_admin_panel_css() {
global $pagenow; global $pagenow;
if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) { if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) {
echo '<style> echo '<style>
@ -679,31 +673,31 @@ if ( ! function_exists( 'split_admin_panel_css' ) ) {
} }
} }
add_action( 'admin_head', 'split_admin_panel_css' ); add_action( 'admin_head', 'splits_admin_panel_css' );
/* TGM plugin activation /* TGM plugin activation
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_plugins' ) ) { if ( ! function_exists( 'splits_plugins' ) ) {
function split_plugins() { function splits_plugins() {
if ( get_theme_mod('recommended-plugins','on') =='on' ) { if ( get_theme_mod('recommended-plugins','on') =='on' ) {
// Add the following plugins // Add the following plugins
$plugins = array( $plugins = array(
array( array(
'name' => esc_html__( 'Alx Extensions', 'split' ), 'name' => esc_html__( 'Alx Extensions', 'splits' ),
'slug' => 'alx-extensions', 'slug' => 'alx-extensions',
), ),
array( array(
'name' => esc_html__( 'Meta Box', 'split' ), 'name' => esc_html__( 'Meta Box', 'splits' ),
'slug' => 'meta-box', 'slug' => 'meta-box',
), ),
array( array(
'name' => esc_html__( 'Regenerate Thumbnails', 'split' ), 'name' => esc_html__( 'Regenerate Thumbnails', 'splits' ),
'slug' => 'regenerate-thumbnails', 'slug' => 'regenerate-thumbnails',
), ),
array( array(
'name' => esc_html__( 'WP-PageNavi', 'split' ), 'name' => esc_html__( 'WP-PageNavi', 'splits' ),
'slug' => 'wp-pagenavi', 'slug' => 'wp-pagenavi',
) )
); );
@ -712,17 +706,17 @@ if ( ! function_exists( 'split_plugins' ) ) {
} }
} }
add_action( 'tgmpa_register', 'split_plugins' ); add_action( 'tgmpa_register', 'splits_plugins' );
/* WooCommerce basic support /* WooCommerce basic support
/* ------------------------------------ */ /* ------------------------------------ */
function split_wc_wrapper_start() { function splits_wc_wrapper_start() {
echo '<div id="split-left">'; echo '<div id="splits-left">';
get_template_part('inc/featured'); get_template_part('inc/featured');
echo '</div><!--/#split-left-->'; echo '</div><!--/#splits-left-->';
echo '<div id="split-right">'; echo '<div id="splits-right">';
echo '<div id="split-right-top" class="pad">'; echo '<div id="splits-right-top" class="pad">';
echo '<div class="page-title">'; echo '<div class="page-title">';
echo '<h2>'; echo '<h2>';
echo woocommerce_page_title(); echo woocommerce_page_title();
@ -731,23 +725,23 @@ function split_wc_wrapper_start() {
echo '</div>'; echo '</div>';
echo '<div class="content pad">'; echo '<div class="content pad">';
} }
function split_wc_wrapper_end() { function splits_wc_wrapper_end() {
echo '</div><!--/.content-->'; echo '</div><!--/.content-->';
echo '</div><!--/#split-right-->'; echo '</div><!--/#splits-right-->';
} }
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
add_action('woocommerce_before_main_content', 'split_wc_wrapper_start', 10); add_action('woocommerce_before_main_content', 'splits_wc_wrapper_start', 10);
add_action('woocommerce_after_main_content', 'split_wc_wrapper_end', 10); add_action('woocommerce_after_main_content', 'splits_wc_wrapper_end', 10);
/* Accessibility IE11 fix - https://git.io/vWdr2 /* Accessibility IE11 fix - https://git.io/vWdr2
/* ------------------------------------ */ /* ------------------------------------ */
function split_skip_link_focus_fix() { function splits_skip_link_focus_fix() {
?> ?>
<script> <script>
/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1); /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
</script> </script>
<?php <?php
} }
add_action( 'wp_print_footer_scripts', 'split_skip_link_focus_fix' ); add_action( 'wp_print_footer_scripts', 'splits_skip_link_focus_fix' );

View file

@ -8,7 +8,7 @@
* or theme author for support. * or theme author for support.
* *
* @package TGM-Plugin-Activation * @package TGM-Plugin-Activation
* @version 2.6.1 for parent theme Split for publication on WordPress.org * @version 2.6.1 for parent theme Splits for publication on WordPress.org
* @link http://tgmpluginactivation.com/ * @link http://tgmpluginactivation.com/
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer * @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
* @copyright Copyright (c) 2011, Thomas Griffin * @copyright Copyright (c) 2011, Thomas Griffin
@ -324,77 +324,77 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
// Load class strings. // Load class strings.
$this->strings = array( $this->strings = array(
'page_title' => __( 'Install Required Plugins', 'split' ), 'page_title' => __( 'Install Required Plugins', 'splits' ),
'menu_title' => __( 'Install Plugins', 'split' ), 'menu_title' => __( 'Install Plugins', 'splits' ),
/* translators: %s: plugin name. */ /* translators: %s: plugin name. */
'installing' => __( 'Installing Plugin: %s', 'split' ), 'installing' => __( 'Installing Plugin: %s', 'splits' ),
/* translators: %s: plugin name. */ /* translators: %s: plugin name. */
'updating' => __( 'Updating Plugin: %s', 'split' ), 'updating' => __( 'Updating Plugin: %s', 'splits' ),
'oops' => __( 'Something went wrong with the plugin API.', 'split' ), 'oops' => __( 'Something went wrong with the plugin API.', 'splits' ),
'notice_can_install_required' => _n_noop( 'notice_can_install_required' => _n_noop(
/* translators: 1: plugin name(s). */ /* translators: 1: plugin name(s). */
'This theme requires the following plugin: %1$s.', 'This theme requires the following plugin: %1$s.',
'This theme requires the following plugins: %1$s.', 'This theme requires the following plugins: %1$s.',
'split' 'splits'
), ),
'notice_can_install_recommended' => _n_noop( 'notice_can_install_recommended' => _n_noop(
/* translators: 1: plugin name(s). */ /* translators: 1: plugin name(s). */
'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugin: %1$s.',
'This theme recommends the following plugins: %1$s.', 'This theme recommends the following plugins: %1$s.',
'split' 'splits'
), ),
'notice_ask_to_update' => _n_noop( 'notice_ask_to_update' => _n_noop(
/* translators: 1: plugin name(s). */ /* translators: 1: plugin name(s). */
'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
'split' 'splits'
), ),
'notice_ask_to_update_maybe' => _n_noop( 'notice_ask_to_update_maybe' => _n_noop(
/* translators: 1: plugin name(s). */ /* translators: 1: plugin name(s). */
'There is an update available for: %1$s.', 'There is an update available for: %1$s.',
'There are updates available for the following plugins: %1$s.', 'There are updates available for the following plugins: %1$s.',
'split' 'splits'
), ),
'notice_can_activate_required' => _n_noop( 'notice_can_activate_required' => _n_noop(
/* translators: 1: plugin name(s). */ /* translators: 1: plugin name(s). */
'The following required plugin is currently inactive: %1$s.', 'The following required plugin is currently inactive: %1$s.',
'The following required plugins are currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.',
'split' 'splits'
), ),
'notice_can_activate_recommended' => _n_noop( 'notice_can_activate_recommended' => _n_noop(
/* translators: 1: plugin name(s). */ /* translators: 1: plugin name(s). */
'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugin is currently inactive: %1$s.',
'The following recommended plugins are currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.',
'split' 'splits'
), ),
'install_link' => _n_noop( 'install_link' => _n_noop(
'Begin installing plugin', 'Begin installing plugin',
'Begin installing plugins', 'Begin installing plugins',
'split' 'splits'
), ),
'update_link' => _n_noop( 'update_link' => _n_noop(
'Begin updating plugin', 'Begin updating plugin',
'Begin updating plugins', 'Begin updating plugins',
'split' 'splits'
), ),
'activate_link' => _n_noop( 'activate_link' => _n_noop(
'Begin activating plugin', 'Begin activating plugin',
'Begin activating plugins', 'Begin activating plugins',
'split' 'splits'
), ),
'return' => __( 'Return to Required Plugins Installer', 'split' ), 'return' => __( 'Return to Required Plugins Installer', 'splits' ),
'dashboard' => __( 'Return to the Dashboard', 'split' ), 'dashboard' => __( 'Return to the Dashboard', 'splits' ),
'plugin_activated' => __( 'Plugin activated successfully.', 'split' ), 'plugin_activated' => __( 'Plugin activated successfully.', 'splits' ),
'activated_successfully' => __( 'The following plugin was activated successfully:', 'split' ), 'activated_successfully' => __( 'The following plugin was activated successfully:', 'splits' ),
/* translators: 1: plugin name. */ /* translators: 1: plugin name. */
'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'split' ), 'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'splits' ),
/* translators: 1: plugin name. */ /* translators: 1: plugin name. */
'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'split' ), 'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'splits' ),
/* translators: 1: dashboard link. */ /* translators: 1: dashboard link. */
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'split' ), 'complete' => __( 'All plugins installed and activated successfully. %1$s', 'splits' ),
'dismiss' => __( 'Dismiss this notice', 'split' ), 'dismiss' => __( 'Dismiss this notice', 'splits' ),
'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'split' ), 'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'splits' ),
'contact_admin' => __( 'Please contact the administrator of this site for help.', 'split' ), 'contact_admin' => __( 'Please contact the administrator of this site for help.', 'splits' ),
); );
do_action( 'tgmpa_register' ); do_action( 'tgmpa_register' );
@ -519,8 +519,8 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
$actions['update'] = sprintf( $actions['update'] = sprintf(
'<a href="%1$s" title="%2$s" class="edit">%3$s</a>', '<a href="%1$s" title="%2$s" class="edit">%3$s</a>',
esc_url( $this->get_tgmpa_status_url( 'update' ) ), esc_url( $this->get_tgmpa_status_url( 'update' ) ),
esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'split' ), esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'splits' ),
esc_html__( 'Update Required', 'split' ) esc_html__( 'Update Required', 'splits' )
); );
return $actions; return $actions;
@ -824,7 +824,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
// Display message based on if all plugins are now active or not. // Display message based on if all plugins are now active or not.
if ( $this->is_tgmpa_complete() ) { if ( $this->is_tgmpa_complete() ) {
echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'split' ) . '</a>' ), '</p>'; echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'splits' ) . '</a>' ), '</p>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>'; echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
} else { } else {
echo '<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>'; echo '<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>';
@ -931,10 +931,10 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) { if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) {
return trailingslashit( $to_path ); return trailingslashit( $to_path );
} else { } 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.', 'split' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'split' ), 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.', 'splits' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'splits' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
} }
} elseif ( empty( $subdir_name ) ) { } 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.', 'split' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'split' ), 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.', 'splits' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'splits' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
} }
} }
@ -1118,12 +1118,12 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
$count = count( $plugin_group ); $count = count( $plugin_group );
$linked_plugins = array_map( array( 'TGMPA_Utils', 'wrap_in_em' ), $linked_plugins ); $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. $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', 'split' ) . ' ' . $last_plugin ); $imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'splits' ) . ' ' . $last_plugin );
$rendered .= sprintf( $rendered .= sprintf(
$line_template, $line_template,
sprintf( sprintf(
translate_nooped_plural( $this->strings[ $type ], $count, 'split' ), translate_nooped_plural( $this->strings[ $type ], $count, 'splits' ),
$imploded, $imploded,
$count $count
) )
@ -1171,14 +1171,14 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
if ( $install_count > 0 ) { if ( $install_count > 0 ) {
$action_links['install'] = sprintf( $action_links['install'] = sprintf(
$link_template, $link_template,
translate_nooped_plural( $this->strings['install_link'], $install_count, 'split' ), translate_nooped_plural( $this->strings['install_link'], $install_count, 'splits' ),
esc_url( $this->get_tgmpa_status_url( 'install' ) ) esc_url( $this->get_tgmpa_status_url( 'install' ) )
); );
} }
if ( $update_count > 0 ) { if ( $update_count > 0 ) {
$action_links['update'] = sprintf( $action_links['update'] = sprintf(
$link_template, $link_template,
translate_nooped_plural( $this->strings['update_link'], $update_count, 'split' ), translate_nooped_plural( $this->strings['update_link'], $update_count, 'splits' ),
esc_url( $this->get_tgmpa_status_url( 'update' ) ) 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 ) { if ( current_user_can( 'activate_plugins' ) && $activate_count > 0 ) {
$action_links['activate'] = sprintf( $action_links['activate'] = sprintf(
$link_template, $link_template,
translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'split' ), translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'splits' ),
esc_url( $this->get_tgmpa_status_url( 'activate' ) ) esc_url( $this->get_tgmpa_status_url( 'activate' ) )
); );
} }
@ -1979,7 +1979,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
esc_html( esc_html(
sprintf( sprintf(
/* translators: %s: version number */ /* translators: %s: version number */
__( 'TGMPA v%s', 'split' ), __( 'TGMPA v%s', 'splits' ),
self::TGMPA_VERSION self::TGMPA_VERSION
) )
), ),
@ -2270,10 +2270,10 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
*/ */
protected function get_plugin_advise_type_text( $required ) { protected function get_plugin_advise_type_text( $required ) {
if ( true === $required ) { if ( true === $required ) {
return __( 'Required', 'split' ); return __( 'Required', 'splits' );
} }
return __( 'Recommended', 'split' ); return __( 'Recommended', 'splits' );
} }
/** /**
@ -2289,13 +2289,13 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
switch ( $type ) { switch ( $type ) {
case 'repo': case 'repo':
$string = __( 'WordPress Repository', 'split' ); $string = __( 'WordPress Repository', 'splits' );
break; break;
case 'external': case 'external':
$string = __( 'External Source', 'split' ); $string = __( 'External Source', 'splits' );
break; break;
case 'bundled': case 'bundled':
$string = __( 'Pre-Packaged', 'split' ); $string = __( 'Pre-Packaged', 'splits' );
break; break;
} }
@ -2312,25 +2312,25 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
*/ */
protected function get_plugin_status_text( $slug ) { protected function get_plugin_status_text( $slug ) {
if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) { if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) {
return __( 'Not Installed', 'split' ); return __( 'Not Installed', 'splits' );
} }
if ( ! $this->tgmpa->is_plugin_active( $slug ) ) { if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
$install_status = __( 'Installed But Not Activated', 'split' ); $install_status = __( 'Installed But Not Activated', 'splits' );
} else { } else {
$install_status = __( 'Active', 'split' ); $install_status = __( 'Active', 'splits' );
} }
$update_status = ''; $update_status = '';
if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) { if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
$update_status = __( 'Required Update not Available', 'split' ); $update_status = __( 'Required Update not Available', 'splits' );
} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) { } elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
$update_status = __( 'Requires Update', 'split' ); $update_status = __( 'Requires Update', 'splits' );
} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) { } elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
$update_status = __( 'Update recommended', 'split' ); $update_status = __( 'Update recommended', 'splits' );
} }
if ( '' === $update_status ) { if ( '' === $update_status ) {
@ -2339,7 +2339,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
return sprintf( return sprintf(
/* translators: 1: install status, 2: update status */ /* translators: 1: install status, 2: update status */
_x( '%1$s, %2$s', 'Install/Update Status', 'split' ), _x( '%1$s, %2$s', 'Install/Update Status', 'splits' ),
$install_status, $install_status,
$update_status $update_status
); );
@ -2385,19 +2385,19 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
switch ( $type ) { switch ( $type ) {
case 'all': case 'all':
/* translators: 1: number of plugins. */ /* translators: 1: number of plugins. */
$text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'split' ); $text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'splits' );
break; break;
case 'install': case 'install':
/* translators: 1: number of plugins. */ /* translators: 1: number of plugins. */
$text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'split' ); $text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'splits' );
break; break;
case 'update': case 'update':
/* translators: 1: number of plugins. */ /* translators: 1: number of plugins. */
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'split' ); $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'splits' );
break; break;
case 'activate': case 'activate':
/* translators: 1: number of plugins. */ /* translators: 1: number of plugins. */
$text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'split' ); $text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'splits' );
break; break;
default: default:
$text = ''; $text = '';
@ -2479,7 +2479,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
$output = array(); $output = array();
if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) { if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
$installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'split' ); $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'splits' );
$color = ''; $color = '';
if ( ! empty( $item['minimum_version'] ) && $this->tgmpa->does_plugin_require_update( $item['slug'] ) ) { 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( $output[] = sprintf(
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'split' ) . '</p>', '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'splits' ) . '</p>',
$color, $color,
$installed $installed
); );
@ -2495,7 +2495,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
if ( ! empty( $item['minimum_version'] ) ) { if ( ! empty( $item['minimum_version'] ) ) {
$output[] = sprintf( $output[] = sprintf(
'<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'split' ) . '</p>', '<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'splits' ) . '</p>',
$item['minimum_version'] $item['minimum_version']
); );
} }
@ -2507,7 +2507,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
} }
$output[] = sprintf( $output[] = sprintf(
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'split' ) . '</p>', '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'splits' ) . '</p>',
$color, $color,
$item['available_version'] $item['available_version']
); );
@ -2530,7 +2530,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
* @since 2.2.0 * @since 2.2.0
*/ */
public function no_items() { public function no_items() {
echo esc_html__( 'No plugins to install, update or activate.', 'split' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'split' ) . '</a>'; echo esc_html__( 'No plugins to install, update or activate.', 'splits' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'splits' ) . '</a>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>'; echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
} }
@ -2544,14 +2544,14 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
public function get_columns() { public function get_columns() {
$columns = array( $columns = array(
'cb' => '<input type="checkbox" />', 'cb' => '<input type="checkbox" />',
'plugin' => __( 'Plugin', 'split' ), 'plugin' => __( 'Plugin', 'splits' ),
'source' => __( 'Source', 'split' ), 'source' => __( 'Source', 'splits' ),
'type' => __( 'Type', 'split' ), 'type' => __( 'Type', 'splits' ),
); );
if ( 'all' === $this->view_context || 'update' === $this->view_context ) { if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
$columns['version'] = __( 'Version', 'split' ); $columns['version'] = __( 'Version', 'splits' );
$columns['status'] = __( 'Status', 'split' ); $columns['status'] = __( 'Status', 'splits' );
} }
return apply_filters( 'tgmpa_table_columns', $columns ); 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. // Display the 'Install' action link if the plugin is not yet available.
if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) { if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
/* translators: %2$s: plugin name in screen reader markup */ /* translators: %2$s: plugin name in screen reader markup */
$actions['install'] = __( 'Install %2$s', 'split' ); $actions['install'] = __( 'Install %2$s', 'splits' );
} else { } else {
// Display the 'Update' action link if an update is available and WP complies with plugin minimum. // 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'] ) ) { 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 */ /* translators: %2$s: plugin name in screen reader markup */
$actions['update'] = __( 'Update %2$s', 'split' ); $actions['update'] = __( 'Update %2$s', 'splits' );
} }
// Display the 'Activate' action link, but only if the plugin meets the minimum version. // Display the 'Activate' action link, but only if the plugin meets the minimum version.
if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) { if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
/* translators: %2$s: plugin name in screen reader markup */ /* translators: %2$s: plugin name in screen reader markup */
$actions['activate'] = __( 'Activate %2$s', 'split' ); $actions['activate'] = __( 'Activate %2$s', 'splits' );
} }
} }
@ -2681,7 +2681,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
<tr class="plugin-update-tr"> <tr class="plugin-update-tr">
<td colspan="', absint( $this->get_column_count() ), '" class="plugin-update colspanchange"> <td colspan="', absint( $this->get_column_count() ), '" class="plugin-update colspanchange">
<div class="update-message">', <div class="update-message">',
esc_html__( 'Upgrade message from the plugin author:', 'split' ), esc_html__( 'Upgrade message from the plugin author:', 'splits' ),
' <strong>', wp_kses_data( $item['upgrade_notice'] ), '</strong> ' <strong>', wp_kses_data( $item['upgrade_notice'] ), '</strong>
</div> </div>
</td> </td>
@ -2714,16 +2714,16 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) { if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) {
if ( current_user_can( 'install_plugins' ) ) { if ( current_user_can( 'install_plugins' ) ) {
$actions['tgmpa-bulk-install'] = __( 'Install', 'split' ); $actions['tgmpa-bulk-install'] = __( 'Install', 'splits' );
} }
} }
if ( 'install' !== $this->view_context ) { if ( 'install' !== $this->view_context ) {
if ( current_user_can( 'update_plugins' ) ) { if ( current_user_can( 'update_plugins' ) ) {
$actions['tgmpa-bulk-update'] = __( 'Update', 'split' ); $actions['tgmpa-bulk-update'] = __( 'Update', 'splits' );
} }
if ( current_user_can( 'activate_plugins' ) ) { if ( current_user_can( 'activate_plugins' ) ) {
$actions['tgmpa-bulk-activate'] = __( 'Activate', 'split' ); $actions['tgmpa-bulk-activate'] = __( 'Activate', 'splits' );
} }
} }
@ -2754,9 +2754,9 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// Did user actually select any plugins to install/update ? // Did user actually select any plugins to install/update ?
if ( empty( $_POST['plugin'] ) ) { if ( empty( $_POST['plugin'] ) ) {
if ( 'install' === $install_type ) { if ( 'install' === $install_type ) {
$message = __( 'No plugins were selected to be installed. No action taken.', 'split' ); $message = __( 'No plugins were selected to be installed. No action taken.', 'splits' );
} else { } else {
$message = __( 'No plugins were selected to be updated. No action taken.', 'split' ); $message = __( 'No plugins were selected to be updated. No action taken.', 'splits' );
} }
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>'; echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
@ -2797,9 +2797,9 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// No need to proceed further if we have no plugins to handle. // No need to proceed further if we have no plugins to handle.
if ( empty( $plugins_to_install ) ) { if ( empty( $plugins_to_install ) ) {
if ( 'install' === $install_type ) { if ( 'install' === $install_type ) {
$message = __( 'No plugins are available to be installed at this time.', 'split' ); $message = __( 'No plugins are available to be installed at this time.', 'splits' );
} else { } else {
$message = __( 'No plugins are available to be updated at this time.', 'split' ); $message = __( 'No plugins are available to be updated at this time.', 'splits' );
} }
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>'; echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
@ -2905,7 +2905,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// Did user actually select any plugins to activate ? // Did user actually select any plugins to activate ?
if ( empty( $_POST['plugin'] ) ) { if ( empty( $_POST['plugin'] ) ) {
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'split' ), '</p></div>'; echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'splits' ), '</p></div>';
return false; return false;
} }
@ -2931,7 +2931,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// Return early if there are no plugins to activate. // Return early if there are no plugins to activate.
if ( empty( $plugins_to_activate ) ) { if ( empty( $plugins_to_activate ) ) {
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'split' ), '</p></div>'; echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'splits' ), '</p></div>';
return false; return false;
} }
@ -2945,11 +2945,11 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
$count = count( $plugin_names ); // Count so we can use _n function. $count = count( $plugin_names ); // Count so we can use _n function.
$plugin_names = array_map( array( 'TGMPA_Utils', 'wrap_in_strong' ), $plugin_names ); $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. $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', 'split' ) . ' ' . $last_plugin ); $imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'splits' ) . ' ' . $last_plugin );
printf( // WPCS: xss ok. printf( // WPCS: xss ok.
'<div id="message" class="updated"><p>%1$s %2$s.</p></div>', '<div id="message" class="updated"><p>%1$s %2$s.</p></div>',
esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'split' ) ), esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'splits' ) ),
$imploded $imploded
); );
@ -3155,8 +3155,8 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
* @since 2.2.0 * @since 2.2.0
*/ */
public function activate_strings() { public function activate_strings() {
$this->strings['activation_failed'] = __( 'Plugin activation failed.', 'split' ); $this->strings['activation_failed'] = __( 'Plugin activation failed.', 'splits' );
$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'split' ); $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'splits' );
} }
/** /**
@ -3495,29 +3495,29 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
if ( 'update' === $this->options['install_type'] ) { if ( 'update' === $this->options['install_type'] ) {
parent::add_strings(); parent::add_strings();
/* translators: 1: plugin name, 2: action number 3: total number of actions. */ /* 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)', 'split' ); $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'splits' );
} else { } else {
/* translators: 1: plugin name, 2: error message. */ /* translators: 1: plugin name, 2: error message. */
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'split' ); $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'splits' );
/* translators: 1: plugin name. */ /* translators: 1: plugin name. */
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'split' ); $this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'splits' );
if ( $this->tgmpa->is_automatic ) { if ( $this->tgmpa->is_automatic ) {
// Automatic activation strings. // 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.', 'split' ); $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.', 'splits' );
/* translators: 1: plugin name. */ /* translators: 1: plugin name. */
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'split' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'split' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'split' ) . '</span>.</a>'; $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'splits' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'splits' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'splits' ) . '</span>.</a>';
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'split' ); $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'splits' );
/* translators: 1: plugin name, 2: action number 3: total number of actions. */ /* 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)', 'split' ); $this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'splits' );
} else { } else {
// Default installation strings. // 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.', 'split' ); $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'splits' );
/* translators: 1: plugin name. */ /* translators: 1: plugin name. */
$this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'split' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'split' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'split' ) . '</span>.</a>'; $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'splits' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'splits' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'splits' ) . '</span>.</a>';
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'split' ); $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'splits' );
/* translators: 1: plugin name, 2: action number 3: total number of actions. */ /* 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)', 'split' ); $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'splits' );
} }
} }
} }
@ -3577,7 +3577,7 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>'; echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
$update_actions['dashboard'] = sprintf( $update_actions['dashboard'] = sprintf(
esc_html( $this->tgmpa->strings['complete'] ), esc_html( $this->tgmpa->strings['complete'] ),
'<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'split' ) . '</a>' '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'splits' ) . '</a>'
); );
} else { } else {
$update_actions['tgmpa_page'] = '<a href="' . esc_url( $this->tgmpa->get_tgmpa_url() ) . '" target="_parent">' . esc_html( $this->tgmpa->strings['return'] ) . '</a>'; $update_actions['tgmpa_page'] = '<a href="' . esc_url( $this->tgmpa->get_tgmpa_url() ) . '" target="_parent">' . esc_html( $this->tgmpa->strings['return'] ) . '</a>';

View file

@ -5,9 +5,9 @@
/* Convert hexadecimal to rgb /* Convert hexadecimal to rgb
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_hex2rgb' ) ) { if ( ! function_exists( 'splits_hex2rgb' ) ) {
function split_hex2rgb( $hex, $array=false ) { function splits_hex2rgb( $hex, $array=false ) {
$hex = str_replace("#", "", $hex); $hex = str_replace("#", "", $hex);
if ( strlen($hex) == 3 ) { if ( strlen($hex) == 3 ) {
@ -30,9 +30,9 @@ if ( ! function_exists( 'split_hex2rgb' ) ) {
/* Google fonts /* Google fonts
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_enqueue_google_fonts' ) ) { if ( ! function_exists( 'splits_enqueue_google_fonts' ) ) {
function split_enqueue_google_fonts () { function splits_enqueue_google_fonts () {
if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) { 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' ) == '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' ); } 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( 'split_enqueue_google_fonts' ) ) {
} }
} }
add_action( 'wp_enqueue_scripts', 'split_enqueue_google_fonts' ); add_action( 'wp_enqueue_scripts', 'splits_enqueue_google_fonts' );
/* Dynamic css output /* Dynamic css output
/* ------------------------------------ */ /* ------------------------------------ */
if ( ! function_exists( 'split_dynamic_css' ) ) { if ( ! function_exists( 'splits_dynamic_css' ) ) {
function split_dynamic_css() { function splits_dynamic_css() {
if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) { if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) {
// rgb values // rgb values
$color_1 = get_theme_mod('color-1'); $color_1 = get_theme_mod('color-1');
$color_1_rgb = split_hex2rgb($color_1); $color_1_rgb = splits_hex2rgb($color_1);
// start output // start output
$styles = ''; $styles = '';
@ -204,9 +204,9 @@ a,
if ( get_theme_mod( 'header_textcolor' ) != '' ) { if ( get_theme_mod( 'header_textcolor' ) != '' ) {
$styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n"; $styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n";
} }
wp_add_inline_style( 'split-style', $styles ); wp_add_inline_style( 'splits-style', $styles );
} }
} }
} }
add_action( 'wp_enqueue_scripts', 'split_dynamic_css' ); add_action( 'wp_enqueue_scripts', 'splits_dynamic_css' );

View file

@ -1,5 +1,5 @@
<?php <?php
function split_get_meta_box( $meta_boxes ) { function splits_get_meta_box( $meta_boxes ) {
/* do not show */ /* do not show */
$prefix = '_'; $prefix = '_';
@ -18,7 +18,7 @@ function split_get_meta_box( $meta_boxes ) {
/* ------------------------------------ */ /* ------------------------------------ */
$meta_boxes[] = array( $meta_boxes[] = array(
'id' => 'page-options', 'id' => 'page-options',
'title' => esc_html__( 'Page Options', 'split' ), 'title' => esc_html__( 'Page Options', 'splits' ),
'post_types' => array( 'page' ), 'post_types' => array( 'page' ),
'context' => 'advanced', 'context' => 'advanced',
'priority' => 'high', 'priority' => 'high',
@ -26,15 +26,15 @@ function split_get_meta_box( $meta_boxes ) {
'fields' => array( 'fields' => array(
array( array(
'id' => $prefix . 'sidebar_primary', 'id' => $prefix . 'sidebar_primary',
'name' => esc_html__( 'Primary Sidebar', 'split' ), 'name' => esc_html__( 'Primary Sidebar', 'splits' ),
'type' => 'select', 'type' => 'select',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
'options' => $sidebars_choices, 'options' => $sidebars_choices,
), ),
array( array(
'id' => $prefix . 'layout', 'id' => $prefix . 'layout',
'type' => 'image_select', 'type' => 'image_select',
'name' => esc_html__( 'Layout', 'split' ), 'name' => esc_html__( 'Layout', 'splits' ),
'std' => 'inherit', 'std' => 'inherit',
'force_delete' => false, 'force_delete' => false,
'max_file_uploads' => '4', 'max_file_uploads' => '4',
@ -51,7 +51,7 @@ function split_get_meta_box( $meta_boxes ) {
/* ------------------------------------ */ /* ------------------------------------ */
$meta_boxes[] = array( $meta_boxes[] = array(
'id' => 'post-options', 'id' => 'post-options',
'title' => esc_html__( 'Post Options', 'split' ), 'title' => esc_html__( 'Post Options', 'splits' ),
'post_types' => array( 'post' ), 'post_types' => array( 'post' ),
'context' => 'advanced', 'context' => 'advanced',
'priority' => 'high', 'priority' => 'high',
@ -59,15 +59,15 @@ function split_get_meta_box( $meta_boxes ) {
'fields' => array( 'fields' => array(
array( array(
'id' => $prefix . 'sidebar_primary', 'id' => $prefix . 'sidebar_primary',
'name' => esc_html__( 'Primary Sidebar', 'split' ), 'name' => esc_html__( 'Primary Sidebar', 'splits' ),
'type' => 'select', 'type' => 'select',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
'options' => $sidebars_choices, 'options' => $sidebars_choices,
), ),
array( array(
'id' => $prefix . 'layout', 'id' => $prefix . 'layout',
'type' => 'image_select', 'type' => 'image_select',
'name' => esc_html__( 'Layout', 'split' ), 'name' => esc_html__( 'Layout', 'splits' ),
'std' => 'inherit', 'std' => 'inherit',
'force_delete' => false, 'force_delete' => false,
'max_file_uploads' => '4', 'max_file_uploads' => '4',
@ -82,4 +82,4 @@ function split_get_meta_box( $meta_boxes ) {
return $meta_boxes; return $meta_boxes;
} }
add_filter( 'rwmb_meta_boxes', 'split_get_meta_box' ); add_filter( 'rwmb_meta_boxes', 'splits_get_meta_box' );

View file

@ -167,7 +167,7 @@ class Nav {
*/ */
public static function nav_menu( $args, $toggle_label = false, $nav_classes = 'main-navigation nav-menu' ) { public static function nav_menu( $args, $toggle_label = false, $nav_classes = 'main-navigation nav-menu' ) {
if ( false === $toggle_label ) { if ( false === $toggle_label ) {
$toggle_label = '<span class="screen-reader-text">' . esc_html__( 'Expand Menu', 'split' ) . '</span><div class="menu-toggle-icon"><span></span><span></span><span></span></div>'; $toggle_label = '<span class="screen-reader-text">' . esc_html__( 'Expand Menu', 'splits' ) . '</span><div class="menu-toggle-icon"><span></span><span></span><span></span></div>';
} }
?> ?>
<nav id="<?php echo esc_attr( $args['menu_id'] ); ?>-nav" class="<?php echo esc_attr( $nav_classes ); ?>"> <nav id="<?php echo esc_attr( $args['menu_id'] ); ?>-nav" class="<?php echo esc_attr( $nav_classes ); ?>">
@ -209,7 +209,7 @@ class Nav {
// Skip when the item has no sub-menu. // Skip when the item has no sub-menu.
if ( in_array( 'menu-item-has-children', $item->classes, true ) ) { if ( in_array( 'menu-item-has-children', $item->classes, true ) ) {
$html = '<span class="menu-item-wrapper has-arrow">'; $html = '<span class="menu-item-wrapper has-arrow">';
$item_output .= '<button onClick="alxMediaMenu.toggleItem(this)"><span class="screen-reader-text">' . esc_html__( 'Toggle Child Menu', 'split' ) . '</span><svg class="svg-icon" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 20 12"><polygon fill="" fill-rule="evenodd" points="1319.899 365.778 1327.678 358 1329.799 360.121 1319.899 370.021 1310 360.121 1312.121 358" transform="translate(-1310 -358)"></polygon></svg></button>'; $item_output .= '<button onClick="alxMediaMenu.toggleItem(this)"><span class="screen-reader-text">' . esc_html__( 'Toggle Child Menu', 'splits' ) . '</span><svg class="svg-icon" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 20 12"><polygon fill="" fill-rule="evenodd" points="1319.899 365.778 1327.678 358 1329.799 360.121 1319.899 370.021 1310 360.121 1312.121 358" transform="translate(-1310 -358)"></polygon></svg></button>';
} }
$html .= $item_output; $html .= $item_output;
@ -283,8 +283,8 @@ class Nav {
*/ */
return sprintf( return sprintf(
/* Translators: %1$s: "Current Page:". %2$s: The menu-item title. */ /* Translators: %1$s: "Current Page:". %2$s: The menu-item title. */
__( '<span class="screen-reader-text">%1$s </span>%2$s', 'split' ), __( '<span class="screen-reader-text">%1$s </span>%2$s', 'splits' ),
esc_html__( 'Current Page:', 'split' ), esc_html__( 'Current Page:', 'splits' ),
$title $title
); );
} }
@ -297,8 +297,8 @@ class Nav {
*/ */
return sprintf( return sprintf(
/* Translators: %1$s: "Current Page Parent:". %2$s: The menu-item title. */ /* Translators: %1$s: "Current Page Parent:". %2$s: The menu-item title. */
__( '<span class="screen-reader-text">%1$s </span>%2$s', 'split' ), __( '<span class="screen-reader-text">%1$s </span>%2$s', 'splits' ),
esc_html__( 'Current Page Parent', 'split' ), esc_html__( 'Current Page Parent', 'splits' ),
$title $title
); );
} }

View file

@ -5,7 +5,7 @@ if ( ! class_exists( 'Kirki' ) ) {
/* Add Config /* Add Config
/* ------------------------------------ */ /* ------------------------------------ */
Kirki::add_config( 'split', array( Kirki::add_config( 'splits', array(
'capability' => 'edit_theme_options', 'capability' => 'edit_theme_options',
'option_type' => 'theme_mod', 'option_type' => 'theme_mod',
) ); ) );
@ -14,49 +14,49 @@ Kirki::add_config( 'split', array(
/* ------------------------------------ */ /* ------------------------------------ */
Kirki::add_panel( 'options', array( Kirki::add_panel( 'options', array(
'priority' => 10, 'priority' => 10,
'title' => esc_html__( 'Theme Options', 'split' ), 'title' => esc_html__( 'Theme Options', 'splits' ),
) ); ) );
/* Add Sections /* Add Sections
/* ------------------------------------ */ /* ------------------------------------ */
Kirki::add_section( 'general', array( Kirki::add_section( 'general', array(
'priority' => 10, 'priority' => 10,
'title' => esc_html__( 'General', 'split' ), 'title' => esc_html__( 'General', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
Kirki::add_section( 'blog', array( Kirki::add_section( 'blog', array(
'priority' => 20, 'priority' => 20,
'title' => esc_html__( 'Blog', 'split' ), 'title' => esc_html__( 'Blog', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
Kirki::add_section( 'header', array( Kirki::add_section( 'header', array(
'priority' => 30, 'priority' => 30,
'title' => esc_html__( 'Header', 'split' ), 'title' => esc_html__( 'Header', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
Kirki::add_section( 'footer', array( Kirki::add_section( 'footer', array(
'priority' => 40, 'priority' => 40,
'title' => esc_html__( 'Footer', 'split' ), 'title' => esc_html__( 'Footer', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
Kirki::add_section( 'layout', array( Kirki::add_section( 'layout', array(
'priority' => 50, 'priority' => 50,
'title' => esc_html__( 'Layout', 'split' ), 'title' => esc_html__( 'Layout', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
Kirki::add_section( 'sidebars', array( Kirki::add_section( 'sidebars', array(
'priority' => 60, 'priority' => 60,
'title' => esc_html__( 'Sidebars', 'split' ), 'title' => esc_html__( 'Sidebars', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
Kirki::add_section( 'social', array( Kirki::add_section( 'social', array(
'priority' => 70, 'priority' => 70,
'title' => esc_html__( 'Social Links', 'split' ), 'title' => esc_html__( 'Social Links', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
Kirki::add_section( 'styling', array( Kirki::add_section( 'styling', array(
'priority' => 80, 'priority' => 80,
'title' => esc_html__( 'Styling', 'split' ), 'title' => esc_html__( 'Styling', 'splits' ),
'panel' => 'options', 'panel' => 'options',
) ); ) );
@ -64,78 +64,78 @@ Kirki::add_section( 'styling', array(
/* ------------------------------------ */ /* ------------------------------------ */
// General: Mobile Sidebar // General: Mobile Sidebar
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'mobile-sidebar-hide', 'settings' => 'mobile-sidebar-hide',
'label' => esc_html__( 'Mobile Sidebar Content', 'split' ), 'label' => esc_html__( 'Mobile Sidebar Content', 'splits' ),
'description' => esc_html__( 'Sidebar content on low-resolution mobile devices (320px)', 'split' ), 'description' => esc_html__( 'Sidebar content on low-resolution mobile devices (320px)', 'splits' ),
'section' => 'general', 'section' => 'general',
'default' => 'on', 'default' => 'on',
) ); ) );
// General: Post Comments // General: Post Comments
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'post-comments', 'settings' => 'post-comments',
'label' => esc_html__( 'Post Comments', 'split' ), 'label' => esc_html__( 'Post Comments', 'splits' ),
'description' => esc_html__( 'Comments on posts', 'split' ), 'description' => esc_html__( 'Comments on posts', 'splits' ),
'section' => 'general', 'section' => 'general',
'default' => 'on', 'default' => 'on',
) ); ) );
// General: Page Comments // General: Page Comments
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'page-comments', 'settings' => 'page-comments',
'label' => esc_html__( 'Page Comments', 'split' ), 'label' => esc_html__( 'Page Comments', 'splits' ),
'description' => esc_html__( 'Comments on pages', 'split' ), 'description' => esc_html__( 'Comments on pages', 'splits' ),
'section' => 'general', 'section' => 'general',
'default' => 'off', 'default' => 'off',
) ); ) );
// General: Recommended Plugins // General: Recommended Plugins
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'recommended-plugins', 'settings' => 'recommended-plugins',
'label' => esc_html__( 'Recommended Plugins', 'split' ), 'label' => esc_html__( 'Recommended Plugins', 'splits' ),
'description' => esc_html__( 'Enable or disable the recommended plugins notice', 'split' ), 'description' => esc_html__( 'Enable or disable the recommended plugins notice', 'splits' ),
'section' => 'general', 'section' => 'general',
'default' => 'on', 'default' => 'on',
) ); ) );
// Blog: Blog Layout // Blog: Blog Layout
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio', 'type' => 'radio',
'settings' => 'blog-layout', 'settings' => 'blog-layout',
'label' => esc_html__( 'Blog Layout', 'split' ), 'label' => esc_html__( 'Blog Layout', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => 'blog-list', 'default' => 'blog-list',
'choices' => array( 'choices' => array(
'blog-standard' => esc_html__( 'Standard', 'split' ), 'blog-standard' => esc_html__( 'Standard', 'splits' ),
'blog-grid' => esc_html__( 'Grid', 'split' ), 'blog-grid' => esc_html__( 'Grid', 'splits' ),
'blog-list' => esc_html__( 'List', 'split' ), 'blog-list' => esc_html__( 'List', 'splits' ),
), ),
) ); ) );
// Blog: Heading // Blog: Heading
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'text', 'type' => 'text',
'settings' => 'blog-heading', 'settings' => 'blog-heading',
'label' => esc_html__( 'Heading', 'split' ), 'label' => esc_html__( 'Heading', 'splits' ),
'description' => esc_html__( 'Your blog heading', 'split' ), 'description' => esc_html__( 'Your blog heading', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => '', 'default' => '',
) ); ) );
// Blog: Subheading // Blog: Subheading
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'text', 'type' => 'text',
'settings' => 'blog-subheading', 'settings' => 'blog-subheading',
'label' => esc_html__( 'Subheading', 'split' ), 'label' => esc_html__( 'Subheading', 'splits' ),
'description' => esc_html__( 'Your blog subheading', 'split' ), 'description' => esc_html__( 'Your blog subheading', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => '', 'default' => '',
) ); ) );
// Blog: Excerpt Length // Blog: Excerpt Length
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'slider', 'type' => 'slider',
'settings' => 'excerpt-length', 'settings' => 'excerpt-length',
'label' => esc_html__( 'Excerpt Length', 'split' ), 'label' => esc_html__( 'Excerpt Length', 'splits' ),
'description' => esc_html__( 'Max number of words. Set it to 0 to disable.', 'split' ), 'description' => esc_html__( 'Max number of words. Set it to 0 to disable.', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => '24', 'default' => '24',
'choices' => array( 'choices' => array(
@ -145,22 +145,22 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Blog: Featured Category // Blog: Featured Category
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 'featured-category', 'settings' => 'featured-category',
'label' => esc_html__( 'Featured Category', 'split' ), 'label' => esc_html__( 'Featured Category', 'splits' ),
'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'split' ), 'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => '', 'default' => '',
'choices' => Kirki_Helper::get_terms( 'category' ), 'choices' => Kirki_Helper::get_terms( 'category' ),
'placeholder' => esc_html__( 'Select a category', 'split' ), 'placeholder' => esc_html__( 'Select a category', 'splits' ),
) ); ) );
// Blog: Featured Post Count // Blog: Featured Post Count
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'slider', 'type' => 'slider',
'settings' => 'featured-posts-count', 'settings' => 'featured-posts-count',
'label' => esc_html__( 'Featured Post Count', 'split' ), 'label' => esc_html__( 'Featured Post Count', 'splits' ),
'description' => esc_html__( 'Max number of featured posts to display on the homepage.', 'split' ), 'description' => esc_html__( 'Max number of featured posts to display on the homepage.', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => '3', 'default' => '3',
'choices' => array( 'choices' => array(
@ -170,31 +170,31 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Blog: Featured Posts Include // Blog: Featured Posts Include
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'checkbox', 'type' => 'checkbox',
'settings' => 'featured-posts-include', 'settings' => 'featured-posts-include',
'label' => esc_html__( 'Featured Posts', 'split' ), 'label' => esc_html__( 'Featured Posts', 'splits' ),
'description' => esc_html__( 'To show featured posts in the slider AND the content below. Usually not recommended.', 'split' ), 'description' => esc_html__( 'To show featured posts in the slider AND the content below. Usually not recommended.', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => false, 'default' => false,
) ); ) );
// Blog: Highlight Category // Blog: Highlight Category
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 'highlight-category', 'settings' => 'highlight-category',
'label' => esc_html__( 'Highlight Category', 'split' ), 'label' => esc_html__( 'Highlight Category', 'splits' ),
'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'split' ), 'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => '', 'default' => '',
'choices' => Kirki_Helper::get_terms( 'category' ), 'choices' => Kirki_Helper::get_terms( 'category' ),
'placeholder' => esc_html__( 'Select a category', 'split' ), 'placeholder' => esc_html__( 'Select a category', 'splits' ),
) ); ) );
// Blog: Highlights Category Count // Blog: Highlights Category Count
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'slider', 'type' => 'slider',
'settings' => 'highlight-posts-count', 'settings' => 'highlight-posts-count',
'label' => esc_html__( 'Highlight Post Count', 'split' ), 'label' => esc_html__( 'Highlight Post Count', 'splits' ),
'description' => esc_html__( 'Max number of highlight posts to display. Set it to 0 to disable.', 'split' ), 'description' => esc_html__( 'Max number of highlight posts to display. Set it to 0 to disable.', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => '7', 'default' => '7',
'choices' => array( 'choices' => array(
@ -204,111 +204,111 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Blog: Frontpage Widgets Top // Blog: Frontpage Widgets Top
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'frontpage-widgets-top', 'settings' => 'frontpage-widgets-top',
'label' => esc_html__( 'Frontpage Widgets Top', 'split' ), 'label' => esc_html__( 'Frontpage Widgets Top', 'splits' ),
'description' => esc_html__( '2 columns of widgets', 'split' ), 'description' => esc_html__( '2 columns of widgets', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => 'off', 'default' => 'off',
) ); ) );
// Blog: Frontpage Widgets Bottom // Blog: Frontpage Widgets Bottom
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'frontpage-widgets-bottom', 'settings' => 'frontpage-widgets-bottom',
'label' => esc_html__( 'Frontpage Widgets Bottom', 'split' ), 'label' => esc_html__( 'Frontpage Widgets Bottom', 'splits' ),
'description' => esc_html__( '2 columns of widgets', 'split' ), 'description' => esc_html__( '2 columns of widgets', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => 'off', 'default' => 'off',
) ); ) );
// Blog: Comment Count // Blog: Comment Count
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'comment-count', 'settings' => 'comment-count',
'label' => esc_html__( 'Thumbnail Comment Count', 'split' ), 'label' => esc_html__( 'Thumbnail Comment Count', 'splits' ),
'description' => esc_html__( 'Comment count on thumbnails', 'split' ), 'description' => esc_html__( 'Comment count on thumbnails', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => 'on', 'default' => 'on',
) ); ) );
// Blog: Single - Authorbox // Blog: Single - Authorbox
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'author-bio', 'settings' => 'author-bio',
'label' => esc_html__( 'Single - Author Bio', 'split' ), 'label' => esc_html__( 'Single - Author Bio', 'splits' ),
'description' => esc_html__( 'Shows post author description, if it exists', 'split' ), 'description' => esc_html__( 'Shows post author description, if it exists', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => 'on', 'default' => 'on',
) ); ) );
// Blog: Single - Related Posts // Blog: Single - Related Posts
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio', 'type' => 'radio',
'settings' => 'related-posts', 'settings' => 'related-posts',
'label' => esc_html__( 'Single - Related Posts', 'split' ), 'label' => esc_html__( 'Single - Related Posts', 'splits' ),
'description' => esc_html__( 'Shows randomized related articles below the post', 'split' ), 'description' => esc_html__( 'Shows randomized related articles below the post', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => 'categories', 'default' => 'categories',
'choices' => array( 'choices' => array(
'disable' => esc_html__( 'Disable', 'split' ), 'disable' => esc_html__( 'Disable', 'splits' ),
'categories'=> esc_html__( 'Related by categories', 'split' ), 'categories'=> esc_html__( 'Related by categories', 'splits' ),
'tags' => esc_html__( 'Related by tags', 'split' ), 'tags' => esc_html__( 'Related by tags', 'splits' ),
), ),
) ); ) );
// Blog: Single - Post Navigation // Blog: Single - Post Navigation
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio', 'type' => 'radio',
'settings' => 'post-nav', 'settings' => 'post-nav',
'label' => esc_html__( 'Single - Post Navigation', 'split' ), 'label' => esc_html__( 'Single - Post Navigation', 'splits' ),
'description' => esc_html__( 'Shows links to the next and previous article', 'split' ), 'description' => esc_html__( 'Shows links to the next and previous article', 'splits' ),
'section' => 'blog', 'section' => 'blog',
'default' => 's1', 'default' => 's1',
'choices' => array( 'choices' => array(
'disable' => esc_html__( 'Disable', 'split' ), 'disable' => esc_html__( 'Disable', 'splits' ),
's1' => esc_html__( 'Sidebar Primary', 'split' ), 's1' => esc_html__( 'Sidebar Primary', 'splits' ),
'content' => esc_html__( 'Below content', 'split' ), 'content' => esc_html__( 'Below content', 'splits' ),
), ),
) ); ) );
// Header: Ads // Header: Ads
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'header-ads', 'settings' => 'header-ads',
'label' => esc_html__( 'Header Ads', 'split' ), 'label' => esc_html__( 'Header Ads', 'splits' ),
'description' => esc_html__( 'Header widget ads area', 'split' ), 'description' => esc_html__( 'Header widget ads area', 'splits' ),
'section' => 'header', 'section' => 'header',
'default' => 'off', 'default' => 'off',
) ); ) );
// Header: Search // Header: Search
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'header-search', 'settings' => 'header-search',
'label' => esc_html__( 'Header Search', 'split' ), 'label' => esc_html__( 'Header Search', 'splits' ),
'description' => esc_html__( 'Header search button', 'split' ), 'description' => esc_html__( 'Header search button', 'splits' ),
'section' => 'header', 'section' => 'header',
'default' => 'on', 'default' => 'on',
) ); ) );
// Header: Social Links // Header: Social Links
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'header-social', 'settings' => 'header-social',
'label' => esc_html__( 'Header Social Links', 'split' ), 'label' => esc_html__( 'Header Social Links', 'splits' ),
'description' => esc_html__( 'Social link icon buttons', 'split' ), 'description' => esc_html__( 'Social link icon buttons', 'splits' ),
'section' => 'header', 'section' => 'header',
'default' => 'on', 'default' => 'on',
) ); ) );
// Footer: Ads // Footer: Ads
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'footer-ads', 'settings' => 'footer-ads',
'label' => esc_html__( 'Footer Ads', 'split' ), 'label' => esc_html__( 'Footer Ads', 'splits' ),
'description' => esc_html__( 'Footer widget ads area', 'split' ), 'description' => esc_html__( 'Footer widget ads area', 'splits' ),
'section' => 'footer', 'section' => 'footer',
'default' => 'off', 'default' => 'off',
) ); ) );
// Footer: Widget Columns // Footer: Widget Columns
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'footer-widgets', 'settings' => 'footer-widgets',
'label' => esc_html__( 'Footer Widget Columns', 'split' ), 'label' => esc_html__( 'Footer Widget Columns', 'splits' ),
'description' => esc_html__( 'Select columns to enable footer widgets. Recommended number: 3', 'split' ), 'description' => esc_html__( 'Select columns to enable footer widgets. Recommended number: 3', 'splits' ),
'section' => 'footer', 'section' => 'footer',
'default' => '0', 'default' => '0',
'choices' => array( 'choices' => array(
@ -320,47 +320,47 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Footer: Social Links // Footer: Social Links
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'footer-social', 'settings' => 'footer-social',
'label' => esc_html__( 'Footer Social Links', 'split' ), 'label' => esc_html__( 'Footer Social Links', 'splits' ),
'description' => esc_html__( 'Social link icon buttons', 'split' ), 'description' => esc_html__( 'Social link icon buttons', 'splits' ),
'section' => 'footer', 'section' => 'footer',
'default' => 'on', 'default' => 'on',
) ); ) );
// Footer: Custom Logo // Footer: Custom Logo
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'image', 'type' => 'image',
'settings' => 'footer-logo', 'settings' => 'footer-logo',
'label' => esc_html__( 'Footer Logo', 'split' ), 'label' => esc_html__( 'Footer Logo', 'splits' ),
'description' => esc_html__( 'Upload your custom logo image', 'split' ), 'description' => esc_html__( 'Upload your custom logo image', 'splits' ),
'section' => 'footer', 'section' => 'footer',
'default' => '', 'default' => '',
) ); ) );
// Footer: Copyright // Footer: Copyright
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'text', 'type' => 'text',
'settings' => 'copyright', 'settings' => 'copyright',
'label' => esc_html__( 'Footer Copyright', 'split' ), 'label' => esc_html__( 'Footer Copyright', 'splits' ),
'description' => esc_html__( 'Replace the footer copyright text', 'split' ), 'description' => esc_html__( 'Replace the footer copyright text', 'splits' ),
'section' => 'footer', 'section' => 'footer',
'default' => '', 'default' => '',
) ); ) );
// Footer: Credit // Footer: Credit
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'credit', 'settings' => 'credit',
'label' => esc_html__( 'Footer Credit', 'split' ), 'label' => esc_html__( 'Footer Credit', 'splits' ),
'description' => esc_html__( 'Footer credit text', 'split' ), 'description' => esc_html__( 'Footer credit text', 'splits' ),
'section' => 'footer', 'section' => 'footer',
'default' => 'on', 'default' => 'on',
) ); ) );
// Layout: Global // Layout: Global
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-global', 'settings' => 'layout-global',
'label' => esc_html__( 'Global Layout', 'split' ), 'label' => esc_html__( 'Global Layout', 'splits' ),
'description' => esc_html__( 'Other layouts will override this option if they are set', 'split' ), 'description' => esc_html__( 'Other layouts will override this option if they are set', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'col-2cl', 'default' => 'col-2cl',
'choices' => array( 'choices' => array(
@ -369,11 +369,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Layout: Home // Layout: Home
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-home', 'settings' => 'layout-home',
'label' => esc_html__( 'Home', 'split' ), 'label' => esc_html__( 'Home', 'splits' ),
'description' => esc_html__( '(is_home) Posts homepage layout', 'split' ), 'description' => esc_html__( '(is_home) Posts homepage layout', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'inherit', 'default' => 'inherit',
'choices' => array( 'choices' => array(
@ -383,11 +383,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Layout: Single // Layout: Single
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-single', 'settings' => 'layout-single',
'label' => esc_html__( 'Single', 'split' ), 'label' => esc_html__( 'Single', 'splits' ),
'description' => esc_html__( '(is_single) Single post layout - If a post has a set layout, it will override this.', 'split' ), 'description' => esc_html__( '(is_single) Single post layout - If a post has a set layout, it will override this.', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'inherit', 'default' => 'inherit',
'choices' => array( 'choices' => array(
@ -397,11 +397,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Layout: Archive // Layout: Archive
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-archive', 'settings' => 'layout-archive',
'label' => esc_html__( 'Archive', 'split' ), 'label' => esc_html__( 'Archive', 'splits' ),
'description' => esc_html__( '(is_archive) Category, date, tag and author archive layout', 'split' ), 'description' => esc_html__( '(is_archive) Category, date, tag and author archive layout', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'inherit', 'default' => 'inherit',
'choices' => array( 'choices' => array(
@ -411,11 +411,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Layout : Archive - Category // Layout : Archive - Category
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-archive-category', 'settings' => 'layout-archive-category',
'label' => esc_html__( 'Archive - Category', 'split' ), 'label' => esc_html__( 'Archive - Category', 'splits' ),
'description' => esc_html__( '(is_category) Category archive layout', 'split' ), 'description' => esc_html__( '(is_category) Category archive layout', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'inherit', 'default' => 'inherit',
'choices' => array( 'choices' => array(
@ -425,11 +425,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Layout: Search // Layout: Search
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-search', 'settings' => 'layout-search',
'label' => esc_html__( 'Search', 'split' ), 'label' => esc_html__( 'Search', 'splits' ),
'description' => esc_html__( '(is_search) Search page layout', 'split' ), 'description' => esc_html__( '(is_search) Search page layout', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'inherit', 'default' => 'inherit',
'choices' => array( 'choices' => array(
@ -439,11 +439,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Layout: Error 404 // Layout: Error 404
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-404', 'settings' => 'layout-404',
'label' => esc_html__( 'Error 404', 'split' ), 'label' => esc_html__( 'Error 404', 'splits' ),
'description' => esc_html__( '(is_404) Error 404 page layout', 'split' ), 'description' => esc_html__( '(is_404) Error 404 page layout', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'inherit', 'default' => 'inherit',
'choices' => array( 'choices' => array(
@ -453,11 +453,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Layout: Default Page // Layout: Default Page
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'radio-image', 'type' => 'radio-image',
'settings' => 'layout-page', 'settings' => 'layout-page',
'label' => esc_html__( 'Default Page', 'split' ), 'label' => esc_html__( 'Default Page', 'splits' ),
'description' => esc_html__( '(is_page) Default page layout - If a page has a set layout, it will override this.', 'split' ), 'description' => esc_html__( '(is_page) Default page layout - If a page has a set layout, it will override this.', 'splits' ),
'section' => 'layout', 'section' => 'layout',
'default' => 'inherit', 'default' => 'inherit',
'choices' => array( 'choices' => array(
@ -468,7 +468,7 @@ Kirki::add_field( 'split_theme', array(
) ); ) );
function split_kirki_sidebars_select() { function splits_kirki_sidebars_select() {
$sidebars = array(); $sidebars = array();
if ( isset( $GLOBALS['wp_registered_sidebars'] ) ) { if ( isset( $GLOBALS['wp_registered_sidebars'] ) ) {
$sidebars = $GLOBALS['wp_registered_sidebars']; $sidebars = $GLOBALS['wp_registered_sidebars'];
@ -481,184 +481,184 @@ function split_kirki_sidebars_select() {
return; return;
} }
// Sidebars: Select // Sidebars: Select
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 's1-home', 'settings' => 's1-home',
'label' => esc_html__( 'Home', 'split' ), 'label' => esc_html__( 'Home', 'splits' ),
'description' => esc_html__( '(is_home) Primary', 'split' ), 'description' => esc_html__( '(is_home) Primary', 'splits' ),
'section' => 'sidebars', 'section' => 'sidebars',
'choices' => $sidebars_choices, 'choices' => $sidebars_choices,
'default' => '', 'default' => '',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
) ); ) );
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 's1-single', 'settings' => 's1-single',
'label' => esc_html__( 'Single', 'split' ), 'label' => esc_html__( 'Single', 'splits' ),
'description' => esc_html__( '(is_single) Primary - If a single post has a unique sidebar, it will override this.', 'split' ), 'description' => esc_html__( '(is_single) Primary - If a single post has a unique sidebar, it will override this.', 'splits' ),
'section' => 'sidebars', 'section' => 'sidebars',
'choices' => $sidebars_choices, 'choices' => $sidebars_choices,
'default' => '', 'default' => '',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
) ); ) );
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 's1-archive', 'settings' => 's1-archive',
'label' => esc_html__( 'Archive', 'split' ), 'label' => esc_html__( 'Archive', 'splits' ),
'description' => esc_html__( '(is_archive) Primary', 'split' ), 'description' => esc_html__( '(is_archive) Primary', 'splits' ),
'section' => 'sidebars', 'section' => 'sidebars',
'choices' => $sidebars_choices, 'choices' => $sidebars_choices,
'default' => '', 'default' => '',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
) ); ) );
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 's1-archive-category', 'settings' => 's1-archive-category',
'label' => esc_html__( 'Archive - Category', 'split' ), 'label' => esc_html__( 'Archive - Category', 'splits' ),
'description' => esc_html__( '(is_category) Primary', 'split' ), 'description' => esc_html__( '(is_category) Primary', 'splits' ),
'section' => 'sidebars', 'section' => 'sidebars',
'choices' => $sidebars_choices, 'choices' => $sidebars_choices,
'default' => '', 'default' => '',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
) ); ) );
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 's1-search', 'settings' => 's1-search',
'label' => esc_html__( 'Search', 'split' ), 'label' => esc_html__( 'Search', 'splits' ),
'description' => esc_html__( '(is_search) Primary', 'split' ), 'description' => esc_html__( '(is_search) Primary', 'splits' ),
'section' => 'sidebars', 'section' => 'sidebars',
'choices' => $sidebars_choices, 'choices' => $sidebars_choices,
'default' => '', 'default' => '',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
) ); ) );
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 's1-404', 'settings' => 's1-404',
'label' => esc_html__( 'Error 404', 'split' ), 'label' => esc_html__( 'Error 404', 'splits' ),
'description' => esc_html__( '(is_404) Primary', 'split' ), 'description' => esc_html__( '(is_404) Primary', 'splits' ),
'section' => 'sidebars', 'section' => 'sidebars',
'choices' => $sidebars_choices, 'choices' => $sidebars_choices,
'default' => '', 'default' => '',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
) ); ) );
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 's1-page', 'settings' => 's1-page',
'label' => esc_html__( 'Default Page', 'split' ), 'label' => esc_html__( 'Default Page', 'splits' ),
'description' => esc_html__( '(is_page) Primary - If a page has a unique sidebar, it will override this.', 'split' ), 'description' => esc_html__( '(is_page) Primary - If a page has a unique sidebar, it will override this.', 'splits' ),
'section' => 'sidebars', 'section' => 'sidebars',
'choices' => $sidebars_choices, 'choices' => $sidebars_choices,
'default' => '', 'default' => '',
'placeholder' => esc_html__( 'Select a sidebar', 'split' ), 'placeholder' => esc_html__( 'Select a sidebar', 'splits' ),
) ); ) );
} }
add_action( 'init', 'split_kirki_sidebars_select', 999 ); add_action( 'init', 'splits_kirki_sidebars_select', 999 );
// Social Links: List // Social Links: List
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'repeater', 'type' => 'repeater',
'label' => esc_html__( 'Create Social Links', 'split' ), 'label' => esc_html__( 'Create Social Links', 'splits' ),
'description' => esc_html__( 'Create and organize your social links', 'split' ), 'description' => esc_html__( 'Create and organize your social links', 'splits' ),
'section' => 'social', 'section' => 'social',
'tooltip' => esc_html__( 'Font Awesome names:', 'split' ) . ' <a href="https://fontawesome.com/v5/search?s=brands" target="_blank"><strong>' . esc_html__( 'View All', 'split' ) . ' </strong></a>', 'tooltip' => esc_html__( 'Font Awesome names:', 'splits' ) . ' <a href="https://fontawesome.com/v5/search?s=brands" target="_blank"><strong>' . esc_html__( 'View All', 'splits' ) . ' </strong></a>',
'row_label' => array( 'row_label' => array(
'type' => 'text', 'type' => 'text',
'value' => esc_html__('social link', 'split' ), 'value' => esc_html__('social link', 'splits' ),
), ),
'settings' => 'social-links', 'settings' => 'social-links',
'default' => '', 'default' => '',
'fields' => array( 'fields' => array(
'social-title' => array( 'social-title' => array(
'type' => 'text', 'type' => 'text',
'label' => esc_html__( 'Title', 'split' ), 'label' => esc_html__( 'Title', 'splits' ),
'description' => esc_html__( 'Ex: Facebook', 'split' ), 'description' => esc_html__( 'Ex: Facebook', 'splits' ),
'default' => '', 'default' => '',
), ),
'social-icon' => array( 'social-icon' => array(
'type' => 'text', 'type' => 'text',
'label' => esc_html__( 'Icon Name', 'split' ), 'label' => esc_html__( 'Icon Name', 'splits' ),
'description' => esc_html__( 'Font Awesome icons. Ex: fa-facebook ', 'split' ) . ' <a href="https://fontawesome.com/v5/search?s=brands" target="_blank"><strong>' . esc_html__( 'View All', 'split' ) . ' </strong></a>', 'description' => esc_html__( 'Font Awesome icons. Ex: fa-facebook ', 'splits' ) . ' <a href="https://fontawesome.com/v5/search?s=brands" target="_blank"><strong>' . esc_html__( 'View All', 'splits' ) . ' </strong></a>',
'default' => 'fa-', 'default' => 'fa-',
), ),
'social-link' => array( 'social-link' => array(
'type' => 'link', 'type' => 'link',
'label' => esc_html__( 'Link', 'split' ), 'label' => esc_html__( 'Link', 'splits' ),
'description' => esc_html__( 'Enter the full url for your icon button', 'split' ), 'description' => esc_html__( 'Enter the full url for your icon button', 'splits' ),
'default' => 'http://', 'default' => 'http://',
), ),
'social-color' => array( 'social-color' => array(
'type' => 'color', 'type' => 'color',
'label' => esc_html__( 'Icon Color', 'split' ), 'label' => esc_html__( 'Icon Color', 'splits' ),
'description' => esc_html__( 'Set a unique color for your icon (optional)', 'split' ), 'description' => esc_html__( 'Set a unique color for your icon (optional)', 'splits' ),
'default' => '', 'default' => '',
), ),
'social-target' => array( 'social-target' => array(
'type' => 'checkbox', 'type' => 'checkbox',
'label' => esc_html__( 'Open in new window', 'split' ), 'label' => esc_html__( 'Open in new window', 'splits' ),
'default' => false, 'default' => false,
), ),
) )
) ); ) );
// Styling: Enable // Styling: Enable
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'dynamic-styles', 'settings' => 'dynamic-styles',
'label' => esc_html__( 'Dynamic Styles', 'split' ), 'label' => esc_html__( 'Dynamic Styles', 'splits' ),
'description' => esc_html__( 'Turn on to use the styling options below', 'split' ), 'description' => esc_html__( 'Turn on to use the styling options below', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => 'on', 'default' => 'on',
) ); ) );
// Styling: Boxed Layout // Styling: Boxed Layout
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'switch', 'type' => 'switch',
'settings' => 'boxed', 'settings' => 'boxed',
'label' => esc_html__( 'Boxed Layout', 'split' ), 'label' => esc_html__( 'Boxed Layout', 'splits' ),
'description' => esc_html__( 'Use a boxed layout', 'split' ), 'description' => esc_html__( 'Use a boxed layout', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => 'off', 'default' => 'off',
) ); ) );
// Styling: Font // Styling: Font
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'select', 'type' => 'select',
'settings' => 'font', 'settings' => 'font',
'label' => esc_html__( 'Font', 'split' ), 'label' => esc_html__( 'Font', 'splits' ),
'description' => esc_html__( 'Select font for the theme', 'split' ), 'description' => esc_html__( 'Select font for the theme', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => 'roboto', 'default' => 'roboto',
'choices' => array( 'choices' => array(
'titillium-web' => esc_html__( 'Titillium Web, Latin (Self-hosted)', 'split' ), 'titillium-web' => esc_html__( 'Titillium Web, Latin (Self-hosted)', 'splits' ),
'titillium-web-ext' => esc_html__( 'Titillium Web, Latin-Ext', 'split' ), 'titillium-web-ext' => esc_html__( 'Titillium Web, Latin-Ext', 'splits' ),
'droid-serif' => esc_html__( 'Droid Serif, Latin', 'split' ), 'droid-serif' => esc_html__( 'Droid Serif, Latin', 'splits' ),
'source-sans-pro' => esc_html__( 'Source Sans Pro, Latin-Ext', 'split' ), 'source-sans-pro' => esc_html__( 'Source Sans Pro, Latin-Ext', 'splits' ),
'lato' => esc_html__( 'Lato, Latin', 'split' ), 'lato' => esc_html__( 'Lato, Latin', 'splits' ),
'raleway' => esc_html__( 'Raleway, Latin', 'split' ), 'raleway' => esc_html__( 'Raleway, Latin', 'splits' ),
'ubuntu' => esc_html__( 'Ubuntu, Latin-Ext', 'split' ), 'ubuntu' => esc_html__( 'Ubuntu, Latin-Ext', 'splits' ),
'ubuntu-cyr' => esc_html__( 'Ubuntu, Latin / Cyrillic-Ext', 'split' ), 'ubuntu-cyr' => esc_html__( 'Ubuntu, Latin / Cyrillic-Ext', 'splits' ),
'roboto' => esc_html__( 'Roboto, Latin-Ext', 'split' ), 'roboto' => esc_html__( 'Roboto, Latin-Ext', 'splits' ),
'roboto-cyr' => esc_html__( 'Roboto, Latin / Cyrillic-Ext', 'split' ), 'roboto-cyr' => esc_html__( 'Roboto, Latin / Cyrillic-Ext', 'splits' ),
'roboto-condensed' => esc_html__( 'Roboto Condensed, Latin-Ext', 'split' ), 'roboto-condensed' => esc_html__( 'Roboto Condensed, Latin-Ext', 'splits' ),
'roboto-condensed-cyr' => esc_html__( 'Roboto Condensed, Latin / Cyrillic-Ext', 'split' ), 'roboto-condensed-cyr' => esc_html__( 'Roboto Condensed, Latin / Cyrillic-Ext', 'splits' ),
'roboto-slab' => esc_html__( 'Roboto Slab, Latin-Ext', 'split' ), 'roboto-slab' => esc_html__( 'Roboto Slab, Latin-Ext', 'splits' ),
'roboto-slab-cyr' => esc_html__( 'Roboto Slab, Latin / Cyrillic-Ext', 'split' ), 'roboto-slab-cyr' => esc_html__( 'Roboto Slab, Latin / Cyrillic-Ext', 'splits' ),
'playfair-display' => esc_html__( 'Playfair Display, Latin-Ext', 'split' ), 'playfair-display' => esc_html__( 'Playfair Display, Latin-Ext', 'splits' ),
'playfair-display-cyr' => esc_html__( 'Playfair Display, Latin / Cyrillic', 'split' ), 'playfair-display-cyr' => esc_html__( 'Playfair Display, Latin / Cyrillic', 'splits' ),
'open-sans' => esc_html__( 'Open Sans, Latin-Ext', 'split' ), 'open-sans' => esc_html__( 'Open Sans, Latin-Ext', 'splits' ),
'open-sans-cyr' => esc_html__( 'Open Sans, Latin / Cyrillic-Ext', 'split' ), 'open-sans-cyr' => esc_html__( 'Open Sans, Latin / Cyrillic-Ext', 'splits' ),
'pt-serif' => esc_html__( 'PT Serif, Latin-Ext', 'split' ), 'pt-serif' => esc_html__( 'PT Serif, Latin-Ext', 'splits' ),
'pt-serif-cyr' => esc_html__( 'PT Serif, Latin / Cyrillic-Ext', 'split' ), 'pt-serif-cyr' => esc_html__( 'PT Serif, Latin / Cyrillic-Ext', 'splits' ),
'arial' => esc_html__( 'Arial', 'split' ), 'arial' => esc_html__( 'Arial', 'splits' ),
'georgia' => esc_html__( 'Georgia', 'split' ), 'georgia' => esc_html__( 'Georgia', 'splits' ),
'verdana' => esc_html__( 'Verdana', 'split' ), 'verdana' => esc_html__( 'Verdana', 'splits' ),
'tahoma' => esc_html__( 'Tahoma', 'split' ), 'tahoma' => esc_html__( 'Tahoma', 'splits' ),
), ),
) ); ) );
// Styling: Container Width // Styling: Container Width
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'slider', 'type' => 'slider',
'settings' => 'container-width', 'settings' => 'container-width',
'label' => esc_html__( 'Website Max-width', 'split' ), 'label' => esc_html__( 'Website Max-width', 'splits' ),
'description' => esc_html__( 'Max-width of the container.', 'split' ), 'description' => esc_html__( 'Max-width of the container.', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => '1680', 'default' => '1680',
'choices' => array( 'choices' => array(
@ -668,43 +668,43 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Styling: Primary Color // Styling: Primary Color
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'color', 'type' => 'color',
'settings' => 'color-1', 'settings' => 'color-1',
'label' => esc_html__( 'Primary Color', 'split' ), 'label' => esc_html__( 'Primary Color', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => '#cd483c', 'default' => '#cd483c',
) ); ) );
// Styling: Mobile Menu Color // Styling: Mobile Menu Color
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'color', 'type' => 'color',
'settings' => 'color-mobile-menu', 'settings' => 'color-mobile-menu',
'label' => esc_html__( 'Mobile Menu Color', 'split' ), 'label' => esc_html__( 'Mobile Menu Color', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => '#cd483c', 'default' => '#cd483c',
) ); ) );
// Styling: Footer Menu Color // Styling: Footer Menu Color
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'color', 'type' => 'color',
'settings' => 'color-footer-menu', 'settings' => 'color-footer-menu',
'label' => esc_html__( 'Footer Menu Color', 'split' ), 'label' => esc_html__( 'Footer Menu Color', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => '#222222', 'default' => '#222222',
) ); ) );
// Styling: Footer Background // Styling: Footer Background
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'color', 'type' => 'color',
'settings' => 'color-footer', 'settings' => 'color-footer',
'label' => esc_html__( 'Footer Background', 'split' ), 'label' => esc_html__( 'Footer Background', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => '#181818', 'default' => '#181818',
) ); ) );
// Styling: Header Logo Max-height // Styling: Header Logo Max-height
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'slider', 'type' => 'slider',
'settings' => 'logo-max-height', 'settings' => 'logo-max-height',
'label' => esc_html__( 'Header Logo Image Max-height', 'split' ), 'label' => esc_html__( 'Header Logo Image Max-height', 'splits' ),
'description' => esc_html__( 'Your logo image should have the double height of this to be high resolution', 'split' ), 'description' => esc_html__( 'Your logo image should have the double height of this to be high resolution', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => '60', 'default' => '60',
'choices' => array( 'choices' => array(
@ -714,11 +714,11 @@ Kirki::add_field( 'split_theme', array(
), ),
) ); ) );
// Styling: Image Border Radius // Styling: Image Border Radius
Kirki::add_field( 'split_theme', array( Kirki::add_field( 'splits_theme', array(
'type' => 'slider', 'type' => 'slider',
'settings' => 'image-border-radius', 'settings' => 'image-border-radius',
'label' => esc_html__( 'Image Border Radius', 'split' ), 'label' => esc_html__( 'Image Border Radius', 'splits' ),
'description' => esc_html__( 'Give your thumbnails and layout images rounded corners', 'split' ), 'description' => esc_html__( 'Give your thumbnails and layout images rounded corners', 'splits' ),
'section' => 'styling', 'section' => 'styling',
'default' => '0', 'default' => '0',
'choices' => array( 'choices' => array(

View file

@ -1,626 +0,0 @@
<?php
/**
* Theme updater admin page and functions.
*
* @package EDD Sample Theme
*/
class EDD_Theme_Updater_Admin {
/**
* Variables required for the theme updater
*
* @since 1.0.0
* @type string
*/
protected $remote_api_url = null;
protected $theme_slug = null;
protected $version = null;
protected $author = null;
protected $download_id = null;
protected $renew_url = null;
protected $strings = null;
/**
* Initialize the class.
*
* @since 1.0.0
*/
function __construct( $config = array(), $strings = array() ) {
$config = wp_parse_args( $config, array(
'remote_api_url' => 'http://easydigitaldownloads.com',
'theme_slug' => get_template(),
'item_name' => '',
'license' => '',
'version' => '',
'author' => '',
'download_id' => '',
'renew_url' => '',
'beta' => false,
) );
/**
* Fires after the theme $config is setup.
*
* @since x.x.x
*
* @param array $config Array of EDD SL theme data.
*/
do_action( 'post_edd_sl_theme_updater_setup', $config );
// Set config arguments
$this->remote_api_url = $config['remote_api_url'];
$this->item_name = $config['item_name'];
$this->theme_slug = sanitize_key( $config['theme_slug'] );
$this->version = $config['version'];
$this->author = $config['author'];
$this->download_id = $config['download_id'];
$this->renew_url = $config['renew_url'];
$this->beta = $config['beta'];
// Populate version fallback
if ( '' == $config['version'] ) {
$theme = wp_get_theme( $this->theme_slug );
$this->version = $theme->get( 'Version' );
}
// Strings passed in from the updater config
$this->strings = $strings;
add_action( 'init', array( $this, 'updater' ) );
add_action( 'admin_init', array( $this, 'register_option' ) );
add_action( 'admin_init', array( $this, 'license_action' ) );
add_action( 'admin_menu', array( $this, 'license_menu' ) );
add_action( 'update_option_' . $this->theme_slug . '_license_key', array( $this, 'activate_license' ), 10, 2 );
add_filter( 'http_request_args', array( $this, 'disable_wporg_request' ), 5, 2 );
}
/**
* Creates the updater class.
*
* since 1.0.0
*/
function updater() {
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
/* If there is no valid license key status, don't allow updates. */
if ( get_option( $this->theme_slug . '_license_key_status', false) != 'valid' ) {
return;
}
if ( !class_exists( 'EDD_Theme_Updater' ) ) {
// Load our custom theme updater
include( dirname( __FILE__ ) . '/theme-updater-class.php' );
}
new EDD_Theme_Updater(
array(
'remote_api_url' => $this->remote_api_url,
'version' => $this->version,
'license' => trim( get_option( $this->theme_slug . '_license_key' ) ),
'item_name' => $this->item_name,
'author' => $this->author,
'beta' => $this->beta
),
$this->strings
);
}
/**
* Adds a menu item for the theme license under the appearance menu.
*
* since 1.0.0
*/
function license_menu() {
$strings = $this->strings;
add_theme_page(
$strings['theme-license'],
$strings['theme-license'],
'manage_options',
$this->theme_slug . '-license',
array( $this, 'license_page' )
);
}
/**
* Outputs the markup used on the theme license page.
*
* since 1.0.0
*/
function license_page() {
$strings = $this->strings;
$license = trim( get_option( $this->theme_slug . '_license_key' ) );
$status = get_option( $this->theme_slug . '_license_key_status', false );
// Checks license status to display under license key
if ( ! $license ) {
$message = $strings['enter-key'];
} else {
// delete_transient( $this->theme_slug . '_license_message' );
if ( ! get_transient( $this->theme_slug . '_license_message', false ) ) {
set_transient( $this->theme_slug . '_license_message', $this->check_license(), ( 60 * 60 * 24 ) );
}
$message = get_transient( $this->theme_slug . '_license_message' );
}
?>
<div class="wrap">
<h2><?php echo $strings['theme-license'] ?></h2>
<form method="post" action="options.php">
<?php settings_fields( $this->theme_slug . '-license' ); ?>
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row" valign="top">
<?php echo $strings['license-key']; ?>
</th>
<td>
<input id="<?php echo $this->theme_slug; ?>_license_key" name="<?php echo $this->theme_slug; ?>_license_key" type="text" class="regular-text" value="<?php echo esc_attr( $license ); ?>" />
<p class="description">
<?php echo $message; ?>
</p>
</td>
</tr>
<?php if ( $license ) { ?>
<tr valign="top">
<th scope="row" valign="top">
<?php echo $strings['license-action']; ?>
</th>
<td>
<?php
wp_nonce_field( $this->theme_slug . '_nonce', $this->theme_slug . '_nonce' );
if ( 'valid' == $status ) { ?>
<input type="submit" class="button-secondary" name="<?php echo $this->theme_slug; ?>_license_deactivate" value="<?php esc_attr_e( $strings['deactivate-license'] ); ?>"/>
<?php } else { ?>
<input type="submit" class="button-secondary" name="<?php echo $this->theme_slug; ?>_license_activate" value="<?php esc_attr_e( $strings['activate-license'] ); ?>"/>
<?php }
?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php submit_button(); ?>
</form>
<?php
}
/**
* Registers the option used to store the license key in the options table.
*
* since 1.0.0
*/
function register_option() {
register_setting(
$this->theme_slug . '-license',
$this->theme_slug . '_license_key',
array( $this, 'sanitize_license' )
);
}
/**
* Sanitizes the license key.
*
* since 1.0.0
*
* @param string $new License key that was submitted.
* @return string $new Sanitized license key.
*/
function sanitize_license( $new ) {
$old = get_option( $this->theme_slug . '_license_key' );
if ( $old && $old != $new ) {
// New license has been entered, so must reactivate
delete_option( $this->theme_slug . '_license_key_status' );
delete_transient( $this->theme_slug . '_license_message' );
}
return $new;
}
/**
* Makes a call to the API.
*
* @since 1.0.0
*
* @param array $api_params to be used for wp_remote_get.
* @return array $response decoded JSON response.
*/
function get_api_response( $api_params ) {
// Call the custom API.
$verify_ssl = (bool) apply_filters( 'edd_sl_api_request_verify_ssl', true );
$response = wp_remote_post( $this->remote_api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
return $response;
}
/**
* Activates the license key.
*
* @since 1.0.0
*/
function activate_license() {
$license = trim( get_option( $this->theme_slug . '_license_key' ) );
// Data to send in our API request.
$api_params = array(
'edd_action' => 'activate_license',
'license' => $license,
'item_name' => urlencode( $this->item_name ),
'url' => home_url()
);
$response = $this->get_api_response( $api_params );
// make sure the response came back okay
if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
if ( is_wp_error( $response ) ) {
$message = $response->get_error_message();
} else {
$message = __( 'An error occurred, please try again.' );
}
$base_url = admin_url( 'themes.php?page=' . $this->theme_slug . '-license' );
$redirect = add_query_arg( array( 'sl_theme_activation' => 'false', 'message' => urlencode( $message ) ), $base_url );
wp_redirect( $redirect );
exit();
} else {
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
if ( false === $license_data->success ) {
switch( $license_data->error ) {
case 'expired' :
$message = sprintf(
__( 'Your license key expired on %s.' ),
date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
);
break;
case 'disabled':
case 'revoked' :
$message = __( 'Your license key has been disabled.' );
break;
case 'missing' :
$message = __( 'Invalid license.' );
break;
case 'invalid' :
case 'site_inactive' :
$message = __( 'Your license is not active for this URL.' );
break;
case 'item_name_mismatch' :
$message = sprintf( __( 'This appears to be an invalid license key for %s.' ), $this->item_name );
break;
case 'no_activations_left':
$message = __( 'Your license key has reached its activation limit.' );
break;
default :
$message = __( 'An error occurred, please try again.' );
break;
}
if ( ! empty( $message ) ) {
$base_url = admin_url( 'themes.php?page=' . $this->theme_slug . '-license' );
$redirect = add_query_arg( array( 'sl_theme_activation' => 'false', 'message' => urlencode( $message ) ), $base_url );
wp_redirect( $redirect );
exit();
}
}
}
// $response->license will be either "active" or "inactive"
if ( $license_data && isset( $license_data->license ) ) {
update_option( $this->theme_slug . '_license_key_status', $license_data->license );
delete_transient( $this->theme_slug . '_license_message' );
}
wp_redirect( admin_url( 'themes.php?page=' . $this->theme_slug . '-license' ) );
exit();
}
/**
* Deactivates the license key.
*
* @since 1.0.0
*/
function deactivate_license() {
// Retrieve the license from the database.
$license = trim( get_option( $this->theme_slug . '_license_key' ) );
// Data to send in our API request.
$api_params = array(
'edd_action' => 'deactivate_license',
'license' => $license,
'item_name' => urlencode( $this->item_name ),
'url' => home_url()
);
$response = $this->get_api_response( $api_params );
// make sure the response came back okay
if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
if ( is_wp_error( $response ) ) {
$message = $response->get_error_message();
} else {
$message = __( 'An error occurred, please try again.' );
}
$base_url = admin_url( 'themes.php?page=' . $this->theme_slug . '-license' );
$redirect = add_query_arg( array( 'sl_theme_activation' => 'false', 'message' => urlencode( $message ) ), $base_url );
wp_redirect( $redirect );
exit();
} else {
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
// $license_data->license will be either "deactivated" or "failed"
if ( $license_data && ( $license_data->license == 'deactivated' ) ) {
delete_option( $this->theme_slug . '_license_key_status' );
delete_transient( $this->theme_slug . '_license_message' );
}
}
if ( ! empty( $message ) ) {
$base_url = admin_url( 'themes.php?page=' . $this->theme_slug . '-license' );
$redirect = add_query_arg( array( 'sl_theme_activation' => 'false', 'message' => urlencode( $message ) ), $base_url );
wp_redirect( $redirect );
exit();
}
wp_redirect( admin_url( 'themes.php?page=' . $this->theme_slug . '-license' ) );
exit();
}
/**
* Constructs a renewal link
*
* @since 1.0.0
*/
function get_renewal_link() {
// If a renewal link was passed in the config, use that
if ( '' != $this->renew_url ) {
return $this->renew_url;
}
// If download_id was passed in the config, a renewal link can be constructed
$license_key = trim( get_option( $this->theme_slug . '_license_key', false ) );
if ( '' != $this->download_id && $license_key ) {
$url = esc_url( $this->remote_api_url );
$url .= '/checkout/?edd_license_key=' . $license_key . '&download_id=' . $this->download_id;
return $url;
}
// Otherwise return the remote_api_url
return $this->remote_api_url;
}
/**
* Checks if a license action was submitted.
*
* @since 1.0.0
*/
function license_action() {
if ( isset( $_POST[ $this->theme_slug . '_license_activate' ] ) ) {
if ( check_admin_referer( $this->theme_slug . '_nonce', $this->theme_slug . '_nonce' ) ) {
$this->activate_license();
}
}
if ( isset( $_POST[$this->theme_slug . '_license_deactivate'] ) ) {
if ( check_admin_referer( $this->theme_slug . '_nonce', $this->theme_slug . '_nonce' ) ) {
$this->deactivate_license();
}
}
}
/**
* Checks if license is valid and gets expire date.
*
* @since 1.0.0
*
* @return string $message License status message.
*/
function check_license() {
$license = trim( get_option( $this->theme_slug . '_license_key' ) );
$strings = $this->strings;
$api_params = array(
'edd_action' => 'check_license',
'license' => $license,
'item_name' => urlencode( $this->item_name ),
'url' => home_url()
);
$response = $this->get_api_response( $api_params );
// make sure the response came back okay
if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
if ( is_wp_error( $response ) ) {
$message = $response->get_error_message();
} else {
$message = $strings['license-status-unknown'];
}
$base_url = admin_url( 'themes.php?page=' . $this->theme_slug . '-license' );
$redirect = add_query_arg( array( 'sl_theme_activation' => 'false', 'message' => urlencode( $message ) ), $base_url );
wp_redirect( $redirect );
exit();
} else {
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
// If response doesn't include license data, return
if ( !isset( $license_data->license ) ) {
$message = $strings['license-status-unknown'];
return $message;
}
// We need to update the license status at the same time the message is updated
if ( $license_data && isset( $license_data->license ) ) {
update_option( $this->theme_slug . '_license_key_status', $license_data->license );
}
// Get expire date
$expires = false;
if ( isset( $license_data->expires ) && 'lifetime' != $license_data->expires ) {
$expires = date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) );
$renew_link = '<a href="' . esc_url( $this->get_renewal_link() ) . '" target="_blank">' . $strings['renew'] . '</a>';
} elseif ( isset( $license_data->expires ) && 'lifetime' == $license_data->expires ) {
$expires = 'lifetime';
}
// Get site counts
$site_count = $license_data->site_count;
$license_limit = $license_data->license_limit;
// If unlimited
if ( 0 == $license_limit ) {
$license_limit = $strings['unlimited'];
}
if ( $license_data->license == 'valid' ) {
$message = $strings['license-key-is-active'] . ' ';
if ( isset( $expires ) && 'lifetime' != $expires ) {
$message .= sprintf( $strings['expires%s'], $expires ) . ' ';
}
if ( isset( $expires ) && 'lifetime' == $expires ) {
$message .= $strings['expires-never'];
}
if ( $site_count && $license_limit ) {
$message .= sprintf( $strings['%1$s/%2$-sites'], $site_count, $license_limit );
}
} else if ( $license_data->license == 'expired' ) {
if ( $expires ) {
$message = sprintf( $strings['license-key-expired-%s'], $expires );
} else {
$message = $strings['license-key-expired'];
}
if ( $renew_link ) {
$message .= ' ' . $renew_link;
}
} else if ( $license_data->license == 'invalid' ) {
$message = $strings['license-keys-do-not-match'];
} else if ( $license_data->license == 'inactive' ) {
$message = $strings['license-is-inactive'];
} else if ( $license_data->license == 'disabled' ) {
$message = $strings['license-key-is-disabled'];
} else if ( $license_data->license == 'site_inactive' ) {
// Site is inactive
$message = $strings['site-is-inactive'];
} else {
$message = $strings['license-status-unknown'];
}
}
return $message;
}
/**
* Disable requests to wp.org repository for this theme.
*
* @since 1.0.0
*/
function disable_wporg_request( $r, $url ) {
// If it's not a theme update request, bail.
if ( 0 !== strpos( $url, 'https://api.wordpress.org/themes/update-check/1.1/' ) ) {
return $r;
}
// Decode the JSON response
$themes = json_decode( $r['body']['themes'] );
// Remove the active parent and child themes from the check
$parent = get_option( 'template' );
$child = get_option( 'stylesheet' );
unset( $themes->themes->$parent );
unset( $themes->themes->$child );
// Encode the updated JSON response
$r['body']['themes'] = json_encode( $themes );
return $r;
}
}
/**
* This is a means of catching errors from the activation method above and displyaing it to the customer
*/
function edd_sample_theme_admin_notices() {
if ( isset( $_GET['sl_theme_activation'] ) && ! empty( $_GET['message'] ) ) {
switch( $_GET['sl_theme_activation'] ) {
case 'false':
$message = urldecode( $_GET['message'] );
?>
<div class="error">
<p><?php echo $message; ?></p>
</div>
<?php
break;
case 'true':
default:
break;
}
}
}
add_action( 'admin_notices', 'edd_sample_theme_admin_notices' );

View file

@ -1,192 +0,0 @@
<?php
/**
* Theme updater class.
*
* @package EDD Sample Theme
* @version 1.0.3
*/
class EDD_Theme_Updater {
private $remote_api_url;
private $request_data;
private $response_key;
private $theme_slug;
private $license_key;
private $version;
private $author;
protected $strings = null;
/**
* Initiate the Theme updater
*
* @param array $args Array of arguments from the theme requesting an update check
* @param array $strings Strings for the update process
*/
function __construct( $args = array(), $strings = array() ) {
$defaults = array(
'remote_api_url' => 'http://easydigitaldownloads.com',
'request_data' => array(),
'theme_slug' => get_template(), // use get_stylesheet() for child theme updates
'item_name' => '',
'license' => '',
'version' => '',
'author' => '',
'beta' => false,
);
$args = wp_parse_args( $args, $defaults );
$this->license = $args['license'];
$this->item_name = $args['item_name'];
$this->version = $args['version'];
$this->theme_slug = sanitize_key( $args['theme_slug'] );
$this->author = $args['author'];
$this->beta = $args['beta'];
$this->remote_api_url = $args['remote_api_url'];
$this->response_key = $this->theme_slug . '-' . $this->beta . '-update-response';
$this->strings = $strings;
add_filter( 'site_transient_update_themes', array( $this, 'theme_update_transient' ) );
add_filter( 'delete_site_transient_update_themes', array( $this, 'delete_theme_update_transient' ) );
add_action( 'load-update-core.php', array( $this, 'delete_theme_update_transient' ) );
add_action( 'load-themes.php', array( $this, 'delete_theme_update_transient' ) );
add_action( 'load-themes.php', array( $this, 'load_themes_screen' ) );
}
/**
* Show the update notification when neecessary
*
* @return void
*/
function load_themes_screen() {
add_thickbox();
add_action( 'admin_notices', array( $this, 'update_nag' ) );
}
/**
* Display the update notifications
*
* @return void
*/
function update_nag() {
$strings = $this->strings;
$theme = wp_get_theme( $this->theme_slug );
$api_response = get_transient( $this->response_key );
if ( false === $api_response ) {
return;
}
$update_url = wp_nonce_url( 'update.php?action=upgrade-theme&amp;theme=' . urlencode( $this->theme_slug ), 'upgrade-theme_' . $this->theme_slug );
$update_onclick = ' onclick="if ( confirm(\'' . esc_js( $strings['update-notice'] ) . '\') ) {return true;}return false;"';
if ( version_compare( $this->version, $api_response->new_version, '<' ) ) {
echo '<div id="update-nag">';
printf(
$strings['update-available'],
$theme->get( 'Name' ),
$api_response->new_version,
'#TB_inline?width=640&amp;inlineId=' . $this->theme_slug . '_changelog',
$theme->get( 'Name' ),
$update_url,
$update_onclick
);
echo '</div>';
echo '<div id="' . $this->theme_slug . '_' . 'changelog" style="display:none;">';
echo wpautop( $api_response->sections['changelog'] );
echo '</div>';
}
}
/**
* Update the theme update transient with the response from the version check
*
* @param array $value The default update values.
* @return array|boolean If an update is available, returns the update parameters, if no update is needed returns false, if
* the request fails returns false.
*/
function theme_update_transient( $value ) {
$update_data = $this->check_for_update();
if ( $update_data ) {
// Make sure the theme property is set. See issue 1463 on Github in the Software Licensing Repo.
$update_data['theme'] = $this->theme_slug;
$value->response[ $this->theme_slug ] = $update_data;
}
return $value;
}
/**
* Remove the update data for the theme
*
* @return void
*/
function delete_theme_update_transient() {
delete_transient( $this->response_key );
}
/**
* Call the EDD SL API (using the URL in the construct) to get the latest version information
*
* @return array|boolean If an update is available, returns the update parameters, if no update is needed returns false, if
* the request fails returns false.
*/
function check_for_update() {
$update_data = get_transient( $this->response_key );
if ( false === $update_data ) {
$failed = false;
$api_params = array(
'edd_action' => 'get_version',
'license' => $this->license,
'name' => $this->item_name,
'slug' => $this->theme_slug,
'version' => $this->version,
'author' => $this->author,
'beta' => $this->beta
);
$response = wp_remote_post( $this->remote_api_url, array( 'timeout' => 15, 'body' => $api_params ) );
// Make sure the response was successful
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
$failed = true;
}
$update_data = json_decode( wp_remote_retrieve_body( $response ) );
if ( ! is_object( $update_data ) ) {
$failed = true;
}
// If the response failed, try again in 30 minutes
if ( $failed ) {
$data = new stdClass;
$data->new_version = $this->version;
set_transient( $this->response_key, $data, strtotime( '+30 minutes', time() ) );
return false;
}
// If the status is 'ok', return the update arguments
if ( ! $failed ) {
$update_data->sections = maybe_unserialize( $update_data->sections );
set_transient( $this->response_key, $update_data, strtotime( '+12 hours', time() ) );
}
}
if ( version_compare( $this->version, $update_data->new_version, '>=' ) ) {
return false;
}
return (array) $update_data;
}
}

View file

@ -1,54 +0,0 @@
<?php
/**
* Easy Digital Downloads Theme Updater
*
* @package EDD Sample Theme
*/
// Includes the files needed for the theme updater
if ( !class_exists( 'EDD_Theme_Updater_Admin' ) ) {
include( dirname( __FILE__ ) . '/theme-updater-admin.php' );
}
// Loads the updater classes
$updater = new EDD_Theme_Updater_Admin(
// Config settings
$config = array(
'remote_api_url' => 'https://alx.media', // Site where EDD is hosted
'item_name' => 'Split', // Name of theme
'theme_slug' => 'split', // Theme slug
'version' => '1.4.9', // The current version of this theme
'author' => 'AlxMedia', // The author of this theme
'download_id' => '', // Optional, used for generating a license renewal link
'renew_url' => '', // Optional, allows for a custom license renewal link
'beta' => false, // Optional, set to true to opt into beta versions
),
// Strings
$strings = array(
'theme-license' => __( 'Theme License', 'split' ),
'enter-key' => __( 'Enter your theme license key.', 'split' ),
'license-key' => __( 'License Key', 'split' ),
'license-action' => __( 'License Action', 'split' ),
'deactivate-license' => __( 'Deactivate License', 'split' ),
'activate-license' => __( 'Activate License', 'split' ),
'status-unknown' => __( 'License status is unknown.', 'split' ),
'renew' => __( 'Renew?', 'split' ),
'unlimited' => __( 'unlimited', 'split' ),
'license-key-is-active' => __( 'License key is active.', 'split' ),
'expires%s' => __( 'Expires %s.', 'split' ),
'expires-never' => __( 'Lifetime License.', 'split' ),
'%1$s/%2$-sites' => __( 'You have %1$s / %2$s sites activated.', 'split' ),
'license-key-expired-%s' => __( 'License key expired %s.', 'split' ),
'license-key-expired' => __( 'License key has expired.', 'split' ),
'license-keys-do-not-match' => __( 'License keys do not match.', 'split' ),
'license-is-inactive' => __( 'License is inactive.', 'split' ),
'license-key-is-disabled' => __( 'License key is disabled.', 'split' ),
'site-is-inactive' => __( 'Site is inactive.', 'split' ),
'license-status-unknown' => __( 'License status is unknown.', 'split' ),
'update-notice' => __( "Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.", 'split' ),
'update-available' => __('<strong>%1$s %2$s</strong> is available. <a href="%3$s" class="thickbox" title="%4s">Check out what\'s new</a> or <a href="%5$s"%6$s>update now</a>.', 'split' ),
)
);

View file

@ -16,7 +16,7 @@
<?php if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } ?> <?php if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } ?>
<a class="skip-link screen-reader-text" href="#split"><?php _e( 'Skip to content', 'split' ); ?></a> <a class="skip-link screen-reader-text" href="#splits"><?php _e( 'Skip to content', 'splits' ); ?></a>
<div id="wrapper"> <div id="wrapper">
@ -62,7 +62,7 @@
<div class="container group"> <div class="container group">
<div class="group pad nav-menu-dropdown-left"> <div class="group pad nav-menu-dropdown-left">
<?php echo split_site_title(); ?> <?php echo splits_site_title(); ?>
<?php if ( display_header_text() == true ): ?> <?php if ( display_header_text() == true ): ?>
<p class="site-description"><?php bloginfo( 'description' ); ?></p> <p class="site-description"><?php bloginfo( 'description' ); ?></p>
<?php endif; ?> <?php endif; ?>
@ -87,4 +87,4 @@
</header><!--/#header--> </header><!--/#header-->
<div id="split" class="container group"> <div id="splits" class="container group">

View file

@ -14,10 +14,10 @@ $featured = new WP_Query(
<?php if ( ( get_theme_mod('featured-posts-count','3') !='0') && $featured->have_posts() ): ?> <?php if ( ( get_theme_mod('featured-posts-count','3') !='0') && $featured->have_posts() ): ?>
<div id="split-left-top" class="page-title alt group pad"> <div id="splits-left-top" class="page-title alt group pad">
<h2><?php esc_html_e('Featured Today.','split'); ?></h2> <h2><?php esc_html_e('Featured Today.','splits'); ?></h2>
<?php if ( get_theme_mod( 'header-social', 'on' ) == 'on' ): ?> <?php if ( get_theme_mod( 'header-social', 'on' ) == 'on' ): ?>
<?php split_social_links() ; ?> <?php splits_social_links() ; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>

View file

@ -1,7 +1,7 @@
<div class="page-title"> <div class="page-title">
<?php if ( is_home() ) : ?> <?php if ( is_home() ) : ?>
<h2><?php echo split_blog_title(); ?></h2> <h2><?php echo splits_blog_title(); ?></h2>
<?php elseif ( is_single() ): ?> <?php elseif ( is_single() ): ?>
<h2><?php the_category(' <span>/</span> '); ?></h2> <h2><?php the_category(' <span>/</span> '); ?></h2>
@ -15,34 +15,34 @@
<?php if ( !have_posts() ): ?><i class="fas fa-exclamation-circle"></i><?php endif; ?> <?php if ( !have_posts() ): ?><i class="fas fa-exclamation-circle"></i><?php endif; ?>
<?php $search_results=$wp_query->found_posts; <?php $search_results=$wp_query->found_posts;
if ($search_results==1) { if ($search_results==1) {
echo $search_results.' '.esc_html__('Search result','split'); echo $search_results.' '.esc_html__('Search result','splits');
} else { } else {
echo $search_results.' '.esc_html__('Search results','split'); echo $search_results.' '.esc_html__('Search results','splits');
} }
?> ?>
</h1> </h1>
<?php elseif ( is_404() ): ?> <?php elseif ( is_404() ): ?>
<h1><i class="fas fa-exclamation-circle"></i><?php esc_html_e('Error 404.','split'); ?> <span><?php esc_html_e('Page not found!','split'); ?></span></h1> <h1><i class="fas fa-exclamation-circle"></i><?php esc_html_e('Error 404.','splits'); ?> <span><?php esc_html_e('Page not found!','splits'); ?></span></h1>
<?php elseif ( is_author() ): ?> <?php elseif ( is_author() ): ?>
<?php $author = get_userdata( get_query_var('author') );?> <?php $author = get_userdata( get_query_var('author') );?>
<h1><i class="far fa-user"></i><?php esc_html_e('Author:','split'); ?> <span><?php echo $author->display_name;?></span></h1> <h1><i class="far fa-user"></i><?php esc_html_e('Author:','splits'); ?> <span><?php echo $author->display_name;?></span></h1>
<?php elseif ( is_category() ): ?> <?php elseif ( is_category() ): ?>
<h1><?php echo single_cat_title('', false); ?></h1> <h1><?php echo single_cat_title('', false); ?></h1>
<?php elseif ( is_tag() ): ?> <?php elseif ( is_tag() ): ?>
<h1><i class="fas fa-tags"></i><?php esc_html_e('Tagged:','split'); ?> <span><?php echo single_tag_title('', false); ?></span></h1> <h1><i class="fas fa-tags"></i><?php esc_html_e('Tagged:','splits'); ?> <span><?php echo single_tag_title('', false); ?></span></h1>
<?php elseif ( is_day() ): ?> <?php elseif ( is_day() ): ?>
<h1><i class="far fa-calendar"></i><?php esc_html_e('Daily Archive:','split'); ?> <span><?php echo esc_html( get_the_time('F j, Y') ); ?></span></h1> <h1><i class="far fa-calendar"></i><?php esc_html_e('Daily Archive:','splits'); ?> <span><?php echo esc_html( get_the_time('F j, Y') ); ?></span></h1>
<?php elseif ( is_month() ): ?> <?php elseif ( is_month() ): ?>
<h1><i class="far fa-calendar"></i><?php esc_html_e('Monthly Archive:','split'); ?> <span><?php echo esc_html( get_the_time('F Y') ); ?></span></h1> <h1><i class="far fa-calendar"></i><?php esc_html_e('Monthly Archive:','splits'); ?> <span><?php echo esc_html( get_the_time('F Y') ); ?></span></h1>
<?php elseif ( is_year() ): ?> <?php elseif ( is_year() ): ?>
<h1><i class="far fa-calendar"></i><?php esc_html_e('Yearly Archive:','split'); ?> <span><?php echo esc_html( get_the_time('Y') ); ?></span></h1> <h1><i class="far fa-calendar"></i><?php esc_html_e('Yearly Archive:','splits'); ?> <span><?php echo esc_html( get_the_time('Y') ); ?></span></h1>
<?php else: ?> <?php else: ?>
<h2><?php the_title(); ?></h2> <h2><?php the_title(); ?></h2>

View file

@ -18,7 +18,7 @@
<?php if ( has_post_format( 'gallery' ) ): // Gallery ?> <?php if ( has_post_format( 'gallery' ) ): // Gallery ?>
<div class="post-format"> <div class="post-format">
<?php $images = split_post_images(); if ( !empty($images) ): ?> <?php $images = splits_post_images(); if ( !empty($images) ): ?>
<script type="text/javascript"> <script type="text/javascript">
// Check if first slider image is loaded, and load flexslider on document ready // Check if first slider image is loaded, and load flexslider on document ready
jQuery(document).ready(function(){ jQuery(document).ready(function(){
@ -67,7 +67,7 @@
<div class="post-format"> <div class="post-format">
<?php if ( has_post_thumbnail() ) { <?php if ( has_post_thumbnail() ) {
the_post_thumbnail('split-large'); the_post_thumbnail('splits-large');
$caption = get_post(get_post_thumbnail_id())->post_excerpt; $caption = get_post(get_post_thumbnail_id())->post_excerpt;
if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>'; if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
} ?> } ?>

View file

@ -1,6 +1,6 @@
<?php if ( is_single() ): ?> <?php if ( is_single() ): ?>
<ul class="post-nav group"> <ul class="post-nav group">
<li class="next"><?php next_post_link('%link', '<i class="fas fa-chevron-right"></i><strong>'.esc_html__('Next story', 'split').'</strong> <span>%title</span>'); ?></li> <li class="next"><?php next_post_link('%link', '<i class="fas fa-chevron-right"></i><strong>'.esc_html__('Next story', 'splits').'</strong> <span>%title</span>'); ?></li>
<li class="previous"><?php previous_post_link('%link', '<i class="fas fa-chevron-left"></i><strong>'.esc_html__('Previous story', 'split').'</strong> <span>%title</span>'); ?></li> <li class="previous"><?php previous_post_link('%link', '<i class="fas fa-chevron-left"></i><strong>'.esc_html__('Previous story', 'splits').'</strong> <span>%title</span>'); ?></li>
</ul> </ul>
<?php endif; ?> <?php endif; ?>

View file

@ -1,9 +1,9 @@
<?php $related = split_related_posts(); ?> <?php $related = splits_related_posts(); ?>
<?php if ( $related->have_posts() ): ?> <?php if ( $related->have_posts() ): ?>
<h4 class="heading"> <h4 class="heading">
<i class="fas fa-hand-point-right"></i><?php esc_html_e('You may also like...','split'); ?> <i class="fas fa-hand-point-right"></i><?php esc_html_e('You may also like...','splits'); ?>
</h4> </h4>
<ul class="related-posts group"> <ul class="related-posts group">
@ -15,7 +15,7 @@
<div class="post-thumbnail"> <div class="post-thumbnail">
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('splits-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>

View file

@ -1,12 +1,12 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left"> <div id="splits-left">
<?php get_template_part('inc/featured'); ?> <?php get_template_part('inc/featured'); ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div id="split-right-top" class="pad"> <div id="splits-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
</div> </div>
@ -45,7 +45,7 @@
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -1,7 +1,7 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Split\n" "Project-Id-Version: Splits\n"
"POT-Creation-Date: 2021-07-23 18:39+0200\n" "POT-Creation-Date: 2021-07-23 18:39+0200\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n" "PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n" "Last-Translator: \n"

View file

@ -5,11 +5,11 @@ Template Name: Child Menu
?> ?>
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left" class="stickyfill group"> <div id="splits-left" class="stickyfill group">
<div class="image-container"> <div class="image-container">
<?php if ( has_post_thumbnail() ) { <?php if ( has_post_thumbnail() ) {
the_post_thumbnail('split-large'); the_post_thumbnail('splits-large');
$caption = get_post(get_post_thumbnail_id())->post_excerpt; $caption = get_post(get_post_thumbnail_id())->post_excerpt;
if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>'; if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
} ?> } ?>
@ -17,11 +17,11 @@ Template Name: Child Menu
<?php if ( get_theme_mod( 'sharrre', 'on' ) == 'on' ) { get_template_part('inc/sharrre'); } ?> <?php if ( get_theme_mod( 'sharrre', 'on' ) == 'on' ) { get_template_part('inc/sharrre'); } ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div id="split-right-top" class="pad"> <div id="splits-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
</div> </div>
@ -44,7 +44,7 @@ Template Name: Child Menu
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -1,10 +1,10 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left" class="stickyfill group"> <div id="splits-left" class="stickyfill group">
<div class="image-container"> <div class="image-container">
<?php if ( has_post_thumbnail() ) { <?php if ( has_post_thumbnail() ) {
the_post_thumbnail('split-large'); the_post_thumbnail('splits-large');
$caption = get_post(get_post_thumbnail_id())->post_excerpt; $caption = get_post(get_post_thumbnail_id())->post_excerpt;
if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>'; if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
} ?> } ?>
@ -12,11 +12,11 @@
<?php if ( get_theme_mod( 'sharrre', 'on' ) == 'on' ) { get_template_part('inc/sharrre'); } ?> <?php if ( get_theme_mod( 'sharrre', 'on' ) == 'on' ) { get_template_part('inc/sharrre'); } ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div id="split-right-top" class="pad"> <div id="splits-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
</div> </div>
@ -39,7 +39,7 @@
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -1,4 +1,4 @@
=== Split === === Splits ===
Contributors: alxmedia Contributors: alxmedia
Requires at least: 5.0 Requires at least: 5.0
Tested up to: 6.0 Tested up to: 6.0
@ -8,12 +8,12 @@ Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar,
== Description == == Description ==
Split is a responsive 100% high resolution theme for blogs and magazines. The feature list is long: Unlimited accent colors, unlimited widget areas, sidebar to the right that can be uniquely specified for each page or post, 0-4 footer widget columns, almost zero layout images, related posts and post nav, featured stories and carousel, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features. Splits is a responsive 100% high resolution theme for blogs and magazines. The feature list is long: Unlimited accent colors, unlimited widget areas, sidebar to the right that can be uniquely specified for each page or post, 0-4 footer widget columns, almost zero layout images, related posts and post nav, featured stories and carousel, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
== Installation == == Installation ==
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button. 1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Split in the search form and press the 'Enter' key on your keyboard. 2. Type in Splits in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away. 3. Click on the 'Activate' button to use your new theme right away.
4. Navigate to Appearance > Customize in your admin panel and customize to taste. 4. Navigate to Appearance > Customize in your admin panel and customize to taste.
@ -23,8 +23,8 @@ http://alx.media/documentation/
== Copyright == == Copyright ==
Split WordPress Theme, Copyright 2021 AlxMedia Splits WordPress Theme, Copyright 2021 AlxMedia
Split is distributed under the terms of the GNU GPL Splits is distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -36,7 +36,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
Split bundles the following third-party resources: Splits bundles the following third-party resources:
Font Awesome Font Awesome
Copyright (c) Dave Gandy Copyright (c) Dave Gandy
@ -167,7 +167,7 @@ Source: https://stocksnap.io
* Added support for custom-header * Added support for custom-header
* Added support for custom-background * Added support for custom-background
* Updated meta dates to use wordpress settings * Updated meta dates to use wordpress settings
* Changed function names from alx_ to split_ * Changed function names from alx_ to splits_
* Fixed undefined index notices/errors for Alx Tabs and Alx Posts widgets * Fixed undefined index notices/errors for Alx Tabs and Alx Posts widgets
* Fixed all theme sniffer errors * Fixed all theme sniffer errors
* Removed custom.css option, already exist in core * Removed custom.css option, already exist in core

View file

@ -21,31 +21,31 @@
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
@media only screen and (min-width: 1024px) and (max-width: 1280px) { @media only screen and (min-width: 1024px) and (max-width: 1280px) {
#split:before { right: 55%; } #splits:before { right: 55%; }
#split-left { width: 45%; } #splits-left { width: 45%; }
#split-right { width: 55%; } #splits-right { width: 55%; }
#split-sidebar { width: 55%; } #splits-sidebar { width: 55%; }
} }
@media only screen and (max-width: 1023px) { @media only screen and (max-width: 1023px) {
#split:before, #splits:before,
.col-1c #split:before { display: none; } .col-1c #splits:before { display: none; }
#split-left, #splits-left,
#split-right, #splits-right,
.col-1c #split-left, .col-1c #splits-left,
.col-1c #split-right { width: 100%; } .col-1c #splits-right { width: 100%; }
#split-sidebar { width: 60%; margin: 0 auto; float: none; } #splits-sidebar { width: 60%; margin: 0 auto; float: none; }
#split-left { background: #181818; } #splits-left { background: #181818; }
.stickyfill { position: relative; } .stickyfill { position: relative; }
.admin-bar .stickyfill { top: 0; } .admin-bar .stickyfill { top: 0; }
.home.paged #split-left, .home.paged #splits-left,
.search #split-left, .search #splits-left,
.archive #split-left, .archive #splits-left,
.error404 #split-left { display: none; } .error404 #splits-left { display: none; }
.archive.category #split-left { display: block; } .archive.category #splits-left { display: block; }
} }
@ -54,9 +54,9 @@
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
@media only screen and (max-width: 719px) { @media only screen and (max-width: 719px) {
#split-left-top, #splits-left-top,
#split-right-top { padding-top: 20px; padding-bottom: 20px; } #splits-right-top { padding-top: 20px; padding-bottom: 20px; }
#split-sidebar { width: 100%; } #splits-sidebar { width: 100%; }
/* layout */ /* layout */
.container { padding: 0; } .container { padding: 0; }
@ -160,7 +160,7 @@
.sidebar { width: 100%; display: block; float: none; } .sidebar { width: 100%; display: block; float: none; }
/* hide */ /* hide */
#split-left-top .social-links, #splits-left-top .social-links,
.mobile-sidebar-hide .sidebar { display: none; } .mobile-sidebar-hide .sidebar { display: none; }
/* base */ /* base */

View file

@ -1,21 +1,21 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left"> <div id="splits-left">
<?php get_template_part('inc/featured'); ?> <?php get_template_part('inc/featured'); ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div id="split-right-top" class="pad"> <div id="splits-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
</div> </div>
<div class="content pad"> <div class="content pad">
<div class="notebox"> <div class="notebox">
<?php esc_html_e('For the term','split'); ?> "<span><?php echo get_search_query(); ?></span>". <?php esc_html_e('For the term','splits'); ?> "<span><?php echo get_search_query(); ?></span>".
<?php if ( !have_posts() ): ?> <?php if ( !have_posts() ): ?>
<?php esc_html_e('Please try another search:','split'); ?> <?php esc_html_e('Please try another search:','splits'); ?>
<?php endif; ?> <?php endif; ?>
<div class="search-again"> <div class="search-again">
<?php get_search_form(); ?> <?php get_search_form(); ?>
@ -52,7 +52,7 @@
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -1,5 +1,5 @@
<form method="get" class="searchform themeform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <form method="get" class="searchform themeform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div> <div>
<input type="text" class="search" name="s" onblur="if(this.value=='')this.value='<?php esc_attr_e('To search type and hit enter','split'); ?>';" onfocus="if(this.value=='<?php esc_attr_e('To search type and hit enter','split'); ?>')this.value='';" value="<?php esc_attr_e('To search type and hit enter','split'); ?>" /> <input type="text" class="search" name="s" onblur="if(this.value=='')this.value='<?php esc_attr_e('To search type and hit enter','splits'); ?>';" onfocus="if(this.value=='<?php esc_attr_e('To search type and hit enter','splits'); ?>')this.value='';" value="<?php esc_attr_e('To search type and hit enter','splits'); ?>" />
</div> </div>
</form> </form>

View file

@ -1,10 +1,10 @@
<?php <?php
$sidebar = split_sidebar_primary(); $sidebar = splits_sidebar_primary();
$layout = split_layout_class(); $layout = splits_layout_class();
if ( $layout != 'col-1c'): if ( $layout != 'col-1c'):
?> ?>
<div id="split-sidebar"> <div id="splits-sidebar">
<div class="sidebar s1"> <div class="sidebar s1">
@ -24,6 +24,6 @@
</div><!--/.sidebar--> </div><!--/.sidebar-->
</div><!--/#split-sidebar--> </div><!--/#splits-sidebar-->
<?php endif; ?> <?php endif; ?>

View file

@ -1,8 +1,8 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="split-left" class="stickyfill group"> <div id="splits-left" class="stickyfill group">
<div id="split-left-top" class="pad"> <div id="splits-left-top" class="pad">
<p class="post-date"><?php the_time( get_option('date_format') ); ?></p> <p class="post-date"><?php the_time( get_option('date_format') ); ?></p>
<h1 class="post-title"><?php the_title(); ?></h1> <h1 class="post-title"><?php the_title(); ?></h1>
<p class="post-category"><?php the_category(' / '); ?></p> <p class="post-category"><?php the_category(' / '); ?></p>
@ -11,7 +11,7 @@
<?php if( !get_post_format() ) :?> <?php if( !get_post_format() ) :?>
<div class="image-container"> <div class="image-container">
<?php if ( has_post_thumbnail() ) { <?php if ( has_post_thumbnail() ) {
the_post_thumbnail('split-large'); the_post_thumbnail('splits-large');
$caption = get_post(get_post_thumbnail_id())->post_excerpt; $caption = get_post(get_post_thumbnail_id())->post_excerpt;
if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>'; if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
} ?> } ?>
@ -21,24 +21,24 @@
<?php do_action( 'alx_ext_sharrre' ); ?> <?php do_action( 'alx_ext_sharrre' ); ?>
</div><!--/#split-left--> </div><!--/#splits-left-->
<div id="split-right"> <div id="splits-right">
<div class="content pad"> <div class="content pad">
<?php while ( have_posts() ): the_post(); ?> <?php while ( have_posts() ): the_post(); ?>
<article <?php post_class(); ?>> <article <?php post_class(); ?>>
<div class="post-inner group"> <div class="post-inner group">
<p class="post-byline"><?php echo get_avatar(get_the_author_meta('user_email'),'64'); ?><?php esc_html_e('by','split'); ?> <?php the_author_posts_link(); ?></p> <p class="post-byline"><?php echo get_avatar(get_the_author_meta('user_email'),'64'); ?><?php esc_html_e('by','splits'); ?> <?php the_author_posts_link(); ?></p>
<div class="entry themeform"> <div class="entry themeform">
<div class="entry-inner"> <div class="entry-inner">
<?php the_content(); ?> <?php the_content(); ?>
<?php wp_link_pages(array('before'=>'<div class="post-pages">'.esc_html__('Pages:','split'),'after'=>'</div>')); ?> <?php wp_link_pages(array('before'=>'<div class="post-pages">'.esc_html__('Pages:','splits'),'after'=>'</div>')); ?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<?php the_tags('<p class="post-tags"><span>'.esc_html__('Tags:','split').'</span> ','','</p>'); ?> <?php the_tags('<p class="post-tags"><span>'.esc_html__('Tags:','splits').'</span> ','','</p>'); ?>
</div><!--/.entry--> </div><!--/.entry-->
@ -51,7 +51,7 @@
<?php if ( ( get_theme_mod( 'author-bio', 'on' ) == 'on' ) && get_the_author_meta( 'description' ) ): ?> <?php if ( ( get_theme_mod( 'author-bio', 'on' ) == 'on' ) && get_the_author_meta( 'description' ) ): ?>
<div class="author-bio"> <div class="author-bio">
<div class="bio-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div> <div class="bio-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div>
<p class="bio-name"><?php esc_html_e('Written by','split'); ?> <?php the_author_posts_link(); ?></p> <p class="bio-name"><?php esc_html_e('Written by','splits'); ?> <?php the_author_posts_link(); ?></p>
<p class="bio-desc"><?php the_author_meta('description'); ?></p> <p class="bio-desc"><?php the_author_meta('description'); ?></p>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
@ -65,7 +65,7 @@
</div><!--/.content--> </div><!--/.content-->
</div><!--/#split-right--> </div><!--/#splits-right-->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View file

@ -1,15 +1,15 @@
/* /*
Theme Name: Split Theme Name: Splits
Theme URI: http://alx.media/themes/split/ Theme URI: http://alx.media/themes/splits/
Version: 1.4.9 Version: 1.4.9
Requires at least: 5.0 Requires at least: 5.0
Requires PHP: 5.6 Requires PHP: 5.6
Tested up to: 6.0 Tested up to: 6.0
Description: <a href="http://alx.media/themes/split/">Split</a> is a responsive 100% high resolution theme for blogs and magazines. The feature list is long: Unlimited accent colors, unlimited widget areas, sidebar to the right that can be uniquely specified for each page or post, 0-4 footer widget columns, almost zero layout images, related posts and post nav, featured stories and carousel, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features. Description: <a href="http://alx.media/themes/splits/">Splits</a> is a responsive 100% high resolution theme for blogs and magazines. The feature list is long: Unlimited accent colors, unlimited widget areas, sidebar to the right that can be uniquely specified for each page or post, 0-4 footer widget columns, almost zero layout images, related posts and post nav, featured stories and carousel, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
Author: Alexander Agnarson Author: Alexander Agnarson
Author URI: http://alx.media Author URI: http://alx.media
Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
Text Domain: split Text Domain: splits
Copyright: (c) 2018 Alexander "Alx" Agnarson Copyright: (c) 2018 Alexander "Alx" Agnarson
License: GNU General Public License v3.0 License: GNU General Public License v3.0
@ -792,20 +792,20 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
/* ------------------------------------------------------------------------- * /* ------------------------------------------------------------------------- *
* Section: Splits * Section: Splitss
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
#split { position: relative; } #splits { position: relative; }
#split:before { background: #181818; display: block; content:""; position: absolute; top: 0; bottom: 0; left: -9999px; right: 65%; } #splits:before { background: #181818; display: block; content:""; position: absolute; top: 0; bottom: 0; left: -9999px; right: 65%; }
.boxed #split:before { left: 0; } .boxed #splits:before { left: 0; }
#split-left { width: 35%; float: left; } #splits-left { width: 35%; float: left; }
#split-right { width: 45%; float: left; border-right: 1px solid #eee; } #splits-right { width: 45%; float: left; border-right: 1px solid #eee; }
#split-sidebar { width: 20%; float: right; } #splits-sidebar { width: 20%; float: right; }
#split-left-top { padding-bottom: 30px; border-bottom: 1px solid #222; } #splits-left-top { padding-bottom: 30px; border-bottom: 1px solid #222; }
#split-right-top { padding-bottom: 30px; border-bottom: 1px solid #eee; } #splits-right-top { padding-bottom: 30px; border-bottom: 1px solid #eee; }
.col-1c #split:before { right: 50%; } .col-1c #splits:before { right: 50%; }
.col-1c #split-left, .col-1c #splits-left,
.col-1c #split-right { width: 50%; } .col-1c #splits-right { width: 50%; }
.stickyfill { position: -webkit-sticky; position: sticky; top: 0; } .stickyfill { position: -webkit-sticky; position: sticky; top: 0; }
.admin-bar .stickyfill { top: 32px; } .admin-bar .stickyfill { top: 32px; }
@ -1728,4 +1728,4 @@ user-select: none;
.screen-reader-text{ border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute!important; width: 1px; word-wrap: normal!important; } .screen-reader-text{ border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute!important; width: 1px; word-wrap: normal!important; }
.screen-reader-text:focus { background-color: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1); clip: auto!important; clip-path: none; color: #333; display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; right: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; } .screen-reader-text:focus { background-color: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1); clip: auto!important; clip-path: none; color: #333; display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; right: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
/* Do not show the outline on the skip link target. */ /* Do not show the outline on the skip link target. */
#split[tabindex="-1"]:focus{ outline: 0; } #splits[tabindex="-1"]:focus{ outline: 0; }