✏️ 正在编辑: tab_off_canvas_conditions.php
路径:
/home/lssfapb/www/wp-content/themes/Avada/includes/metaboxes/tabs/tab_off_canvas_conditions.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Off Canvas triggers Metabox options. * * @author ThemeFusion * @copyright (c) Copyright by ThemeFusion * @link https://theme-fusion.com * @package Avada * @subpackage off-canvas */ /** * Off Canvas conditions settings * * @param array $sections An array of our sections. * @return array */ function avada_page_options_tab_off_canvas_conditions( $sections ) { $sections['off_canvas_conditions'] = [ 'label' => esc_html__( 'Conditions', 'Avada' ), 'alt_icon' => 'fusiona-conditions', 'id' => 'off_canvas_conditions', 'fields' => [ 'conditions_enabled' => [ 'type' => 'radio-buttonset', 'label' => esc_html__( 'Enable Conditions', 'Avada' ), 'description' => __( 'Set conditions for displaying Off Canvas. <strong>NOTE:</strong> Off Canvas won\'t be displayed at all, when this is turned off.', 'Avada' ), 'id' => 'conditions_enabled', 'default' => 'no', 'transport' => 'postMessage', 'choices' => [ 'yes' => esc_html__( 'Yes', 'Avada' ), 'no' => esc_html__( 'No', 'Avada' ), ], ], 'layout_conditions' => [ 'type' => 'layout_conditions', 'label' => esc_html__( 'Conditions', 'Avada' ), 'description' => esc_html__( 'Load Off Canvas on these pages.', 'Avada' ), 'id' => 'layout_conditions', 'transport' => 'postMessage', 'dependency' => [ [ 'field' => 'conditions_enabled', 'value' => 'yes', 'comparison' => '==', ], ], ], ], ]; return apply_filters( 'avada_off_canvas_conditions_sections', $sections ); }
💾 保存文件
← 返回文件管理器