编辑:responsive.php
<?php /** * Avada Options. * * @author ThemeFusion * @copyright (c) Copyright by ThemeFusion * @link https://avada.com * @package Avada * @subpackage Core * @since 4.0.0 */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } /** * Mobile settings * * @param array $sections An array of our sections. * @return array */ function avada_options_section_responsive( $sections ) { $option_name = Fusion_Settings::get_option_name(); $settings = get_option( $option_name, [] ); $sections['mobile'] = [ 'label' => esc_html__( 'Responsive', 'Avada' ), 'id' => 'mobile', 'priority' => 2, 'icon' => 'el-icon-resize-horizontal', 'alt_icon' => 'fusiona-mobile', 'fields' => [ 'responsive' => [ 'label' => esc_html__( 'Responsive Design', 'Avada' ), 'description' => esc_html__( 'Turn on to use the responsive design features. If set to off, the fixed layout is used.', 'Avada' ), 'id' => 'responsive', 'default' => '1', 'type' => 'radio-buttonset', 'choices' => [ '1' => esc_html__( 'On', 'Avada' ), '0' => esc_html__( 'Off', 'Avada' ), ], ], 'grid_main_break_point' => [ 'label' => esc_html__( 'Grid Responsive Breakpoint', 'Avada' ), 'description' => esc_html__( 'Controls when grid layouts (blog/portfolio) start to break into smaller columns. Further breakpoints are auto calculated.', 'Avada' ), 'id' => 'grid_main_break_point', 'default' => '1000', 'type' => 'slider', 'choices' => [ 'min' => '360', 'max' => '2000', 'step' => '1', 'edit' => 'yes', ], 'required' => [ [ 'setting' => 'responsive', 'operator' => '==', 'value' => '1', ], ], 'css_vars' => [ [ 'name' => '--grid_main_break_point', ], ], 'output' => [ // runs fusionRecalcAllMediaQueries(). [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'dummy', 'id' => 'dummy', 'trigger' => [ 'fusionRecalcAllMediaQueries' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'side_header_break_point' => [ 'label' => esc_html__( 'Header Responsive Breakpoint', 'Avada' ), 'description' => esc_html__( 'Controls when the desktop header changes to the mobile header.', 'Avada' ), 'id' => 'side_header_break_point', 'default' => '800', 'type' => 'slider', 'choices' => [ 'min' => '0', 'max' => '2000', 'step' => '1', 'edit' => 'yes', ], 'css_vars' => [ [ 'name' => '--side_header_break_point', ], ], 'required' => [ [ 'setting' => 'responsive', 'operator' => '==', 'value' => '1', ], ], 'output' => [ // runs fusionRecalcAllMediaQueries(). [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'dummy', 'id' => 'dummy', 'trigger' => [ 'fusionRecalcAllMediaQueries' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'content_break_point' => [ 'label' => esc_html__( 'Site Content Responsive Breakpoint', 'Avada' ), 'description' => esc_html__( 'Controls when the site content area changes to the mobile layout. This includes all content below the header including the footer.', 'Avada' ), 'id' => 'content_break_point', 'default' => '800', 'type' => 'slider', 'choices' => [ 'min' => '0', 'max' => '2000', 'step' => '1', 'edit' => 'yes', ], 'required' => [ [ 'setting' => 'responsive', 'operator' => '==', 'value' => '1', ], ], 'css_vars' => [ [ 'name' => '--content_break_point', ], ], 'output' => [ // runs fusionRecalcAllMediaQueries(). [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'dummy', 'id' => 'dummy', 'trigger' => [ 'fusionRecalcAllMediaQueries' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'sidebar_break_point' => [ 'label' => esc_html__( 'Sidebar Responsive Breakpoint', 'Avada' ), 'description' => esc_html__( 'Controls when sidebars change to the mobile layout.', 'Avada' ), 'id' => 'sidebar_break_point', 'default' => '800', 'type' => 'slider', 'choices' => [ 'min' => '0', 'max' => '2000', 'step' => '1', 'edit' => 'yes', ], 'required' => [ [ 'setting' => 'responsive', 'operator' => '==', 'value' => '1', ], ], 'output' => [ // runs fusionRecalcAllMediaQueries(). [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'dummy', 'id' => 'dummy', 'trigger' => [ 'fusionRecalcAllMediaQueries' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'mobile_zoom' => [ 'label' => esc_html__( 'Mobile Device Zoom', 'Avada' ), 'description' => esc_html__( 'Turn on to enable pinch to zoom on mobile devices.', 'Avada' ), 'id' => 'mobile_zoom', 'default' => '1', 'type' => 'switch', 'choices' => [ 'on' => esc_html__( 'On', 'Avada' ), 'off' => esc_html__( 'Off', 'Avada' ), ], 'required' => [ [ 'setting' => 'responsive', 'operator' => '==', 'value' => '1', ], ], // No need to refresh the page. 'transport' => 'postMessage', ], 'element_responsive_breakpoints_info_title' => [ 'label' => esc_html__( 'Element Responsive Breakpoints', 'Avada' ), 'description' => '', 'id' => 'element_responsive_breakpoints_info_title', 'icon' => true, 'type' => 'info', ], 'visibility_small' => [ 'label' => esc_html__( 'Small Screen', 'fusion-builder' ), 'description' => esc_html__( 'Controls when the small screen options and visibility should take effect.', 'fusion-builder' ), 'id' => 'visibility_small', 'default' => '640', 'type' => 'slider', 'choices' => [ 'min' => '0', 'step' => '1', 'max' => '2000', ], 'option_name' => $option_name, 'output' => [ // Runs fusionRecalcVisibilityMediaQueries(). [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'dummy', 'id' => 'dummy', 'trigger' => [ 'fusionRecalcVisibilityMediaQueries' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'visibility_medium' => [ 'label' => esc_html__( 'Medium Screen', 'fusion-builder' ), 'description' => esc_html__( 'Controls when the medium screen options and visibility should take effect.', 'fusion-builder' ), 'id' => 'visibility_medium', 'default' => '1024', 'type' => 'slider', 'choices' => [ 'min' => '0', 'step' => '1', 'max' => '2000', ], 'option_name' => $option_name, 'output' => [ // Runs fusionRecalcVisibilityMediaQueries(). [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'dummy', 'id' => 'dummy', 'trigger' => [ 'fusionRecalcVisibilityMediaQueries' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'visibility_large' => [ 'label' => esc_html__( 'Large Screen', 'fusion-builder' ), 'description' => esc_html__( 'Any screen larger than that which is defined as the medium screen will be counted as a large screen.', 'fusion-builder' ), 'id' => 'visibility_large', 'full_width' => false, 'type' => 'raw', 'content' => '<div id="fusion-visibility-large">' . ( ( isset( $settings['visibility_medium'] ) && ! empty( $settings['visibility_medium'] ) ) ? '> <span>' . $settings['visibility_medium'] . '</span>' : '> <span>1200</span>' ) . '</div>', 'option_name' => $option_name, ], 'responsive_typography_info_title' => [ 'label' => esc_html__( 'Responsive Typography', 'Avada' ), 'description' => '', 'id' => 'responsive_typography_info_title', 'icon' => true, 'type' => 'info', ], 'typography_sensitivity' => [ 'label' => esc_html__( 'Responsive Typography Sensitivity', 'Avada' ), 'description' => esc_html__( 'Set to 0 to disable responsive typography. Increase the value for a greater effect.', 'Avada' ), 'id' => 'typography_sensitivity', 'default' => '0', 'type' => 'slider', 'required' => [ [ 'setting' => 'responsive', 'operator' => '==', 'value' => '1', ], ], 'choices' => [ 'min' => '0', 'max' => '1', 'step' => '.01', ], 'output' => [ // This is for the fusionTypographyVars.typography_sensitivity var. [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'fusionTypographyVars', 'id' => 'typography_sensitivity', 'trigger' => [ 'fusionInitTypography' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], 'css_vars' => [ [ 'name' => '--typography_sensitivity', ], ], ], 'typography_factor' => [ 'label' => esc_html__( 'Minimum Font Size Factor', 'Avada' ), 'description' => esc_html__( 'The minimum font-size of elements affected by responsive typography is body font-size multiplied by this factor.', 'Avada' ), 'id' => 'typography_factor', 'default' => '1.5', 'type' => 'slider', 'required' => [ [ 'setting' => 'responsive', 'operator' => '==', 'value' => '1', ], ], 'choices' => [ 'min' => '0', 'max' => '4', 'step' => '.01', ], 'output' => [ // This is for the fusionTypographyVars.typography_factor var. [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'fusionTypographyVars', 'id' => 'typography_factor', 'trigger' => [ 'fusionInitTypography' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], 'css_vars' => [ [ 'name' => '--typography_factor', ], ], ], ], ]; return $sections; }
保存文件
位置:
home
/
londongranite
/
public_html
/
wp-content
/
themes
/
Avada
/
includes
/
options
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
advanced.php
-rw-r--r--
29.19 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
auth_pages.php
-rw-r--r--
4.96 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
background.php
-rw-r--r--
12.64 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
bbpress.php
-rw-r--r--
2.73 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
blog.php
-rw-r--r--
39.8 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
breadcrumbs.php
-rw-r--r--
10.13 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
colors.php
-rw-r--r--
2.94 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
contact.php
-rw-r--r--
26.04 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
elastic_slider.php
-rw-r--r--
9.46 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
events_calendar.php
-rw-r--r--
19.49 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
extra.php
-rw-r--r--
51.98 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
footer.php
-rw-r--r--
37.55 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
header.php
-rw-r--r--
58.92 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
layout.php
-rw-r--r--
13.27 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
lightbox.php
-rw-r--r--
18.17 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
logo.php
-rw-r--r--
20.33 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
maintenance.php
-rw-r--r--
5.79 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
menu.php
-rw-r--r--
103.65 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
page_title_bar.php
-rw-r--r--
19.41 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
performance.php
-rw-r--r--
38.39 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
portfolio.php
-rw-r--r--
28.57 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
privacy.php
-rw-r--r--
56.96 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
responsive.php
-rw-r--r--
11.64 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
search.php
-rw-r--r--
21.51 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
sidebars.php
-rw-r--r--
29.61 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
slideshows.php
-rw-r--r--
4.74 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
sliding_bar.php
-rw-r--r--
22.12 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
social_media.php
-rw-r--r--
39.34 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
typography.php
-rw-r--r--
50.89 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
woocommerce.php
-rw-r--r--
53.53 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名