X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/themes/rife-free/advance
home
/
oakwood
/
public_html
/
wp-content
/
themes
/
rife-free
/
advance
/
ðŸ“
..
ðŸ“
admin
📄
class-apollo13-framework.php
(44.31 KB)
📄
compatibility.php
(3.19 KB)
📄
cpt-admin.php
(3.42 KB)
📄
customizer.php
(18.69 KB)
📄
elementor-pro.php
(418 B)
📄
head-scripts-styles.php
(23.32 KB)
ðŸ“
inc
📄
index.html
(34 B)
📄
meta.php
(73.64 KB)
ðŸ“
plugins
📄
rife.php
(5.87 KB)
📄
rife_uni.php
(885 B)
📄
sidebars.php
(3.93 KB)
📄
theme-options.php
(202.69 KB)
📄
user-css.php
(89.54 KB)
ðŸ“
utilities
📄
vc-extend.php
(3.77 KB)
ðŸ“
walkers
Editing: sidebars.php
<?php if ( ! function_exists( 'apollo13framework_add_sidebars' ) ) { /** * Functions that register all theme sidebars * */ function apollo13framework_add_sidebars() { //defined sidebars $widget_areas = array( // Shown on blog 'blog-widget-area' => array( 'name' => esc_html__( 'Blog sidebar', 'rife-free' ), 'description' => esc_html__( 'Widgets from this sidebar will appear on blog, search results, archive page, and 404 error page.', 'rife-free' ), ), // Shown in post 'post-widget-area' => array( 'name' => esc_html__( 'Post sidebar', 'rife-free' ), 'description' => esc_html__( 'Widgets from this sidebar will appear in single posts.', 'rife-free' ), ), // Shown in pages 'page-widget-area' => array( 'name' => esc_html__( 'Page sidebar', 'rife-free' ), 'description' => esc_html__( 'Widgets from this sidebar will appear in static pages.', 'rife-free' ), ), // Shown in shop pages 'shop-widget-area' => array( 'name' => esc_html__( 'Shop sidebar', 'rife-free' ), 'description' => esc_html__( 'Widgets from this sidebar will appear only in shop pages. WooCommerce have to be installed and activated.', 'rife-free' ), ), // Shown everywhere 'side-widget-area' => array( 'name' => esc_html__( 'Hidden sidebar', 'rife-free' ), 'description' => esc_html__( 'It is always available sidebar, that is activated by clicking on the icon in the header. Good for some special menus or other tips/information for the user.', 'rife-free' ), ), // Shown everywhere 'basket-widget-area' => array( 'name' => esc_html__( 'Basket sidebar', 'rife-free' ), 'description' => esc_html__( 'It is always available sidebar (but only active if WooCommerce is installed and activated), that is activated by clicking on the icon in the header. You should put a shopping cart widget there, as well as, for example, several special widgets.', 'rife-free' ), ), // Shown in header 'header-widget-area' => array( 'name' => esc_html__( 'Header(vertical) default widget area', 'rife-free' ), 'description' => esc_html__( 'Widgets from this area will appear in vertical header only.', 'rife-free' ), ), // Shown in footer 'footer-widget-area' => array( 'name' => esc_html__( 'Footer widget area(Header horizontal)', 'rife-free' ), 'description' => esc_html__( 'Widgets from this area will appear in footer, only if horizontal header is used.', 'rife-free' ), ), ); //custom sidebars global $apollo13framework_a13; //in some rare cases this is null if(is_null($apollo13framework_a13)){ $custom_sidebars = false; } else{ $custom_sidebars = $apollo13framework_a13->get_option( 'custom_sidebars' ); } if($custom_sidebars === false ){ $custom_sidebars = array(); } else{ $custom_sidebars = is_array($custom_sidebars)? $custom_sidebars : array($custom_sidebars); } $sidebars_count = count( $custom_sidebars ); if ( is_array( $custom_sidebars ) && $sidebars_count > 0 ) { foreach ( $custom_sidebars as $sidebar ) { $widget_areas[ $sidebar['id'] ] = array( 'name' => $sidebar['name'], 'description' => esc_html__( 'Widgets from this sidebar will appear in static pages.', 'rife-free' ), ); } } /** * Register widgets areas */ foreach ( $widget_areas as $id => $sidebar ) { register_sidebar( array( 'name' => $sidebar['name'], 'id' => $id, 'description' => $sidebar['description'], 'before_widget' => ( isset( $sidebar['before_widget'] ) ? $sidebar['before_widget'] : '<div id="%1$s" class="widget %2$s">' ), 'after_widget' => '</div>', 'before_title' => '<h3 class="title"><span>', 'after_title' => '</span></h3>', ) ); } } } add_action( 'widgets_init', 'apollo13framework_add_sidebars' );
Upload File
Create Folder