mirror of
https://ghproxy.net/https://github.com/AlxMedia/featureon.git
synced 2025-08-26 05:49:06 +08:00
Change name to Featureon
This commit is contained in:
parent
600ce12d26
commit
49be53b495
30 changed files with 594 additions and 594 deletions
2
404.php
2
404.php
|
@ -17,7 +17,7 @@
|
||||||
</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.', 'magazinertwo' ); ?></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.', 'featureon' ); ?></p>
|
||||||
</div><!--/.entry-->
|
</div><!--/.entry-->
|
||||||
|
|
||||||
</div><!--/.pad-->
|
</div><!--/.pad-->
|
||||||
|
|
|
@ -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', 'magazinertwo' ), esc_html__( '1 Response', 'magazinertwo' ), esc_html__( '% Responses', 'magazinertwo' ) ); ?></h3>
|
<h3 class="heading"><?php comments_number( esc_html__( 'No Responses', 'featureon' ), esc_html__( '1 Response', 'featureon' ), esc_html__( '% Responses', 'featureon' ) ); ?></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', 'magazinertwo' ); ?><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', 'featureon' ); ?><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', 'magazinertwo' ); ?><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', 'featureon' ); ?><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'] ) ) { ?>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php $format = get_post_format(); ?>
|
<?php $format = get_post_format(); ?>
|
||||||
|
|
||||||
<div class="featured-item" style="background-image:url('<?php the_post_thumbnail_url('magazinertwo-large'); ?>');">
|
<div class="featured-item" style="background-image:url('<?php the_post_thumbnail_url('featureon-large'); ?>');">
|
||||||
<a class="featured-link" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
<a class="featured-link" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
||||||
<div class="featured-content">
|
<div class="featured-content">
|
||||||
<div class="featured-category"><?php the_category(' '); ?></div>
|
<div class="featured-category"><?php the_category(' '); ?></div>
|
||||||
|
|
|
@ -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('magazinertwo-medium'); ?>
|
<?php the_post_thumbnail('featureon-medium'); ?>
|
||||||
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
||||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<a class="featured-link" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
<a class="featured-link" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
||||||
|
|
||||||
<?php if ( has_post_thumbnail() ): ?>
|
<?php if ( has_post_thumbnail() ): ?>
|
||||||
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'magazinertwo-medium' ); ?>
|
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featureon-medium' ); ?>
|
||||||
<img src="<?php echo $image[0]; ?>" alt="<?php the_title_attribute(); ?>" />
|
<img src="<?php echo $image[0]; ?>" alt="<?php the_title_attribute(); ?>" />
|
||||||
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
||||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||||
|
|
|
@ -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('magazinertwo-square'); ?>
|
<?php the_post_thumbnail('featureon-square'); ?>
|
||||||
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
||||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-square.png" alt="<?php the_title_attribute(); ?>" />
|
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-square.png" alt="<?php the_title_attribute(); ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -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('magazinertwo-medium'); ?>
|
<?php the_post_thumbnail('featureon-medium'); ?>
|
||||||
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
||||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -67,13 +67,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(); ?> © <?php echo esc_html( date_i18n( esc_html__( 'Y', 'magazinertwo' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'magazinertwo' ); ?></p>
|
<p><?php bloginfo(); ?> © <?php echo esc_html( date_i18n( esc_html__( 'Y', 'featureon' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'featureon' ); ?></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','magazinertwo'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','magazinertwo'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
|
<p><?php esc_html_e('Powered by','featureon'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','featureon'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
|
||||||
</div><!--/#credit-->
|
</div><!--/#credit-->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
@ -81,7 +81,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 magazinertwo_social_links() ; ?>
|
<?php featureon_social_links() ; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
234
functions.php
234
functions.php
|
@ -15,16 +15,16 @@
|
||||||
include( get_template_directory() . '/functions/kirki/kirki.php' );
|
include( get_template_directory() . '/functions/kirki/kirki.php' );
|
||||||
|
|
||||||
// Load theme updater functions
|
// Load theme updater functions
|
||||||
function magazinertwo_theme_updater() {
|
function featureon_theme_updater() {
|
||||||
require( get_template_directory() . '/updater/theme-updater.php' );
|
require( get_template_directory() . '/updater/theme-updater.php' );
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', 'magazinertwo_theme_updater' );
|
add_action( 'after_setup_theme', 'featureon_theme_updater' );
|
||||||
|
|
||||||
if ( ! function_exists( 'magazinertwo_load' ) ) {
|
if ( ! function_exists( 'featureon_load' ) ) {
|
||||||
|
|
||||||
function magazinertwo_load() {
|
function featureon_load() {
|
||||||
// Load theme languages
|
// Load theme languages
|
||||||
load_theme_textdomain( 'magazinertwo', get_template_directory().'/languages' );
|
load_theme_textdomain( 'featureon', 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 +38,7 @@ if ( ! function_exists( 'magazinertwo_load' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', 'magazinertwo_load' );
|
add_action( 'after_setup_theme', 'featureon_load' );
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- *
|
/* ------------------------------------------------------------------------- *
|
||||||
|
@ -51,9 +51,9 @@ add_action( 'after_setup_theme', 'magazinertwo_load' );
|
||||||
|
|
||||||
/* Theme setup
|
/* Theme setup
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_setup' ) ) {
|
if ( ! function_exists( 'featureon_setup' ) ) {
|
||||||
|
|
||||||
function magazinertwo_setup() {
|
function featureon_setup() {
|
||||||
// Enable title tag
|
// Enable title tag
|
||||||
add_theme_support( 'title-tag' );
|
add_theme_support( 'title-tag' );
|
||||||
|
|
||||||
|
@ -73,11 +73,11 @@ if ( ! function_exists( 'magazinertwo_setup' ) ) {
|
||||||
add_theme_support( 'woocommerce' );
|
add_theme_support( 'woocommerce' );
|
||||||
|
|
||||||
// Thumbnail sizes
|
// Thumbnail sizes
|
||||||
add_image_size( 'magazinertwo-small', 160, 160, true );
|
add_image_size( 'featureon-small', 160, 160, true );
|
||||||
add_image_size( 'magazinertwo-medium', 520, 293, true );
|
add_image_size( 'featureon-medium', 520, 293, true );
|
||||||
add_image_size( 'magazinertwo-large', 720, 405, true );
|
add_image_size( 'featureon-large', 720, 405, true );
|
||||||
add_image_size( 'magazinertwo-huge', 1280, 620, true );
|
add_image_size( 'featureon-huge', 1280, 620, true );
|
||||||
add_image_size( 'magazinertwo-square', 320, 320, true );
|
add_image_size( 'featureon-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 );
|
||||||
|
@ -85,22 +85,22 @@ if ( ! function_exists( 'magazinertwo_setup' ) ) {
|
||||||
|
|
||||||
// Custom menu areas
|
// Custom menu areas
|
||||||
register_nav_menus( array(
|
register_nav_menus( array(
|
||||||
'mobile' => esc_html__( 'Mobile', 'magazinertwo' ),
|
'mobile' => esc_html__( 'Mobile', 'featureon' ),
|
||||||
'topbar' => esc_html__( 'Topbar', 'magazinertwo' ),
|
'topbar' => esc_html__( 'Topbar', 'featureon' ),
|
||||||
'header' => esc_html__( 'Header', 'magazinertwo' ),
|
'header' => esc_html__( 'Header', 'featureon' ),
|
||||||
'footer' => esc_html__( 'Footer', 'magazinertwo' ),
|
'footer' => esc_html__( 'Footer', 'featureon' ),
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', 'magazinertwo_setup' );
|
add_action( 'after_setup_theme', 'featureon_setup' );
|
||||||
|
|
||||||
|
|
||||||
/* Custom logo
|
/* Custom logo
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_custom_logo' ) ) {
|
if ( ! function_exists( 'featureon_custom_logo' ) ) {
|
||||||
|
|
||||||
function magazinertwo_custom_logo() {
|
function featureon_custom_logo() {
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
'height' => 120,
|
'height' => 120,
|
||||||
'width' => 400,
|
'width' => 400,
|
||||||
|
@ -112,14 +112,14 @@ if ( ! function_exists( 'magazinertwo_custom_logo' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', 'magazinertwo_custom_logo' );
|
add_action( 'after_setup_theme', 'featureon_custom_logo' );
|
||||||
|
|
||||||
|
|
||||||
/* Custom header
|
/* Custom header
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_custom_header' ) ) {
|
if ( ! function_exists( 'featureon_custom_header' ) ) {
|
||||||
|
|
||||||
function magazinertwo_custom_header() {
|
function featureon_custom_header() {
|
||||||
$args = array(
|
$args = array(
|
||||||
'default-image' => false,
|
'default-image' => false,
|
||||||
'default-text' => false,
|
'default-text' => false,
|
||||||
|
@ -132,90 +132,90 @@ if ( ! function_exists( 'magazinertwo_custom_header' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', 'magazinertwo_custom_header' );
|
add_action( 'after_setup_theme', 'featureon_custom_header' );
|
||||||
|
|
||||||
|
|
||||||
/* Custom background
|
/* Custom background
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_custom_background' ) ) {
|
if ( ! function_exists( 'featureon_custom_background' ) ) {
|
||||||
|
|
||||||
function magazinertwo_custom_background() {
|
function featureon_custom_background() {
|
||||||
$args = array();
|
$args = array();
|
||||||
add_theme_support( 'custom-background', $args );
|
add_theme_support( 'custom-background', $args );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', 'magazinertwo_custom_background' );
|
add_action( 'after_setup_theme', 'featureon_custom_background' );
|
||||||
|
|
||||||
|
|
||||||
/* Deregister
|
/* Deregister
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_deregister' ) ) {
|
if ( ! function_exists( 'featureon_deregister' ) ) {
|
||||||
|
|
||||||
function magazinertwo_deregister() {
|
function featureon_deregister() {
|
||||||
wp_deregister_style( 'wp-pagenavi' );
|
wp_deregister_style( 'wp-pagenavi' );
|
||||||
wp_deregister_style( 'social-count-plus' );
|
wp_deregister_style( 'social-count-plus' );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'magazinertwo_deregister', 100 );
|
add_action( 'wp_enqueue_scripts', 'featureon_deregister', 100 );
|
||||||
|
|
||||||
|
|
||||||
/* Register sidebars
|
/* Register sidebars
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_sidebars' ) ) {
|
if ( ! function_exists( 'featureon_sidebars' ) ) {
|
||||||
|
|
||||||
function magazinertwo_sidebars() {
|
function featureon_sidebars() {
|
||||||
register_sidebar(array( 'name' => esc_html__('Primary','magazinertwo'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","magazinertwo"), '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','featureon'),'id' => 'primary','description' => esc_html__("Normal full width sidebar","featureon"), '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__('Secondary','magazinertwo'),'id' => 'secondary','description' => esc_html__("Normal full width sidebar","magazinertwo"), '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__('Secondary','featureon'),'id' => 'secondary','description' => esc_html__("Normal full width sidebar","featureon"), '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','magazinertwo'),'id' => 'header-ads', 'description' => esc_html("Header ads area","magazinertwo"), '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','featureon'),'id' => 'header-ads', 'description' => esc_html("Header ads area","featureon"), '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',"magazinertwo"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","magazinertwo"), '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',"featureon"),'id' => 'footer-ads', 'description' => esc_html__("Footer ads area","featureon"), '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','magazinertwo'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','featureon'),'id' => 'frontpage-top-1', 'description' => esc_html__("Frontpage area","featureon"), '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','magazinertwo'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','featureon'),'id' => 'frontpage-top-2', 'description' => esc_html__("Frontpage area","featureon"), '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','magazinertwo'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','featureon'),'id' => 'frontpage-bottom-1', 'description' => esc_html__("Frontpage area","featureon"), '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','magazinertwo'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","magazinertwo"), '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','featureon'),'id' => 'frontpage-bottom-2', 'description' => esc_html__("Frontpage area","featureon"), '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','magazinertwo'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","magazinertwo"), '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','featureon'),'id' => 'footer-1', 'description' => esc_html__("Widgetized footer","featureon"), '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','magazinertwo'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","magazinertwo"), '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','featureon'),'id' => 'footer-2', 'description' => esc_html__("Widgetized footer","featureon"), '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','magazinertwo'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","magazinertwo"), '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','featureon'),'id' => 'footer-3', 'description' => esc_html__("Widgetized footer","featureon"), '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','magazinertwo'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","magazinertwo"), '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','featureon'),'id' => 'footer-4', 'description' => esc_html__("Widgetized footer","featureon"), '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', 'magazinertwo_sidebars' );
|
add_action( 'widgets_init', 'featureon_sidebars' );
|
||||||
|
|
||||||
|
|
||||||
/* Enqueue javascript
|
/* Enqueue javascript
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_scripts' ) ) {
|
if ( ! function_exists( 'featureon_scripts' ) ) {
|
||||||
|
|
||||||
function magazinertwo_scripts() {
|
function featureon_scripts() {
|
||||||
wp_enqueue_script( 'magazinertwo-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false );
|
wp_enqueue_script( 'featureon-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false );
|
||||||
wp_enqueue_script( 'magazinertwo-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true );
|
wp_enqueue_script( 'featureon-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true );
|
||||||
wp_enqueue_script( 'magazinertwo-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true );
|
wp_enqueue_script( 'featureon-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true );
|
||||||
wp_enqueue_script( 'magazinertwo-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true );
|
wp_enqueue_script( 'featureon-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true );
|
||||||
if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
|
if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'magazinertwo_scripts' );
|
add_action( 'wp_enqueue_scripts', 'featureon_scripts' );
|
||||||
|
|
||||||
|
|
||||||
/* Enqueue css
|
/* Enqueue css
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_styles' ) ) {
|
if ( ! function_exists( 'featureon_styles' ) ) {
|
||||||
|
|
||||||
function magazinertwo_styles() {
|
function featureon_styles() {
|
||||||
wp_enqueue_style( 'magazinertwo-style', get_stylesheet_uri() );
|
wp_enqueue_style( 'featureon-style', get_stylesheet_uri() );
|
||||||
if ( get_theme_mod('responsive','on') =='on' ) { wp_enqueue_style( 'magazinertwo-responsive', get_template_directory_uri().'/responsive.css' ); }
|
if ( get_theme_mod('responsive','on') =='on' ) { wp_enqueue_style( 'featureon-responsive', get_template_directory_uri().'/responsive.css' ); }
|
||||||
if ( get_theme_mod('dark','off') == 'on' ) { wp_enqueue_style( 'magazinertwo-dark', get_template_directory_uri().'/dark.css' ); }
|
if ( get_theme_mod('dark','off') == 'on' ) { wp_enqueue_style( 'featureon-dark', get_template_directory_uri().'/dark.css' ); }
|
||||||
wp_enqueue_style( 'magazinertwo-font-awesome', get_template_directory_uri().'/fonts/all.min.css' );
|
wp_enqueue_style( 'featureon-font-awesome', get_template_directory_uri().'/fonts/all.min.css' );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'magazinertwo_styles' );
|
add_action( 'wp_enqueue_scripts', 'featureon_styles' );
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- *
|
/* ------------------------------------------------------------------------- *
|
||||||
|
@ -224,9 +224,9 @@ add_action( 'wp_enqueue_scripts', 'magazinertwo_styles' );
|
||||||
|
|
||||||
/* Layout class
|
/* Layout class
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_layout_class' ) ) {
|
if ( ! function_exists( 'featureon_layout_class' ) ) {
|
||||||
|
|
||||||
function magazinertwo_layout_class() {
|
function featureon_layout_class() {
|
||||||
// Default layout
|
// Default layout
|
||||||
$layout = 'col-3cm';
|
$layout = 'col-3cm';
|
||||||
$default = 'col-3cm';
|
$default = 'col-3cm';
|
||||||
|
@ -266,9 +266,9 @@ if ( ! function_exists( 'magazinertwo_layout_class' ) ) {
|
||||||
|
|
||||||
/* Dynamic sidebar primary
|
/* Dynamic sidebar primary
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_sidebar_primary' ) ) {
|
if ( ! function_exists( 'featureon_sidebar_primary' ) ) {
|
||||||
|
|
||||||
function magazinertwo_sidebar_primary() {
|
function featureon_sidebar_primary() {
|
||||||
// Default sidebar
|
// Default sidebar
|
||||||
$sidebar = 'primary';
|
$sidebar = 'primary';
|
||||||
|
|
||||||
|
@ -300,9 +300,9 @@ if ( ! function_exists( 'magazinertwo_sidebar_primary' ) ) {
|
||||||
|
|
||||||
/* Dynamic sidebar secondary
|
/* Dynamic sidebar secondary
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_sidebar_secondary' ) ) {
|
if ( ! function_exists( 'featureon_sidebar_secondary' ) ) {
|
||||||
|
|
||||||
function magazinertwo_sidebar_secondary() {
|
function featureon_sidebar_secondary() {
|
||||||
// Default sidebar
|
// Default sidebar
|
||||||
$sidebar = 'secondary';
|
$sidebar = 'secondary';
|
||||||
|
|
||||||
|
@ -334,9 +334,9 @@ if ( ! function_exists( 'magazinertwo_sidebar_secondary' ) ) {
|
||||||
|
|
||||||
/* Social links
|
/* Social links
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_social_links' ) ) {
|
if ( ! function_exists( 'featureon_social_links' ) ) {
|
||||||
|
|
||||||
function magazinertwo_social_links() {
|
function featureon_social_links() {
|
||||||
if ( !get_theme_mod('social-links') =='' ) {
|
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 ) ) {
|
||||||
|
@ -370,9 +370,9 @@ if ( ! function_exists( 'magazinertwo_social_links' ) ) {
|
||||||
|
|
||||||
/* Site name/logo
|
/* Site name/logo
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_site_title' ) ) {
|
if ( ! function_exists( 'featureon_site_title' ) ) {
|
||||||
|
|
||||||
function magazinertwo_site_title() {
|
function featureon_site_title() {
|
||||||
|
|
||||||
$custom_logo_id = get_theme_mod( 'custom_logo' );
|
$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' );
|
||||||
|
@ -400,9 +400,9 @@ if ( ! function_exists( 'magazinertwo_site_title' ) ) {
|
||||||
|
|
||||||
/* Blog title
|
/* Blog title
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_blog_title' ) ) {
|
if ( ! function_exists( 'featureon_blog_title' ) ) {
|
||||||
|
|
||||||
function magazinertwo_blog_title() {
|
function featureon_blog_title() {
|
||||||
global $post;
|
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') );
|
||||||
|
@ -423,9 +423,9 @@ if ( ! function_exists( 'magazinertwo_blog_title' ) ) {
|
||||||
|
|
||||||
/* Related posts
|
/* Related posts
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_related_posts' ) ) {
|
if ( ! function_exists( 'featureon_related_posts' ) ) {
|
||||||
|
|
||||||
function magazinertwo_related_posts() {
|
function featureon_related_posts() {
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
|
@ -474,9 +474,9 @@ if ( ! function_exists( 'magazinertwo_related_posts' ) ) {
|
||||||
|
|
||||||
/* Get images attached to post
|
/* Get images attached to post
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_post_images' ) ) {
|
if ( ! function_exists( 'featureon_post_images' ) ) {
|
||||||
|
|
||||||
function magazinertwo_post_images( $args=array() ) {
|
function featureon_post_images( $args=array() ) {
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
|
@ -498,9 +498,9 @@ if ( ! function_exists( 'magazinertwo_post_images' ) ) {
|
||||||
|
|
||||||
/* Get featured post ids
|
/* Get featured post ids
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_get_featured_post_ids' ) ) {
|
if ( ! function_exists( 'featureon_get_featured_post_ids' ) ) {
|
||||||
|
|
||||||
function magazinertwo_get_featured_post_ids() {
|
function featureon_get_featured_post_ids() {
|
||||||
$args = array(
|
$args = array(
|
||||||
'category' => absint( get_theme_mod('featured-category','') ),
|
'category' => absint( get_theme_mod('featured-category','') ),
|
||||||
'numberposts' => absint( get_theme_mod('featured-posts-count','5')),
|
'numberposts' => absint( get_theme_mod('featured-posts-count','5')),
|
||||||
|
@ -521,10 +521,10 @@ if ( ! function_exists( 'magazinertwo_get_featured_post_ids' ) ) {
|
||||||
|
|
||||||
/* Body class
|
/* Body class
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_body_class' ) ) {
|
if ( ! function_exists( 'featureon_body_class' ) ) {
|
||||||
|
|
||||||
function magazinertwo_body_class( $classes ) {
|
function featureon_body_class( $classes ) {
|
||||||
$classes[] = magazinertwo_layout_class();
|
$classes[] = featureon_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'; }
|
||||||
|
@ -537,14 +537,14 @@ if ( ! function_exists( 'magazinertwo_body_class' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_filter( 'body_class', 'magazinertwo_body_class' );
|
add_filter( 'body_class', 'featureon_body_class' );
|
||||||
|
|
||||||
|
|
||||||
/* Excerpt ending
|
/* Excerpt ending
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_excerpt_more' ) ) {
|
if ( ! function_exists( 'featureon_excerpt_more' ) ) {
|
||||||
|
|
||||||
function magazinertwo_excerpt_more( $more ) {
|
function featureon_excerpt_more( $more ) {
|
||||||
if ( is_admin() ) {
|
if ( is_admin() ) {
|
||||||
return $more;
|
return $more;
|
||||||
}
|
}
|
||||||
|
@ -552,14 +552,14 @@ if ( ! function_exists( 'magazinertwo_excerpt_more' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_filter( 'excerpt_more', 'magazinertwo_excerpt_more' );
|
add_filter( 'excerpt_more', 'featureon_excerpt_more' );
|
||||||
|
|
||||||
|
|
||||||
/* Excerpt length
|
/* Excerpt length
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_excerpt_length' ) ) {
|
if ( ! function_exists( 'featureon_excerpt_length' ) ) {
|
||||||
|
|
||||||
function magazinertwo_excerpt_length( $length ) {
|
function featureon_excerpt_length( $length ) {
|
||||||
if ( is_admin() ) {
|
if ( is_admin() ) {
|
||||||
return $length;
|
return $length;
|
||||||
}
|
}
|
||||||
|
@ -573,14 +573,14 @@ if ( ! function_exists( 'magazinertwo_excerpt_length' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_filter( 'excerpt_length', 'magazinertwo_excerpt_length', 999 );
|
add_filter( 'excerpt_length', 'featureon_excerpt_length', 999 );
|
||||||
|
|
||||||
|
|
||||||
/* Add responsive container to embeds
|
/* Add responsive container to embeds
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_embed_html' ) ) {
|
if ( ! function_exists( 'featureon_embed_html' ) ) {
|
||||||
|
|
||||||
function magazinertwo_embed_html( $html, $url ) {
|
function featureon_embed_html( $html, $url ) {
|
||||||
|
|
||||||
$pattern = '/^https?:\/\/(www\.)?twitter\.com/';
|
$pattern = '/^https?:\/\/(www\.)?twitter\.com/';
|
||||||
$is_twitter = preg_match( $pattern, $url );
|
$is_twitter = preg_match( $pattern, $url );
|
||||||
|
@ -593,19 +593,19 @@ if ( ! function_exists( 'magazinertwo_embed_html' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_filter( 'embed_oembed_html', 'magazinertwo_embed_html', 10, 3 );
|
add_filter( 'embed_oembed_html', 'featureon_embed_html', 10, 3 );
|
||||||
|
|
||||||
|
|
||||||
/* Add responsive container to jetpack embeds
|
/* Add responsive container to jetpack embeds
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_embed_html_jp' ) ) {
|
if ( ! function_exists( 'featureon_embed_html_jp' ) ) {
|
||||||
|
|
||||||
function magazinertwo_embed_html_jp( $html ) {
|
function featureon_embed_html_jp( $html ) {
|
||||||
return '<div class="video-container">' . $html . '</div>';
|
return '<div class="video-container">' . $html . '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_filter( 'video_embed_html', 'magazinertwo_embed_html_jp' );
|
add_filter( 'video_embed_html', 'featureon_embed_html_jp' );
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- *
|
/* ------------------------------------------------------------------------- *
|
||||||
|
@ -614,9 +614,9 @@ add_filter( 'video_embed_html', 'magazinertwo_embed_html_jp' );
|
||||||
|
|
||||||
/* Include or exclude featured articles in loop
|
/* Include or exclude featured articles in loop
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_pre_get_posts' ) ) {
|
if ( ! function_exists( 'featureon_pre_get_posts' ) ) {
|
||||||
|
|
||||||
function magazinertwo_pre_get_posts( $query ) {
|
function featureon_pre_get_posts( $query ) {
|
||||||
// Are we on main query ?
|
// 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() ) {
|
||||||
|
@ -624,7 +624,7 @@ if ( ! function_exists( 'magazinertwo_pre_get_posts' ) ) {
|
||||||
// Featured posts enabled
|
// Featured posts enabled
|
||||||
if ( get_theme_mod('featured-posts-count','5') != '0' ) {
|
if ( get_theme_mod('featured-posts-count','5') != '0' ) {
|
||||||
// Get featured post ids
|
// Get featured post ids
|
||||||
$featured_post_ids = magazinertwo_get_featured_post_ids();
|
$featured_post_ids = featureon_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);
|
||||||
|
@ -633,26 +633,26 @@ if ( ! function_exists( 'magazinertwo_pre_get_posts' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'pre_get_posts', 'magazinertwo_pre_get_posts' );
|
add_action( 'pre_get_posts', 'featureon_pre_get_posts' );
|
||||||
|
|
||||||
|
|
||||||
/* Script for no-js / js class
|
/* Script for no-js / js class
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_html_js_class' ) ) {
|
if ( ! function_exists( 'featureon_html_js_class' ) ) {
|
||||||
|
|
||||||
function magazinertwo_html_js_class () {
|
function featureon_html_js_class () {
|
||||||
echo '<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', 'magazinertwo_html_js_class', 1 );
|
add_action( 'wp_head', 'featureon_html_js_class', 1 );
|
||||||
|
|
||||||
|
|
||||||
/* Admin panel css
|
/* Admin panel css
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_admin_panel_css' ) ) {
|
if ( ! function_exists( 'featureon_admin_panel_css' ) ) {
|
||||||
|
|
||||||
function magazinertwo_admin_panel_css() {
|
function featureon_admin_panel_css() {
|
||||||
global $pagenow;
|
global $pagenow;
|
||||||
if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) {
|
if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) {
|
||||||
echo '<style>
|
echo '<style>
|
||||||
|
@ -663,35 +663,35 @@ if ( ! function_exists( 'magazinertwo_admin_panel_css' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'admin_head', 'magazinertwo_admin_panel_css' );
|
add_action( 'admin_head', 'featureon_admin_panel_css' );
|
||||||
|
|
||||||
|
|
||||||
/* TGM plugin activation
|
/* TGM plugin activation
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_plugins' ) ) {
|
if ( ! function_exists( 'featureon_plugins' ) ) {
|
||||||
|
|
||||||
function magazinertwo_plugins() {
|
function featureon_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', 'magazinertwo' ),
|
'name' => esc_html__( 'Alx Extensions', 'featureon' ),
|
||||||
'slug' => 'alx-extensions',
|
'slug' => 'alx-extensions',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => esc_html__( 'Meta Box', 'magazinertwo' ),
|
'name' => esc_html__( 'Meta Box', 'featureon' ),
|
||||||
'slug' => 'meta-box',
|
'slug' => 'meta-box',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => esc_html__( 'Regenerate Thumbnails', 'magazinertwo' ),
|
'name' => esc_html__( 'Regenerate Thumbnails', 'featureon' ),
|
||||||
'slug' => 'regenerate-thumbnails',
|
'slug' => 'regenerate-thumbnails',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => esc_html__( 'WP-PageNavi', 'magazinertwo' ),
|
'name' => esc_html__( 'WP-PageNavi', 'featureon' ),
|
||||||
'slug' => 'wp-pagenavi',
|
'slug' => 'wp-pagenavi',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => esc_html__( 'Social Count Plus', 'magazinertwo' ),
|
'name' => esc_html__( 'Social Count Plus', 'featureon' ),
|
||||||
'slug' => 'social-count-plus',
|
'slug' => 'social-count-plus',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -700,12 +700,12 @@ if ( ! function_exists( 'magazinertwo_plugins' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'tgmpa_register', 'magazinertwo_plugins' );
|
add_action( 'tgmpa_register', 'featureon_plugins' );
|
||||||
|
|
||||||
|
|
||||||
/* WooCommerce basic support
|
/* WooCommerce basic support
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
function magazinertwo_wc_wrapper_start() {
|
function featureon_wc_wrapper_start() {
|
||||||
echo '<div id="subheader" class="group">';
|
echo '<div id="subheader" class="group">';
|
||||||
echo '<div class="page-title group">';
|
echo '<div class="page-title group">';
|
||||||
echo '<div class="container pad">';
|
echo '<div class="container pad">';
|
||||||
|
@ -722,7 +722,7 @@ function magazinertwo_wc_wrapper_start() {
|
||||||
echo '<div class="content no-thumbnail">';
|
echo '<div class="content no-thumbnail">';
|
||||||
echo '<div class="bigpad group">';
|
echo '<div class="bigpad group">';
|
||||||
}
|
}
|
||||||
function magazinertwo_wc_wrapper_end() {
|
function featureon_wc_wrapper_end() {
|
||||||
echo '</div><!--/.bigpad-->';
|
echo '</div><!--/.bigpad-->';
|
||||||
echo '</div><!--/.content-->';
|
echo '</div><!--/.content-->';
|
||||||
get_sidebar();
|
get_sidebar();
|
||||||
|
@ -733,17 +733,17 @@ function magazinertwo_wc_wrapper_end() {
|
||||||
}
|
}
|
||||||
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', 'magazinertwo_wc_wrapper_start', 10);
|
add_action('woocommerce_before_main_content', 'featureon_wc_wrapper_start', 10);
|
||||||
add_action('woocommerce_after_main_content', 'magazinertwo_wc_wrapper_end', 10);
|
add_action('woocommerce_after_main_content', 'featureon_wc_wrapper_end', 10);
|
||||||
|
|
||||||
|
|
||||||
/* Accessibility IE11 fix - https://git.io/vWdr2
|
/* Accessibility IE11 fix - https://git.io/vWdr2
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
function magazinertwo_skip_link_focus_fix() {
|
function featureon_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', 'magazinertwo_skip_link_focus_fix' );
|
add_action( 'wp_print_footer_scripts', 'featureon_skip_link_focus_fix' );
|
|
@ -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 MagazinerTwo for publication on WordPress.org
|
* @version 2.6.1 for parent theme Featureon 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', 'magazinertwo' ),
|
'page_title' => __( 'Install Required Plugins', 'featureon' ),
|
||||||
'menu_title' => __( 'Install Plugins', 'magazinertwo' ),
|
'menu_title' => __( 'Install Plugins', 'featureon' ),
|
||||||
/* translators: %s: plugin name. */
|
/* translators: %s: plugin name. */
|
||||||
'installing' => __( 'Installing Plugin: %s', 'magazinertwo' ),
|
'installing' => __( 'Installing Plugin: %s', 'featureon' ),
|
||||||
/* translators: %s: plugin name. */
|
/* translators: %s: plugin name. */
|
||||||
'updating' => __( 'Updating Plugin: %s', 'magazinertwo' ),
|
'updating' => __( 'Updating Plugin: %s', 'featureon' ),
|
||||||
'oops' => __( 'Something went wrong with the plugin API.', 'magazinertwo' ),
|
'oops' => __( 'Something went wrong with the plugin API.', 'featureon' ),
|
||||||
'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.',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'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.',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'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.',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'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.',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'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.',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'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.',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'install_link' => _n_noop(
|
'install_link' => _n_noop(
|
||||||
'Begin installing plugin',
|
'Begin installing plugin',
|
||||||
'Begin installing plugins',
|
'Begin installing plugins',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'update_link' => _n_noop(
|
'update_link' => _n_noop(
|
||||||
'Begin updating plugin',
|
'Begin updating plugin',
|
||||||
'Begin updating plugins',
|
'Begin updating plugins',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'activate_link' => _n_noop(
|
'activate_link' => _n_noop(
|
||||||
'Begin activating plugin',
|
'Begin activating plugin',
|
||||||
'Begin activating plugins',
|
'Begin activating plugins',
|
||||||
'magazinertwo'
|
'featureon'
|
||||||
),
|
),
|
||||||
'return' => __( 'Return to Required Plugins Installer', 'magazinertwo' ),
|
'return' => __( 'Return to Required Plugins Installer', 'featureon' ),
|
||||||
'dashboard' => __( 'Return to the Dashboard', 'magazinertwo' ),
|
'dashboard' => __( 'Return to the Dashboard', 'featureon' ),
|
||||||
'plugin_activated' => __( 'Plugin activated successfully.', 'magazinertwo' ),
|
'plugin_activated' => __( 'Plugin activated successfully.', 'featureon' ),
|
||||||
'activated_successfully' => __( 'The following plugin was activated successfully:', 'magazinertwo' ),
|
'activated_successfully' => __( 'The following plugin was activated successfully:', 'featureon' ),
|
||||||
/* translators: 1: plugin name. */
|
/* translators: 1: plugin name. */
|
||||||
'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'magazinertwo' ),
|
'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'featureon' ),
|
||||||
/* 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.', 'magazinertwo' ),
|
'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'featureon' ),
|
||||||
/* translators: 1: dashboard link. */
|
/* translators: 1: dashboard link. */
|
||||||
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'magazinertwo' ),
|
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'featureon' ),
|
||||||
'dismiss' => __( 'Dismiss this notice', 'magazinertwo' ),
|
'dismiss' => __( 'Dismiss this notice', 'featureon' ),
|
||||||
'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'magazinertwo' ),
|
'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'featureon' ),
|
||||||
'contact_admin' => __( 'Please contact the administrator of this site for help.', 'magazinertwo' ),
|
'contact_admin' => __( 'Please contact the administrator of this site for help.', 'featureon' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
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.', 'magazinertwo' ),
|
esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'featureon' ),
|
||||||
esc_html__( 'Update Required', 'magazinertwo' )
|
esc_html__( 'Update Required', 'featureon' )
|
||||||
);
|
);
|
||||||
|
|
||||||
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', 'magazinertwo' ) . '</a>' ), '</p>';
|
echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'featureon' ) . '</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.', 'magazinertwo' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'magazinertwo' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
return new WP_Error( 'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'featureon' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'featureon' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
||||||
}
|
}
|
||||||
} elseif ( empty( $subdir_name ) ) {
|
} elseif ( empty( $subdir_name ) ) {
|
||||||
return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'magazinertwo' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'magazinertwo' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'featureon' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'featureon' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1118,12 +1118,12 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
||||||
$count = count( $plugin_group );
|
$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', 'magazinertwo' ) . ' ' . $last_plugin );
|
$imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'featureon' ) . ' ' . $last_plugin );
|
||||||
|
|
||||||
$rendered .= sprintf(
|
$rendered .= sprintf(
|
||||||
$line_template,
|
$line_template,
|
||||||
sprintf(
|
sprintf(
|
||||||
translate_nooped_plural( $this->strings[ $type ], $count, 'magazinertwo' ),
|
translate_nooped_plural( $this->strings[ $type ], $count, 'featureon' ),
|
||||||
$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, 'magazinertwo' ),
|
translate_nooped_plural( $this->strings['install_link'], $install_count, 'featureon' ),
|
||||||
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, 'magazinertwo' ),
|
translate_nooped_plural( $this->strings['update_link'], $update_count, 'featureon' ),
|
||||||
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, 'magazinertwo' ),
|
translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'featureon' ),
|
||||||
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', 'magazinertwo' ),
|
__( 'TGMPA v%s', 'featureon' ),
|
||||||
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', 'magazinertwo' );
|
return __( 'Required', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
return __( 'Recommended', 'magazinertwo' );
|
return __( 'Recommended', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2289,13 +2289,13 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
||||||
|
|
||||||
switch ( $type ) {
|
switch ( $type ) {
|
||||||
case 'repo':
|
case 'repo':
|
||||||
$string = __( 'WordPress Repository', 'magazinertwo' );
|
$string = __( 'WordPress Repository', 'featureon' );
|
||||||
break;
|
break;
|
||||||
case 'external':
|
case 'external':
|
||||||
$string = __( 'External Source', 'magazinertwo' );
|
$string = __( 'External Source', 'featureon' );
|
||||||
break;
|
break;
|
||||||
case 'bundled':
|
case 'bundled':
|
||||||
$string = __( 'Pre-Packaged', 'magazinertwo' );
|
$string = __( 'Pre-Packaged', 'featureon' );
|
||||||
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', 'magazinertwo' );
|
return __( 'Not Installed', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
|
if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
|
||||||
$install_status = __( 'Installed But Not Activated', 'magazinertwo' );
|
$install_status = __( 'Installed But Not Activated', 'featureon' );
|
||||||
} else {
|
} else {
|
||||||
$install_status = __( 'Active', 'magazinertwo' );
|
$install_status = __( 'Active', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$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', 'magazinertwo' );
|
$update_status = __( 'Required Update not Available', 'featureon' );
|
||||||
|
|
||||||
} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
|
} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
|
||||||
$update_status = __( 'Requires Update', 'magazinertwo' );
|
$update_status = __( 'Requires Update', 'featureon' );
|
||||||
|
|
||||||
} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
||||||
$update_status = __( 'Update recommended', 'magazinertwo' );
|
$update_status = __( 'Update recommended', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
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', 'magazinertwo' ),
|
_x( '%1$s, %2$s', 'Install/Update Status', 'featureon' ),
|
||||||
$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', 'magazinertwo' );
|
$text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'featureon' );
|
||||||
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, 'magazinertwo' );
|
$text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'featureon' );
|
||||||
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, 'magazinertwo' );
|
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'featureon' );
|
||||||
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, 'magazinertwo' );
|
$text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'featureon' );
|
||||||
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"', 'magazinertwo' );
|
$installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'featureon' );
|
||||||
|
|
||||||
$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:', 'magazinertwo' ) . '</p>',
|
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'featureon' ) . '</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:', 'magazinertwo' ) . '</p>',
|
'<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'featureon' ) . '</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:', 'magazinertwo' ) . '</p>',
|
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'featureon' ) . '</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.', 'magazinertwo' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'magazinertwo' ) . '</a>';
|
echo esc_html__( 'No plugins to install, update or activate.', 'featureon' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'featureon' ) . '</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', 'magazinertwo' ),
|
'plugin' => __( 'Plugin', 'featureon' ),
|
||||||
'source' => __( 'Source', 'magazinertwo' ),
|
'source' => __( 'Source', 'featureon' ),
|
||||||
'type' => __( 'Type', 'magazinertwo' ),
|
'type' => __( 'Type', 'featureon' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
|
if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
|
||||||
$columns['version'] = __( 'Version', 'magazinertwo' );
|
$columns['version'] = __( 'Version', 'featureon' );
|
||||||
$columns['status'] = __( 'Status', 'magazinertwo' );
|
$columns['status'] = __( 'Status', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
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', 'magazinertwo' );
|
$actions['install'] = __( 'Install %2$s', 'featureon' );
|
||||||
} 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', 'magazinertwo' );
|
$actions['update'] = __( 'Update %2$s', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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', 'magazinertwo' );
|
$actions['activate'] = __( 'Activate %2$s', 'featureon' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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:', 'magazinertwo' ),
|
esc_html__( 'Upgrade message from the plugin author:', 'featureon' ),
|
||||||
' <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', 'magazinertwo' );
|
$actions['tgmpa-bulk-install'] = __( 'Install', 'featureon' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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', 'magazinertwo' );
|
$actions['tgmpa-bulk-update'] = __( 'Update', 'featureon' );
|
||||||
}
|
}
|
||||||
if ( current_user_can( 'activate_plugins' ) ) {
|
if ( current_user_can( 'activate_plugins' ) ) {
|
||||||
$actions['tgmpa-bulk-activate'] = __( 'Activate', 'magazinertwo' );
|
$actions['tgmpa-bulk-activate'] = __( 'Activate', 'featureon' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2754,9 +2754,9 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
||||||
// Did user actually select any plugins to install/update ?
|
// 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.', 'magazinertwo' );
|
$message = __( 'No plugins were selected to be installed. No action taken.', 'featureon' );
|
||||||
} else {
|
} else {
|
||||||
$message = __( 'No plugins were selected to be updated. No action taken.', 'magazinertwo' );
|
$message = __( 'No plugins were selected to be updated. No action taken.', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<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.', 'magazinertwo' );
|
$message = __( 'No plugins are available to be installed at this time.', 'featureon' );
|
||||||
} else {
|
} else {
|
||||||
$message = __( 'No plugins are available to be updated at this time.', 'magazinertwo' );
|
$message = __( 'No plugins are available to be updated at this time.', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<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.', 'magazinertwo' ), '</p></div>';
|
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'featureon' ), '</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.', 'magazinertwo' ), '</p></div>';
|
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'featureon' ), '</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', 'magazinertwo' ) . ' ' . $last_plugin );
|
$imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'featureon' ) . ' ' . $last_plugin );
|
||||||
|
|
||||||
printf( // WPCS: xss ok.
|
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, 'magazinertwo' ) ),
|
esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'featureon' ) ),
|
||||||
$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.', 'magazinertwo' );
|
$this->strings['activation_failed'] = __( 'Plugin activation failed.', 'featureon' );
|
||||||
$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'magazinertwo' );
|
$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'featureon' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3495,29 +3495,29 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
|
||||||
if ( 'update' === $this->options['install_type'] ) {
|
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)', 'magazinertwo' );
|
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'featureon' );
|
||||||
} 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>.', 'magazinertwo' );
|
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'featureon' );
|
||||||
/* translators: 1: plugin name. */
|
/* translators: 1: plugin name. */
|
||||||
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'magazinertwo' );
|
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'featureon' );
|
||||||
|
|
||||||
if ( $this->tgmpa->is_automatic ) {
|
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.', 'magazinertwo' );
|
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'featureon' );
|
||||||
/* translators: 1: plugin name. */
|
/* translators: 1: plugin name. */
|
||||||
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'magazinertwo' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'magazinertwo' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'magazinertwo' ) . '</span>.</a>';
|
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'featureon' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'featureon' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'featureon' ) . '</span>.</a>';
|
||||||
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'magazinertwo' );
|
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'featureon' );
|
||||||
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
|
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
|
||||||
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'magazinertwo' );
|
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'featureon' );
|
||||||
} else {
|
} 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.', 'magazinertwo' );
|
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'featureon' );
|
||||||
/* translators: 1: plugin name. */
|
/* translators: 1: plugin name. */
|
||||||
$this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'magazinertwo' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'magazinertwo' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'magazinertwo' ) . '</span>.</a>';
|
$this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'featureon' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'featureon' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'featureon' ) . '</span>.</a>';
|
||||||
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'magazinertwo' );
|
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'featureon' );
|
||||||
/* 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)', 'magazinertwo' );
|
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'featureon' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3577,7 +3577,7 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
|
||||||
echo '<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', 'magazinertwo' ) . '</a>'
|
'<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'featureon' ) . '</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>';
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
/* Convert hexadecimal to rgb
|
/* Convert hexadecimal to rgb
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_hex2rgb' ) ) {
|
if ( ! function_exists( 'featureon_hex2rgb' ) ) {
|
||||||
|
|
||||||
function magazinertwo_hex2rgb( $hex, $array=false ) {
|
function featureon_hex2rgb( $hex, $array=false ) {
|
||||||
$hex = str_replace("#", "", $hex);
|
$hex = str_replace("#", "", $hex);
|
||||||
|
|
||||||
if ( strlen($hex) == 3 ) {
|
if ( strlen($hex) == 3 ) {
|
||||||
|
@ -30,9 +30,9 @@ if ( ! function_exists( 'magazinertwo_hex2rgb' ) ) {
|
||||||
|
|
||||||
/* Google fonts
|
/* Google fonts
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_enqueue_google_fonts' ) ) {
|
if ( ! function_exists( 'featureon_enqueue_google_fonts' ) ) {
|
||||||
|
|
||||||
function magazinertwo_enqueue_google_fonts () {
|
function featureon_enqueue_google_fonts () {
|
||||||
if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) {
|
if ( get_theme_mod('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( 'magazinertwo_enqueue_google_fonts' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'magazinertwo_enqueue_google_fonts' );
|
add_action( 'wp_enqueue_scripts', 'featureon_enqueue_google_fonts' );
|
||||||
|
|
||||||
|
|
||||||
/* Dynamic css output
|
/* Dynamic css output
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
if ( ! function_exists( 'magazinertwo_dynamic_css' ) ) {
|
if ( ! function_exists( 'featureon_dynamic_css' ) ) {
|
||||||
|
|
||||||
function magazinertwo_dynamic_css() {
|
function featureon_dynamic_css() {
|
||||||
if ( get_theme_mod('dynamic-styles', 'on') == 'on' ) {
|
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 = magazinertwo_hex2rgb($color_1);
|
$color_1_rgb = featureon_hex2rgb($color_1);
|
||||||
|
|
||||||
// start output
|
// start output
|
||||||
$styles = '';
|
$styles = '';
|
||||||
|
@ -310,9 +310,9 @@ box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); }
|
||||||
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( 'magazinertwo-style', $styles );
|
wp_add_inline_style( 'featureon-style', $styles );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'magazinertwo_dynamic_css' );
|
add_action( 'wp_enqueue_scripts', 'featureon_dynamic_css' );
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
function magazinertwo_get_meta_box( $meta_boxes ) {
|
function featureon_get_meta_box( $meta_boxes ) {
|
||||||
|
|
||||||
/* do not show */
|
/* do not show */
|
||||||
$prefix = '_';
|
$prefix = '_';
|
||||||
|
@ -18,7 +18,7 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
$meta_boxes[] = array(
|
$meta_boxes[] = array(
|
||||||
'id' => 'page-options',
|
'id' => 'page-options',
|
||||||
'title' => esc_html__( 'Page Options', 'magazinertwo' ),
|
'title' => esc_html__( 'Page Options', 'featureon' ),
|
||||||
'post_types' => array( 'page' ),
|
'post_types' => array( 'page' ),
|
||||||
'context' => 'advanced',
|
'context' => 'advanced',
|
||||||
'priority' => 'high',
|
'priority' => 'high',
|
||||||
|
@ -26,22 +26,22 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
array(
|
array(
|
||||||
'id' => $prefix . 'sidebar_primary',
|
'id' => $prefix . 'sidebar_primary',
|
||||||
'name' => esc_html__( 'Primary Sidebar', 'magazinertwo' ),
|
'name' => esc_html__( 'Primary Sidebar', 'featureon' ),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
|
'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
|
||||||
'options' => $sidebars_choices,
|
'options' => $sidebars_choices,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => $prefix . 'sidebar_secondary',
|
'id' => $prefix . 'sidebar_secondary',
|
||||||
'name' => esc_html__( 'Secondary Sidebar', 'magazinertwo' ),
|
'name' => esc_html__( 'Secondary Sidebar', 'featureon' ),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
|
'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
|
||||||
'options' => $sidebars_choices,
|
'options' => $sidebars_choices,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => $prefix . 'layout',
|
'id' => $prefix . 'layout',
|
||||||
'type' => 'image_select',
|
'type' => 'image_select',
|
||||||
'name' => esc_html__( 'Layout', 'magazinertwo' ),
|
'name' => esc_html__( 'Layout', 'featureon' ),
|
||||||
'std' => 'inherit',
|
'std' => 'inherit',
|
||||||
'force_delete' => false,
|
'force_delete' => false,
|
||||||
'max_file_uploads' => '4',
|
'max_file_uploads' => '4',
|
||||||
|
@ -62,7 +62,7 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
$meta_boxes[] = array(
|
$meta_boxes[] = array(
|
||||||
'id' => 'post-options',
|
'id' => 'post-options',
|
||||||
'title' => esc_html__( 'Post Options', 'magazinertwo' ),
|
'title' => esc_html__( 'Post Options', 'featureon' ),
|
||||||
'post_types' => array( 'post' ),
|
'post_types' => array( 'post' ),
|
||||||
'context' => 'advanced',
|
'context' => 'advanced',
|
||||||
'priority' => 'high',
|
'priority' => 'high',
|
||||||
|
@ -70,22 +70,22 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
array(
|
array(
|
||||||
'id' => $prefix . 'sidebar_primary',
|
'id' => $prefix . 'sidebar_primary',
|
||||||
'name' => esc_html__( 'Primary Sidebar', 'magazinertwo' ),
|
'name' => esc_html__( 'Primary Sidebar', 'featureon' ),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
|
'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
|
||||||
'options' => $sidebars_choices,
|
'options' => $sidebars_choices,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => $prefix . 'sidebar_secondary',
|
'id' => $prefix . 'sidebar_secondary',
|
||||||
'name' => esc_html__( 'Secondary Sidebar', 'magazinertwo' ),
|
'name' => esc_html__( 'Secondary Sidebar', 'featureon' ),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'placeholder' => esc_html__( 'Select a sidebar', 'magazinertwo' ),
|
'placeholder' => esc_html__( 'Select a sidebar', 'featureon' ),
|
||||||
'options' => $sidebars_choices,
|
'options' => $sidebars_choices,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => $prefix . 'layout',
|
'id' => $prefix . 'layout',
|
||||||
'type' => 'image_select',
|
'type' => 'image_select',
|
||||||
'name' => esc_html__( 'Layout', 'magazinertwo' ),
|
'name' => esc_html__( 'Layout', 'featureon' ),
|
||||||
'std' => 'inherit',
|
'std' => 'inherit',
|
||||||
'force_delete' => false,
|
'force_delete' => false,
|
||||||
'max_file_uploads' => '4',
|
'max_file_uploads' => '4',
|
||||||
|
@ -105,4 +105,4 @@ function magazinertwo_get_meta_box( $meta_boxes ) {
|
||||||
|
|
||||||
return $meta_boxes;
|
return $meta_boxes;
|
||||||
}
|
}
|
||||||
add_filter( 'rwmb_meta_boxes', 'magazinertwo_get_meta_box' );
|
add_filter( 'rwmb_meta_boxes', 'featureon_get_meta_box' );
|
File diff suppressed because it is too large
Load diff
|
@ -14,7 +14,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="#page"><?php _e( 'Skip to content', 'magazinertwo' ); ?></a>
|
<a class="skip-link screen-reader-text" href="#page"><?php _e( 'Skip to content', 'featureon' ); ?></a>
|
||||||
|
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
<div class="container group">
|
<div class="container group">
|
||||||
<div class="group pad">
|
<div class="group pad">
|
||||||
<?php if ( get_theme_mod( 'header-social', 'on' ) == 'on' ): ?>
|
<?php if ( get_theme_mod( 'header-social', 'on' ) == 'on' ): ?>
|
||||||
<?php magazinertwo_social_links() ; ?>
|
<?php featureon_social_links() ; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
|
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
|
||||||
<div class="toggle-search"><i class="fas fa-search"></i></div>
|
<div class="toggle-search"><i class="fas fa-search"></i></div>
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
<div class="container group">
|
<div class="container group">
|
||||||
<div class="group pad">
|
<div class="group pad">
|
||||||
<?php echo magazinertwo_site_title(); ?>
|
<?php echo featureon_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; ?>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="container pad">
|
<div class="container pad">
|
||||||
|
|
||||||
<?php if ( is_home() ) : ?>
|
<?php if ( is_home() ) : ?>
|
||||||
<h2><strong><?php echo magazinertwo_blog_title(); ?></strong></h2>
|
<h2><strong><?php echo featureon_blog_title(); ?></strong></h2>
|
||||||
|
|
||||||
<?php elseif ( is_single() ): ?>
|
<?php elseif ( is_single() ): ?>
|
||||||
<h2><strong><?php the_category(' <span>/</span> '); ?></strong></h2>
|
<h2><strong><?php the_category(' <span>/</span> '); ?></strong></h2>
|
||||||
|
@ -16,34 +16,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','magazinertwo');
|
echo $search_results.' '.esc_html__('Search result','featureon');
|
||||||
} else {
|
} else {
|
||||||
echo $search_results.' '.esc_html__('Search results','magazinertwo');
|
echo $search_results.' '.esc_html__('Search results','featureon');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></h1>
|
</strong></h1>
|
||||||
|
|
||||||
<?php elseif ( is_404() ): ?>
|
<?php elseif ( is_404() ): ?>
|
||||||
<h1><strong><i class="fas fa-exclamation-circle"></i><?php esc_html_e('Error 404.','magazinertwo'); ?> <span><?php esc_html_e('Page not found!','magazinertwo'); ?></span></strong></h1>
|
<h1><strong><i class="fas fa-exclamation-circle"></i><?php esc_html_e('Error 404.','featureon'); ?> <span><?php esc_html_e('Page not found!','featureon'); ?></span></strong></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><strong><i class="far fa-user"></i><?php esc_html_e('Author:','magazinertwo'); ?> <span><?php echo $author->display_name;?></span></strong></h1>
|
<h1><strong><i class="far fa-user"></i><?php esc_html_e('Author:','featureon'); ?> <span><?php echo $author->display_name;?></span></strong></h1>
|
||||||
|
|
||||||
<?php elseif ( is_category() ): ?>
|
<?php elseif ( is_category() ): ?>
|
||||||
<h1><strong><?php echo single_cat_title('', false); ?></strong></h1>
|
<h1><strong><?php echo single_cat_title('', false); ?></strong></h1>
|
||||||
|
|
||||||
<?php elseif ( is_tag() ): ?>
|
<?php elseif ( is_tag() ): ?>
|
||||||
<h1><strong><i class="fas fa-tags"></i><?php esc_html_e('Tagged:','magazinertwo'); ?> <span><?php echo single_tag_title('', false); ?></span></strong></h1>
|
<h1><strong><i class="fas fa-tags"></i><?php esc_html_e('Tagged:','featureon'); ?> <span><?php echo single_tag_title('', false); ?></span></strong></h1>
|
||||||
|
|
||||||
<?php elseif ( is_day() ): ?>
|
<?php elseif ( is_day() ): ?>
|
||||||
<h1><strong><i class="far fa-calendar"></i><?php esc_html_e('Daily Archive:','magazinertwo'); ?> <span><?php echo esc_html( get_the_time('F j, Y') ); ?></span></strong></h1>
|
<h1><strong><i class="far fa-calendar"></i><?php esc_html_e('Daily Archive:','featureon'); ?> <span><?php echo esc_html( get_the_time('F j, Y') ); ?></span></strong></h1>
|
||||||
|
|
||||||
<?php elseif ( is_month() ): ?>
|
<?php elseif ( is_month() ): ?>
|
||||||
<h1><strong><i class="far fa-calendar"></i><?php esc_html_e('Monthly Archive:','magazinertwo'); ?> <span><?php echo esc_html( get_the_time('F Y') ); ?></span></strong></h1>
|
<h1><strong><i class="far fa-calendar"></i><?php esc_html_e('Monthly Archive:','featureon'); ?> <span><?php echo esc_html( get_the_time('F Y') ); ?></span></strong></h1>
|
||||||
|
|
||||||
<?php elseif ( is_year() ): ?>
|
<?php elseif ( is_year() ): ?>
|
||||||
<h1><strong><i class="far fa-calendar"></i><?php esc_html_e('Yearly Archive:','magazinertwo'); ?> <span><?php echo esc_html( get_the_time('Y') ); ?></span></strong></h1>
|
<h1><strong><i class="far fa-calendar"></i><?php esc_html_e('Yearly Archive:','featureon'); ?> <span><?php echo esc_html( get_the_time('Y') ); ?></span></strong></h1>
|
||||||
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<h2><strong><?php the_title(); ?></strong></h2>
|
<h2><strong><?php the_title(); ?></strong></h2>
|
||||||
|
|
|
@ -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 = magazinertwo_post_images(); if ( !empty($images) ): ?>
|
<?php $images = featureon_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('magazinertwo-large');
|
the_post_thumbnail('featureon-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>';
|
||||||
} ?>
|
} ?>
|
||||||
|
|
|
@ -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', 'magazinertwo').'</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', 'featureon').'</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', 'magazinertwo').'</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', 'featureon').'</strong> <span>%title</span>'); ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
|
@ -1,9 +1,9 @@
|
||||||
<?php $related = magazinertwo_related_posts(); ?>
|
<?php $related = featureon_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...','magazinertwo'); ?>
|
<i class="fas fa-hand-point-right"></i><?php esc_html_e('You may also like...','featureon'); ?>
|
||||||
</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('magazinertwo-medium'); ?>
|
<?php the_post_thumbnail('featureon-medium'); ?>
|
||||||
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
||||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: MagazinerTwo\n"
|
"Project-Id-Version: Featureon\n"
|
||||||
"POT-Creation-Date: 2019-07-30 14:10+0200\n"
|
"POT-Creation-Date: 2019-07-30 14:10+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"
|
|
@ -11,7 +11,7 @@ Template Name: Child Menu
|
||||||
|
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<?php if ( has_post_thumbnail() ) {
|
<?php if ( has_post_thumbnail() ) {
|
||||||
the_post_thumbnail('magazinertwo-huge');
|
the_post_thumbnail('featureon-huge');
|
||||||
$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>';
|
||||||
} ?>
|
} ?>
|
||||||
|
|
2
page.php
2
page.php
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<?php if ( has_post_thumbnail() ) {
|
<?php if ( has_post_thumbnail() ) {
|
||||||
the_post_thumbnail('magazinertwo-huge');
|
the_post_thumbnail('featureon-huge');
|
||||||
$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>';
|
||||||
} ?>
|
} ?>
|
||||||
|
|
16
readme.txt
16
readme.txt
|
@ -1,4 +1,4 @@
|
||||||
=== MagazinerTwo ===
|
=== Featureon ===
|
||||||
Contributors: alxmedia
|
Contributors: alxmedia
|
||||||
Requires at least: 5.0
|
Requires at least: 5.0
|
||||||
Tested up to: 5.3.2
|
Tested up to: 5.3.2
|
||||||
|
@ -9,12 +9,12 @@ Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar,
|
||||||
|
|
||||||
== Description ==
|
== Description ==
|
||||||
|
|
||||||
MagazinerTwo is a responsive 100% high resolution theme for blogs and magazines. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-2 sidebars to the left or right that can be uniquely specified for each page or post, 300px / 300px fixed width sidebars, 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.
|
Featureon is a responsive 100% high resolution theme for blogs and magazines. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-2 sidebars to the left or right that can be uniquely specified for each page or post, 300px / 300px fixed width sidebars, 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 MagazinerTwo in the search form and press the 'Enter' key on your keyboard.
|
2. Type in Featureon 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.
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@ http://alx.media/documentation/
|
||||||
|
|
||||||
== Copyright ==
|
== Copyright ==
|
||||||
|
|
||||||
MagazinerTwo WordPress Theme, Copyright 2018 AlxMedia
|
Featureon WordPress Theme, Copyright 2018 AlxMedia
|
||||||
MagazinerTwo is distributed under the terms of the GNU GPL
|
Featureon 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
|
||||||
|
@ -37,7 +37,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.
|
||||||
|
|
||||||
MagazinerTwo bundles the following third-party resources:
|
Featureon bundles the following third-party resources:
|
||||||
|
|
||||||
Font Awesome, Copyright Dave Gandy
|
Font Awesome, Copyright Dave Gandy
|
||||||
License: SIL OFL 1.1 (Fonts); MIT (CSS)
|
License: SIL OFL 1.1 (Fonts); MIT (CSS)
|
||||||
|
@ -106,7 +106,7 @@ Source: http://pixabay.com/
|
||||||
* 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 magazinertwo_
|
* Changed function names from alx_ to featureon_
|
||||||
* 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
|
||||||
|
@ -173,7 +173,7 @@ Source: http://pixabay.com/
|
||||||
* Added new topbar menu
|
* Added new topbar menu
|
||||||
|
|
||||||
= 2.0.0 - 2016-02-15 =
|
= 2.0.0 - 2016-02-15 =
|
||||||
* MagazinerTwo 2.0 redesign
|
* Featureon 2.0 redesign
|
||||||
* New home header design with carousel and featured entries
|
* New home header design with carousel and featured entries
|
||||||
* New footer design with carousel
|
* New footer design with carousel
|
||||||
* New category pages with 5 most recent posts shown up top
|
* New category pages with 5 most recent posts shown up top
|
||||||
|
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 735 KiB After Width: | Height: | Size: 655 KiB |
|
@ -13,9 +13,9 @@
|
||||||
<div class="pad group">
|
<div class="pad group">
|
||||||
|
|
||||||
<div class="notebox">
|
<div class="notebox">
|
||||||
<?php esc_html_e('For the term','magazinertwo'); ?> "<span><?php echo get_search_query(); ?></span>".
|
<?php esc_html_e('For the term','featureon'); ?> "<span><?php echo get_search_query(); ?></span>".
|
||||||
<?php if ( !have_posts() ): ?>
|
<?php if ( !have_posts() ): ?>
|
||||||
<?php esc_html_e('Please try another search:','magazinertwo'); ?>
|
<?php esc_html_e('Please try another search:','featureon'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="search-again">
|
<div class="search-again">
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
|
|
|
@ -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','magazinertwo'); ?>';" onfocus="if(this.value=='<?php esc_attr_e('To search type and hit enter','magazinertwo'); ?>')this.value='';" value="<?php esc_attr_e('To search type and hit enter','magazinertwo'); ?>" />
|
<input type="text" class="search" name="s" onblur="if(this.value=='')this.value='<?php esc_attr_e('To search type and hit enter','featureon'); ?>';" onfocus="if(this.value=='<?php esc_attr_e('To search type and hit enter','featureon'); ?>')this.value='';" value="<?php esc_attr_e('To search type and hit enter','featureon'); ?>" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
|
@ -1,8 +1,8 @@
|
||||||
<?php $sidebar = magazinertwo_sidebar_secondary(); ?>
|
<?php $sidebar = featureon_sidebar_secondary(); ?>
|
||||||
|
|
||||||
<div class="sidebar s2">
|
<div class="sidebar s2">
|
||||||
|
|
||||||
<a class="sidebar-toggle" title="<?php esc_attr_e('Expand Sidebar','magazinertwo'); ?>"><i class="fa icon-sidebar-toggle"></i></a>
|
<a class="sidebar-toggle" title="<?php esc_attr_e('Expand Sidebar','featureon'); ?>"><i class="fa icon-sidebar-toggle"></i></a>
|
||||||
|
|
||||||
<div class="sidebar-content">
|
<div class="sidebar-content">
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
$sidebar = magazinertwo_sidebar_primary();
|
$sidebar = featureon_sidebar_primary();
|
||||||
$layout = magazinertwo_layout_class();
|
$layout = featureon_layout_class();
|
||||||
if ( $layout != 'col-1c'):
|
if ( $layout != 'col-1c'):
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="sidebar s1">
|
<div class="sidebar s1">
|
||||||
|
|
||||||
<a class="sidebar-toggle" title="<?php esc_attr_e('Expand Sidebar','magazinertwo'); ?>"><i class="fa icon-sidebar-toggle"></i></a>
|
<a class="sidebar-toggle" title="<?php esc_attr_e('Expand Sidebar','featureon'); ?>"><i class="fa icon-sidebar-toggle"></i></a>
|
||||||
|
|
||||||
<div class="sidebar-content">
|
<div class="sidebar-content">
|
||||||
|
|
||||||
|
|
10
single.php
10
single.php
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<?php if ( has_post_thumbnail() ) {
|
<?php if ( has_post_thumbnail() ) {
|
||||||
the_post_thumbnail('magazinertwo-huge');
|
the_post_thumbnail('featureon-huge');
|
||||||
$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>';
|
||||||
} ?>
|
} ?>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<div class="post-inner group">
|
<div class="post-inner group">
|
||||||
|
|
||||||
<h1 class="post-title ontop"><?php the_title(); ?></h1>
|
<h1 class="post-title ontop"><?php the_title(); ?></h1>
|
||||||
<p class="post-byline"><?php echo get_avatar(get_the_author_meta('user_email'),'64'); ?><?php esc_html_e('by','magazinertwo'); ?> <?php the_author_posts_link(); ?> · <?php the_time( get_option('date_format') ); ?></p>
|
<p class="post-byline"><?php echo get_avatar(get_the_author_meta('user_email'),'64'); ?><?php esc_html_e('by','featureon'); ?> <?php the_author_posts_link(); ?> · <?php the_time( get_option('date_format') ); ?></p>
|
||||||
|
|
||||||
<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
|
<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
|
||||||
|
|
||||||
|
@ -36,10 +36,10 @@
|
||||||
<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:','magazinertwo'),'after'=>'</div>')); ?>
|
<?php wp_link_pages(array('before'=>'<div class="post-pages">'.esc_html__('Pages:','featureon'),'after'=>'</div>')); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<?php the_tags('<p class="post-tags"><span>'.esc_html__('Tags:','magazinertwo').'</span> ','','</p>'); ?>
|
<?php the_tags('<p class="post-tags"><span>'.esc_html__('Tags:','featureon').'</span> ','','</p>'); ?>
|
||||||
<?php do_action( 'alx_ext_sharrre' ); ?>
|
<?php do_action( 'alx_ext_sharrre' ); ?>
|
||||||
|
|
||||||
</div><!--/.entry-->
|
</div><!--/.entry-->
|
||||||
|
@ -53,7 +53,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','magazinertwo'); ?> <?php the_author_posts_link(); ?></p>
|
<p class="bio-name"><?php esc_html_e('Written by','featureon'); ?> <?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>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
/*
|
/*
|
||||||
Theme Name: MagazinerTwo
|
Theme Name: Featureon
|
||||||
Theme URI: http://alx.media/themes/magazinertwo/
|
Theme URI: http://alx.media/themes/featureon/
|
||||||
Version: 2.3.7
|
Version: 2.3.7
|
||||||
Description: <a href="http://alx.media/themes/magazinertwo/">MagazinerTwo</a> is a responsive 100% high resolution theme for blogs and magazines. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-2 sidebars to the left or right that can be uniquely specified for each page or post, 300px / 300px fixed width sidebars, 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/featureon/">Featureon</a> is a responsive 100% high resolution theme for blogs and magazines. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-2 sidebars to the left or right that can be uniquely specified for each page or post, 300px / 300px fixed width sidebars, 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: magazinertwo
|
Text Domain: featureon
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -16,8 +16,8 @@ $updater = new EDD_Theme_Updater_Admin(
|
||||||
// Config settings
|
// Config settings
|
||||||
$config = array(
|
$config = array(
|
||||||
'remote_api_url' => 'https://alx.media', // Site where EDD is hosted
|
'remote_api_url' => 'https://alx.media', // Site where EDD is hosted
|
||||||
'item_name' => 'MagazinerTwo', // Name of theme
|
'item_name' => 'Featureon', // Name of theme
|
||||||
'theme_slug' => 'magazinertwo', // Theme slug
|
'theme_slug' => 'featureon', // Theme slug
|
||||||
'version' => '2.3.7', // The current version of this theme
|
'version' => '2.3.7', // The current version of this theme
|
||||||
'author' => 'AlxMedia', // The author of this theme
|
'author' => 'AlxMedia', // The author of this theme
|
||||||
'download_id' => '', // Optional, used for generating a license renewal link
|
'download_id' => '', // Optional, used for generating a license renewal link
|
||||||
|
@ -27,28 +27,28 @@ $updater = new EDD_Theme_Updater_Admin(
|
||||||
|
|
||||||
// Strings
|
// Strings
|
||||||
$strings = array(
|
$strings = array(
|
||||||
'theme-license' => __( 'Theme License', 'magazinertwo' ),
|
'theme-license' => __( 'Theme License', 'featureon' ),
|
||||||
'enter-key' => __( 'Enter your theme license key.', 'magazinertwo' ),
|
'enter-key' => __( 'Enter your theme license key.', 'featureon' ),
|
||||||
'license-key' => __( 'License Key', 'magazinertwo' ),
|
'license-key' => __( 'License Key', 'featureon' ),
|
||||||
'license-action' => __( 'License Action', 'magazinertwo' ),
|
'license-action' => __( 'License Action', 'featureon' ),
|
||||||
'deactivate-license' => __( 'Deactivate License', 'magazinertwo' ),
|
'deactivate-license' => __( 'Deactivate License', 'featureon' ),
|
||||||
'activate-license' => __( 'Activate License', 'magazinertwo' ),
|
'activate-license' => __( 'Activate License', 'featureon' ),
|
||||||
'status-unknown' => __( 'License status is unknown.', 'magazinertwo' ),
|
'status-unknown' => __( 'License status is unknown.', 'featureon' ),
|
||||||
'renew' => __( 'Renew?', 'magazinertwo' ),
|
'renew' => __( 'Renew?', 'featureon' ),
|
||||||
'unlimited' => __( 'unlimited', 'magazinertwo' ),
|
'unlimited' => __( 'unlimited', 'featureon' ),
|
||||||
'license-key-is-active' => __( 'License key is active.', 'magazinertwo' ),
|
'license-key-is-active' => __( 'License key is active.', 'featureon' ),
|
||||||
'expires%s' => __( 'Expires %s.', 'magazinertwo' ),
|
'expires%s' => __( 'Expires %s.', 'featureon' ),
|
||||||
'expires-never' => __( 'Lifetime License.', 'magazinertwo' ),
|
'expires-never' => __( 'Lifetime License.', 'featureon' ),
|
||||||
'%1$s/%2$-sites' => __( 'You have %1$s / %2$s sites activated.', 'magazinertwo' ),
|
'%1$s/%2$-sites' => __( 'You have %1$s / %2$s sites activated.', 'featureon' ),
|
||||||
'license-key-expired-%s' => __( 'License key expired %s.', 'magazinertwo' ),
|
'license-key-expired-%s' => __( 'License key expired %s.', 'featureon' ),
|
||||||
'license-key-expired' => __( 'License key has expired.', 'magazinertwo' ),
|
'license-key-expired' => __( 'License key has expired.', 'featureon' ),
|
||||||
'license-keys-do-not-match' => __( 'License keys do not match.', 'magazinertwo' ),
|
'license-keys-do-not-match' => __( 'License keys do not match.', 'featureon' ),
|
||||||
'license-is-inactive' => __( 'License is inactive.', 'magazinertwo' ),
|
'license-is-inactive' => __( 'License is inactive.', 'featureon' ),
|
||||||
'license-key-is-disabled' => __( 'License key is disabled.', 'magazinertwo' ),
|
'license-key-is-disabled' => __( 'License key is disabled.', 'featureon' ),
|
||||||
'site-is-inactive' => __( 'Site is inactive.', 'magazinertwo' ),
|
'site-is-inactive' => __( 'Site is inactive.', 'featureon' ),
|
||||||
'license-status-unknown' => __( 'License status is unknown.', 'magazinertwo' ),
|
'license-status-unknown' => __( 'License status is unknown.', 'featureon' ),
|
||||||
'update-notice' => __( "Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.", 'magazinertwo' ),
|
'update-notice' => __( "Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.", 'featureon' ),
|
||||||
'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>.', 'magazinertwo' ),
|
'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>.', 'featureon' ),
|
||||||
)
|
)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue