??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/monicslandscape.co.uk/wp-content/themes/astra/inc/widgets.php
⬅ Kembali
<?php
/**
* Widget and sidebars related functions
*
* @package Astra
* @link https://wpastra.com/
* @since Astra 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* WordPress filter - Widget Tags
*/
if ( ! function_exists( 'astra_widget_tag_cloud_args' ) ) {
/**
* WordPress filter - Widget Tags
*
* @param array $args Tag arguments.
* @return array Modified tag arguments.
*/
function astra_widget_tag_cloud_args( $args = array() ) {
$sidebar_link_font_size = astra_get_option( 'font-size-body' );
$sidebar_link_font_size['desktop'] = '' != $sidebar_link_font_size['desktop'] ? $sidebar_link_font_size['desktop'] : 15;
$args['smallest'] = intval( $sidebar_link_font_size['desktop'] ) - 2;
$args['largest'] = intval( $sidebar_link_font_size['desktop'] ) + 3;
$args['unit'] = 'px';
return apply_filters( 'astra_widget_tag_cloud_args', $args );
}
add_filter( 'widget_tag_cloud_args', 'astra_widget_tag_cloud_args', 90 );
}
/**
* WordPress filter - Widget Categories
*/
if ( ! function_exists( 'astra_filter_widget_tag_cloud' ) ) {
/**
* WordPress filter - Widget Categories
*
* @param array $tags_data Tags data.
* @return array Modified tags data.
*/
function astra_filter_widget_tag_cloud( $tags_data ) {
if ( is_tag() ) {
foreach ( $tags_data as $key => $tag ) {
if ( get_queried_object_id() === (int) $tags_data[ $key ]['id'] ) {
$tags_data[ $key ]['class'] = $tags_data[ $key ]['class'] . ' current-item';
}
}
}
return apply_filters( 'astra_filter_widget_tag_cloud', $tags_data );
}
add_filter( 'wp_generate_tag_cloud_data', 'astra_filter_widget_tag_cloud' );
}
/**
* Register widget area.
*/
if ( ! function_exists( 'astra_widgets_init' ) ) {
/**
* Register widget area.
*
* @see https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function astra_widgets_init() {
$default_args = array(
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
);
/**
* Register Main Sidebar
*/
register_sidebar(
apply_filters(
'astra_widgets_init',
array(
'name' => esc_html__( 'Main Sidebar', 'astra' ),
'id' => 'sidebar-1',
) + $default_args
)
);
/**
* Register Header Widgets area
*/
if ( class_exists( 'Astra_Builder_Helper' ) && false === Astra_Builder_Helper::$is_header_footer_builder_active ) {
register_sidebar(
apply_filters(
'astra_header_widgets_init',
array(
'name' => esc_html__( 'Header', 'astra' ),
'id' => 'header-widget',
) + $default_args
)
);
}
/**
* Register Footer Bar Widgets area
*/
register_sidebar(
apply_filters(
'astra_footer_1_widgets_init',
array(
'name' => esc_html__( 'Footer Bar Section 1', 'astra' ),
'id' => 'footer-widget-1',
) + $default_args
)
);
register_sidebar(
apply_filters(
'astra_footer_2_widgets_init',
array(
'name' => esc_html__( 'Footer Bar Section 2', 'astra' ),
'id' => 'footer-widget-2',
) + $default_args
)
);
/**
* Register Footer Widgets area
*/
$default_args['before_widget'] = '<div id="%1$s" class="widget %2$s">';
$default_args['after_widget'] = '</div>';
register_sidebar(
apply_filters(
'astra_advanced_footer_widget_1_args',
array(
'name' => esc_html__( 'Footer Widget Area 1', 'astra' ),
'id' => 'advanced-footer-widget-1',
) + $default_args
)
);
register_sidebar(
apply_filters(
'astra_advanced_footer_widget_2_args',
array(
'name' => esc_html__( 'Footer Widget Area 2', 'astra' ),
'id' => 'advanced-footer-widget-2',
) + $default_args
)
);
register_sidebar(
apply_filters(
'astra_advanced_footer_widget_3_args',
array(
'name' => esc_html__( 'Footer Widget Area 3', 'astra' ),
'id' => 'advanced-footer-widget-3',
) + $default_args
)
);
register_sidebar(
apply_filters(
'astra_advanced_footer_widget_4_args',
array(
'name' => esc_html__( 'Footer Widget Area 4', 'astra' ),
'id' => 'advanced-footer-widget-4',
) + $default_args
)
);
}
add_action( 'widgets_init', 'astra_widgets_init' );
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 abilities
dir
—
2026-06-09 10:06
📁 addons
dir
—
2026-06-09 10:06
📁 assets
dir
—
2026-06-09 10:06
📁 blog
dir
—
2026-06-09 10:06
📁 builder
dir
—
2026-06-09 10:06
📁 compatibility
dir
—
2026-06-09 10:06
📁 core
dir
—
2026-06-09 10:06
📁 customizer
dir
—
2026-06-09 10:06
📁 dynamic-css
dir
—
2026-06-09 10:06
📁 integrations
dir
—
2026-06-09 10:06
📁 lib
dir
—
2026-06-09 10:06
📁 metabox
dir
—
2026-06-09 10:06
📁 modules
dir
—
2026-06-09 10:06
📁 schema
dir
—
2026-06-09 10:06
📁 theme-update
dir
—
2026-06-09 10:06
🐘 admin-functions.php
php
1.6 KB
2025-02-11 15:39
🐘 class-astra-after-setup-theme.php
php
11.3 KB
2025-12-16 13:01
🐘 class-astra-dynamic-css.php
php
299.9 KB
2026-06-02 14:57
🐘 class-astra-extended-base-dynamic-css.php
php
6.4 KB
2025-02-11 15:39
🐘 class-astra-global-palette.php
php
13.4 KB
2025-09-09 13:41
🐘 class-astra-loop.php
php
7.2 KB
2025-02-11 15:39
🐘 class-astra-memory-limit-notice.php
php
12.4 KB
2026-04-16 15:17
🐘 class-astra-mobile-header.php
php
5.8 KB
2025-12-08 14:18
🐘 extras.php
php
44.6 KB
2026-02-05 15:31
🐘 google-fonts.php
php
200.2 KB
2026-05-20 14:19
🐘 index.php
php
111 B
2024-11-11 15:51
🐘 markup-extras.php
php
72.4 KB
2026-05-12 13:03
🐘 template-parts.php
php
9.5 KB
2025-04-24 09:51
🐘 template-tags.php
php
1.1 KB
2025-02-11 15:39
🐘 w-org-version.php
php
647 B
2025-07-01 14:56
🐘 widgets.php
php
4.3 KB
2025-04-08 10:18