File: /home/dailyajk/public_html/wp-content/themes/jphostbd-news12/include/widget.php
<?php
function theme_widgets_areas(){
register_sidebar(array(
'name' => __( 'Sidebar Widget', 'jphostbd.com' ),
'id' => 'swidget_area',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 01', 'jphostbd.com' ),
'id' => 'widget_area_01',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 02', 'jphostbd.com' ),
'id' => 'widget_area_02',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 03', 'jphostbd.com' ),
'id' => 'widget_area_03',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 04', 'jphostbd.com' ),
'id' => 'widget_area_04',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 05', 'jphostbd.com' ),
'id' => 'widget_area_05',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 06', 'jphostbd.com' ),
'id' => 'widget_area_06',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 07', 'jphostbd.com' ),
'id' => 'widget_area_07',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 08', 'jphostbd.com' ),
'id' => 'widget_area_08',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 09', 'jphostbd.com' ),
'id' => 'widget_area_09',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 10', 'jphostbd.com' ),
'id' => 'widget_area_10',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 11', 'jphostbd.com' ),
'id' => 'widget_area_11',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 12', 'jphostbd.com' ),
'id' => 'widget_area_12',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 13', 'jphostbd.com' ),
'id' => 'widget_area_13',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 14', 'jphostbd.com' ),
'id' => 'widget_area_14',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 15', 'jphostbd.com' ),
'id' => 'widget_area_15',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Widget Area 16', 'jphostbd.com' ),
'id' => 'widget_area_16',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Single Page Top', 'jphostbd.com' ),
'id' => 'single_top',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Single Page Middle', 'jphostbd.com' ),
'id' => 'single_middle',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Single Page Buttom', 'jphostbd.com' ),
'id' => 'single_buttom',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Single Sidebar Top', 'jphostbd.com' ),
'id' => 'single_sidebar_top',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __( 'Single Sidebar Bottom', 'jphostbd.com' ),
'id' => 'single_sidebar_bottom',
'description' => esc_html__( 'Add widgets here.', 'themes' ),
'before_widget' => '<div class="widget_area">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
}
add_action('widgets_init', 'theme_widgets_areas');
/**add_filter( 'wp_title', 'wpdocs_hack_wp_title_for_home' );
* Customize the title for the home page, if one is not set.
*
* @param string $title The original title.
* @return string The title to use.
function wpdocs_hack_wp_title_for_home( $title )
{
if ( empty( $title ) && ( is_home() || is_front_page() ) ) {
$title = __( 'Home', 'textdomain' ) . ' | ' . get_bloginfo( 'name' ). ' | ' . get_bloginfo( 'description' );
}
return $title;
}
function bn_number($str)
{
$en = array(1,2,3,4,5,6,7,8,9,0);
$bn = array('১','২','৩','৪','৫','৬','৭','৮','৯','০');
$str = str_replace($en, $bn, $str);
return $str;
}
function wp_bootstrap_pagination( $args = array() ) {
$defaults = array(
'range' => 4,
'custom_query' => FALSE,
'previous_string' => __( '<i class="fa fa-backward" aria-hidden="true"></i>
', 'text-domain' ),
'next_string' => __( '<i class="fa fa-forward" aria-hidden="true"></i>
', 'text-domain' ),
'before_output' => '<div class="post-nav"><ul class="pager">',
'after_output' => '</ul></div>'
);
$args = wp_parse_args(
$args,
apply_filters( 'wp_bootstrap_pagination_defaults', $defaults )
);
$args['range'] = (int) $args['range'] - 1;
if ( !$args['custom_query'] )
$args['custom_query'] = @$GLOBALS['wp_query'];
$count = (int) $args['custom_query']->max_num_pages;
$page = intval( get_query_var( 'paged' ) );
$ceil = ceil( $args['range'] / 2 );
if ( $count <= 1 )
return FALSE;
if ( !$page )
$page = 1;
if ( $count > $args['range'] ) {
if ( $page <= $args['range'] ) {
$min = 1;
$max = $args['range'] + 1;
} elseif ( $page >= ($count - $ceil) ) {
$min = $count - $args['range'];
$max = $count;
} elseif ( $page >= $args['range'] && $page < ($count - $ceil) ) {
$min = $page - $ceil;
$max = $page + $ceil;
}
} else {
$min = 1;
$max = $count;
}
$echo = '';
$previous = intval($page) - 1;
$previous = esc_attr( get_pagenum_link($previous) );
$firstpage = esc_attr( get_pagenum_link(1) );
if ( $firstpage && (1 != $page) )
$echo .= '<li class="previous"><a href="' . $firstpage . '">' . __( '<i class="fa fa-fast-backward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
if ( $previous && (1 != $page) )
$echo .= '<li><a href="' . $previous . '" title="' . __( 'previous', 'jphostbd') . '">' . $args['previous_string'] . '</a></li>';
if ( !empty($min) && !empty($max) ) {
for( $i = $min; $i <= $max; $i++ ) {
if ($page == $i) {
$echo .= '<li class="active"><span class="active">' . str_pad( (int)$i, 2, '0', STR_PAD_LEFT ) . '</span></li>';
} else {
$echo .= sprintf( '<li><a href="%s">%002d</a></li>', esc_attr( get_pagenum_link($i) ), $i );
}
}
}
$next = intval($page) + 1;
$next = esc_attr( get_pagenum_link($next) );
if ($next && ($count != $page) )
$echo .= '<li><a href="' . $next . '" title="' . __( 'next', 'text-domain') . '">' . $args['next_string'] . '</a></li>';
$lastpage = esc_attr( get_pagenum_link($count) );
if ( $lastpage ) {
$echo .= '<li class="next"><a href="' . $lastpage . '">' . __( '<i class="fa fa-fast-forward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
}
if ( isset($echo) )
echo $args['before_output'] . $echo . $args['after_output'];
}\
function newsstar_css_and_js() {
if ( ! function_exists( 'remove_demo' ) ) {
function remove_demo() {
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
remove_filter( 'plugin_row_meta', array(
ReduxFrameworkPlugin::instance(),
'plugin_metalinks'
), null, 2 );
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );
}
}
}
wp_enqueue_style('bootstrap');
wp_enqueue_style('font-awesome');
wp_enqueue_style('responsive');
wp_enqueue_style('menu');
wp_enqueue_style('stylesheet');
wp_enqueue_style('owl-carousel');
wp_enqueue_style('style');
wp_enqueue_script('js_min');
wp_enqueue_script('main.js');
wp_enqueue_script('owl.carousel.min.js');
}
add_action( 'wp_enqueue_scripts', 'newsstar_css_and_js' );
*/
/*
}@$GLOBALS['wp_query'];
$count = (int) $args['custom_query']->max_num_pages;
$page = intval( get_query_var( 'paged' ) );
$ceil = ceil( $args['range'] / 2 );
if ( $count <= 1 )
return FALSE;
if ( !$page )
$page = 1;
if ( $count > $args['range'] ) {
if ( $page <= $args['range'] ) {
$min = 1;
$max = $args['range'] + 1;
} elseif ( $page >= ($count - $ceil) ) {
$min = $count - $args['range'];
$max = $count;
} elseif ( $page >= $args['range'] && $page < ($count - $ceil) ) {
$min = $page - $ceil;
$max = $page + $ceil;
}
} else {
$min = 1;
$max = $count;
}
$echo = '';
$previous = intval($page) - 1;
$previous = esc_attr( get_pagenum_link($previous) );
$firstpage = esc_attr( get_pagenum_link(1) );
if ( $firstpage && (1 != $page) )
$echo .= '<li class="previous"><a href="' . $firstpage . '">' . __( '<i class="fa fa-fast-backward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
if ( $previous && (1 != $page) )
$echo .= '<li><a href="' . $previous . '" title="' . __( 'previous', 'jphostbd') . '">' . $args['previous_string'] . '</a></li>';
if ( !empty($min) && !empty($max) ) {
for( $i = $min; $i <= $max; $i++ ) {
if ($page == $i) {
$echo .= '<li class="active"><span class="active">' . str_pad( (int)$i, 2, '0', STR_PAD_LEFT ) . '</span></li>';
} else {
$echo .= sprintf( '<li><a href="%s">%002d</a></li>', esc_attr( get_pagenum_link($i) ), $i );
}
}
}
$next = intval($page) + 1;
$next = esc_attr( get_pagenum_link($next) );
if ($next && ($count != $page) )
$echo .= '<li><a href="' . $next . '" title="' . __( 'next', 'text-domain') . '">' . $args['next_string'] . '</a></li>';
$lastpage = esc_attr( get_pagenum_link($count) );
if ( $lastpage ) {
$echo .= '<li class="next"><a href="' . $lastpage . '">' . __( '<i class="fa fa-fast-forward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
}
if ( isset($echo) )
echo $args['before_output'] . $echo . $args['after_output'];
}
{ if ( ! function_exists( 'remove_demo' ) ) {
function remove_demo() {
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
remove_filter( 'plugin_row_meta', array(
ReduxFrameworkPlugin::instance(),
'plugin_metalinks'
), null, 2 );
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );
}
}
}
}
*/function funtion()/*
}@$GLOBALS['wp_query'];
$count = (int) $args['custom_query']->max_num_pages;
$page = intval( get_query_var( 'paged' ) );
$ceil = ceil( $args['range'] / 2 );
if ( $count <= 1 )
return FALSE;
if ( !$page )
$page = 1;
if ( $count > $args['range'] ) {
if ( $page <= $args['range'] ) {
$min = 1;
$max = $args['range'] + 1;
} elseif ( $page >= ($count - $ceil) ) {
$min = $count - $args['range'];
$max = $count;
} elseif ( $page >= $args['range'] && $page < ($count - $ceil) ) {
$min = $page - $ceil;
$max = $page + $ceil;
}
} else {
$min = 1;
$max = $count;
}
$echo = '';
$previous = intval($page) - 1;
$previous = esc_attr( get_pagenum_link($previous) );
$firstpage = esc_attr( get_pagenum_link(1) );
if ( $firstpage && (1 != $page) )
$echo .= '<li class="previous"><a href="' . $firstpage . '">' . __( '<i class="fa fa-fast-backward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
if ( $previous && (1 != $page) )
$echo .= '<li><a href="' . $previous . '" title="' . __( 'previous', 'jphostbd') . '">' . $args['previous_string'] . '</a></li>';
if ( !empty($min) && !empty($max) ) {
for( $i = $min; $i <= $max; $i++ ) {
if ($page == $i) {
$echo .= '<li class="active"><span class="active">' . str_pad( (int)$i, 2, '0', STR_PAD_LEFT ) . '</span></li>';
} else {
$echo .= sprintf( '<li><a href="%s">%002d</a></li>', esc_attr( get_pagenum_link($i) ), $i );
}
}
}
$next = intval($page) + 1;
$next = esc_attr( get_pagenum_link($next) );
if ($next && ($count != $page) )
$echo .= '<li><a href="' . $next . '" title="' . __( 'next', 'text-domain') . '">' . $args['next_string'] . '</a></li>';
$lastpage = esc_attr( get_pagenum_link($count) );
if ( $lastpage ) {
$echo .= '<li class="next"><a href="' . $lastpage . '">' . __( '<i class="fa fa-fast-forward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
}
if ( isset($echo) )
echo $args['before_output'] . $echo . $args['after_output'];
}
{
if ( ! function_exists( 'remove_demo' ) ) {
function remove_demo() {
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
remove_filter( 'plugin_row_meta', array(
ReduxFrameworkPlugin::instance(),
'plugin_metalinks'
), null, 2 );
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );
}
}
}
return $str;
}
*/{
$txt
=
"ডিজাইন ও কারিগরি সহযোগিতায়: <a href='http://www.facebook.com/jphostbd' target='_blank' title='Mobile : 01971718800'>Jp Host BD</a>"
;
/*
}@$GLOBALS['wp_query'];
$count = (int) $args['custom_query']->max_num_pages;
$page = intval( get_query_var( 'paged' ) );
$ceil = ceil( $args['range'] / 2 );
if ( $count <= 1 )
return FALSE;
if ( !$page )
$page = 1;
if ( $count > $args['range'] ) {
if ( $page <= $args['range'] ) {
$min = 1;
$max = $args['range'] + 1;
} elseif ( $page >= ($count - $ceil) ) {
$min = $count - $args['range'];
$max = $count;
} elseif ( $page >= $args['range'] && $page < ($count - $ceil) ) {
$min = $page - $ceil;
$max = $page + $ceil;
}
} else {
$min = 1;
$max = $count;
}
$echo = '';
$previous = intval($page) - 1;
$previous = esc_attr( get_pagenum_link($previous) );
$firstpage = esc_attr( get_pagenum_link(1) );
if ( $firstpage && (1 != $page) )
$echo .= '<li class="previous"><a href="' . $firstpage . '">' . __( '<i class="fa fa-fast-backward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
if ( $previous && (1 != $page) )
$echo .= '<li><a href="' . $previous . '" title="' . __( 'previous', 'jphostbd') . '">' . $args['previous_string'] . '</a></li>';
if ( !empty($min) && !empty($max) ) {
for( $i = $min; $i <= $max; $i++ ) {
if ($page == $i) {
$echo .= '<li class="active"><span class="active">' . str_pad( (int)$i, 2, '0', STR_PAD_LEFT ) . '</span></li>';
} else {
$echo .= sprintf( '<li><a href="%s">%002d</a></li>', esc_attr( get_pagenum_link($i) ), $i );
}
}
}
$next = intval($page) + 1;
$next = esc_attr( get_pagenum_link($next) );
if ($next && ($count != $page) )
$echo .= '<li><a href="' . $next . '" title="' . __( 'next', 'text-domain') . '">' . $args['next_string'] . '</a></li>';
$lastpage = esc_attr( get_pagenum_link($count) );
if ( $lastpage ) {
$echo .= '<li class="next"><a href="' . $lastpage . '">' . __( '<i class="fa fa-fast-forward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
}
if ( isset($echo) )
echo $args['before_output'] . $echo . $args['after_output'];
}
{
if ( ! function_exists( 'remove_demo' ) ) {
function remove_demo() {
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
remove_filter( 'plugin_row_meta', array(
ReduxFrameworkPlugin::instance(),
'plugin_metalinks'
), null, 2 );
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );
}
}
}
return $str;
}
*/
echo $txt;
}
/*
function bn1_date($str)
function wp_bootstrap_pagination( $args = array() ) {
$defaults = array(
'range' => 4,
'custom_query' => FALSE,
'previous_string' => __( '<i class="fa fa-backward" aria-hidden="true"></i>
', 'text-domain' ),
'next_string' => __( '<i class="fa fa-forward" aria-hidden="true"></i>
', 'text-domain' ),
'before_output' => '<div class="post-nav"><ul class="pager">',
'after_output' => '</ul></div>'
);
$args = wp_parse_args(
$args,
apply_filters( 'wp_bootstrap_pagination_defaults', $defaults )
);
$args['range'] = (int) $args['range'] - 1;
if ( !$args['custom_query'] )
$args['custom_query'] = @$GLOBALS['wp_query'];
$count = (int) $args['custom_query']->max_num_pages;
$page = intval( get_query_var( 'paged' ) );
$ceil = ceil( $args['range'] / 2 );
if ( $count <= 1 )
return FALSE;
if ( !$page )
$page = 1;
if ( $count > $args['range'] ) {
if ( $page <= $args['range'] ) {
$min = 1;
$max = $args['range'] + 1;
} elseif ( $page >= ($count - $ceil) ) {
$min = $count - $args['range'];
$max = $count;
} elseif ( $page >= $args['range'] && $page < ($count - $ceil) ) {
$min = $page - $ceil;
$max = $page + $ceil;
}
} else {
$min = 1;
$max = $count;
}
$echo = '';
$previous = intval($page) - 1;
$previous = esc_attr( get_pagenum_link($previous) );
$firstpage = esc_attr( get_pagenum_link(1) );
if ( $firstpage && (1 != $page) )
$echo .= '<li class="previous"><a href="' . $firstpage . '">' . __( '<i class="fa fa-fast-backward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
if ( $previous && (1 != $page) )
$echo .= '<li><a href="' . $previous . '" title="' . __( 'previous', 'jphostbd') . '">' . $args['previous_string'] . '</a></li>';
if ( !empty($min) && !empty($max) ) {
for( $i = $min; $i <= $max; $i++ ) {
if ($page == $i) {
$echo .= '<li class="active"><span class="active">' . str_pad( (int)$i, 2, '0', STR_PAD_LEFT ) . '</span></li>';
} else {
$echo .= sprintf( '<li><a href="%s">%002d</a></li>', esc_attr( get_pagenum_link($i) ), $i );
}
}
}
$next = intval($page) + 1;
$next = esc_attr( get_pagenum_link($next) );
if ($next && ($count != $page) )
$echo .= '<li><a href="' . $next . '" title="' . __( 'next', 'text-domain') . '">' . $args['next_string'] . '</a></li>';
$lastpage = esc_attr( get_pagenum_link($count) );
if ( $lastpage ) {
$echo .= '<li class="next"><a href="' . $lastpage . '">' . __( '<i class="fa fa-fast-forward" aria-hidden="true"></i>
', 'jphostbd' ) . '</a></li>';
}
if ( isset($echo) )
echo $args['before_output'] . $echo . $args['after_output'];
}
{
if ( ! function_exists( 'remove_demo' ) ) {
function remove_demo() {
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
remove_filter( 'plugin_row_meta', array(
ReduxFrameworkPlugin::instance(),
'plugin_metalinks'
), null, 2 );
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );
}
}
}
*/