编辑:slideshows.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.' ); } /** * Slideshows settings * * @param array $sections An array of our sections. * @return array */ function avada_options_section_slideshows( $sections ) { $sections['slideshows'] = [ 'label' => esc_html__( 'Slideshows', 'Avada' ), 'id' => 'heading_slideshows', 'priority' => 19, 'icon' => 'el-icon-picture', 'alt_icon' => 'fusiona-uniF61C', 'fields' => [ 'posts_slideshow_number' => [ 'label' => esc_html__( 'Posts Slideshow Images', 'Avada' ), 'description' => esc_html__( 'Controls the number of featured image boxes for blog/portfolio posts and pages.', 'Avada' ), 'id' => 'posts_slideshow_number', 'default' => '5', 'type' => 'slider', 'choices' => [ 'min' => '1', 'max' => '30', 'step' => '1', ], ], 'slideshow_autoplay' => [ 'label' => esc_html__( 'Autoplay', 'Avada' ), 'description' => esc_html__( 'Turn on to autoplay the slideshows.', 'Avada' ), 'id' => 'slideshow_autoplay', 'default' => '1', 'type' => 'switch', // No need to refresh the page. 'transport' => 'postMessage', ], 'slideshow_smooth_height' => [ 'label' => esc_html__( 'Smooth Height', 'Avada' ), 'description' => esc_html__( 'Turn on to enable smooth height on slideshows when using images with different heights. Please note, smooth height is disabled on blog grid layout.', 'Avada' ), 'id' => 'slideshow_smooth_height', 'default' => '0', 'type' => 'switch', ], 'slideshow_speed' => [ 'label' => esc_html__( 'Slideshow Speed', 'Avada' ), 'description' => esc_html__( 'Controls the speed of slideshows for the slider element and sliders within posts. ex: 1000 = 1 second.', 'Avada' ), 'id' => 'slideshow_speed', 'default' => '7000', 'type' => 'slider', 'choices' => [ 'min' => '100', 'max' => '20000', 'step' => '50', ], 'output' => [ // Change the fusionFlexSliderVars.slideshow_speed var. [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'fusionFlexSliderVars', 'id' => 'slideshow_speed', 'trigger' => [ 'fusionDestroyPostFlexSlider', 'fusionInitPostFlexSlider' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'pagination_video_slide' => [ 'label' => esc_html__( 'Pagination Circles Below Video Slides', 'Avada' ), 'description' => esc_html__( 'Turn on to show pagination circles below a video slide for the slider element. Turn off to hide them on video slides.', 'Avada' ), 'id' => 'pagination_video_slide', 'default' => '0', 'type' => 'switch', 'output' => [ // Change the fusionFlexSliderVars.pagination_video_slide var. [ 'element' => 'helperElement', 'property' => 'bottom', 'js_callback' => [ 'fusionGlobalScriptSet', [ 'globalVar' => 'fusionFlexSliderVars', 'id' => 'pagination_video_slide', 'trigger' => [ 'fusionDestroyPostFlexSlider', 'fusionInitPostFlexSlider' ], ], ], 'sanitize_callback' => '__return_empty_string', ], ], ], 'slider_nav_box_dimensions' => [ 'label' => esc_html__( 'Navigation Box Dimensions', 'Avada' ), 'description' => esc_html__( 'Controls the width and height of the navigation box.', 'Avada' ), 'id' => 'slider_nav_box_dimensions', 'units' => false, 'default' => [ 'width' => '30px', 'height' => '30px', ], 'type' => 'dimensions', 'css_vars' => [ [ 'name' => '--slider_nav_box_dimensions-width', 'choice' => 'width', ], [ 'name' => '--slider_nav_box_dimensions-height', 'choice' => 'height', ], ], ], 'slider_arrow_size' => [ 'label' => esc_html__( 'Navigation Arrow Size', 'Avada' ), 'description' => esc_html__( 'Controls the font size of the navigation arrow.', 'Avada' ), 'id' => 'slider_arrow_size', 'default' => '14px', 'type' => 'dimension', 'css_vars' => [ [ 'name' => '--slider_arrow_size', ], ], ], ], ]; return $sections; }
保存文件
位置:
home
/
londongranite
/
public_html
/
wp-content
/
themes
/
Avada
/
includes
/
options
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
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
编辑
下载
权限
删除
重命名
events_calendar.php
-rw-r--r--
19.49 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
layout.php
-rw-r--r--
13.27 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
page_title_bar.php
-rw-r--r--
19.41 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
search.php
-rw-r--r--
21.51 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
slideshows.php
-rw-r--r--
4.74 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名
typography.php
-rw-r--r--
50.89 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名