65 lines
1.7 KiB
PHP
65 lines
1.7 KiB
PHP
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
|
|
|
$misc = us_config( 'elements_misc' );
|
|
$design_options = us_config( 'elements_design_options' );
|
|
|
|
return array(
|
|
'title' => __( 'Breadcrumbs', 'us' ),
|
|
'description' => __( 'Shows current page location', 'us' ),
|
|
'icon' => 'fas fa-angle-double-right',
|
|
'params' => array_merge( array(
|
|
|
|
'home' => array(
|
|
'title' => __( 'Homepage Label', 'us' ),
|
|
'description' => __( 'Leave blank to hide the homepage link', 'us' ),
|
|
'type' => 'text',
|
|
'std' => us_translate( 'Home' ),
|
|
),
|
|
'show_current' => array(
|
|
'type' => 'switch',
|
|
'switch_text' => __( 'Show current page', 'us' ),
|
|
'std' => FALSE,
|
|
),
|
|
'font_size' => array(
|
|
'title' => __( 'Font Size', 'us' ),
|
|
'description' => $misc['desc_font_size'],
|
|
'type' => 'text',
|
|
'std' => '',
|
|
'cols' => 2,
|
|
'admin_label' => TRUE,
|
|
),
|
|
'align' => array(
|
|
'title' => us_translate( 'Alignment' ),
|
|
'type' => 'select',
|
|
'options' => array(
|
|
'left' => us_translate( 'Left' ),
|
|
'center' => us_translate( 'Center' ),
|
|
'right' => us_translate( 'Right' ),
|
|
),
|
|
'std' => 'left',
|
|
'cols' => 2,
|
|
'admin_label' => TRUE,
|
|
),
|
|
'separator_type' => array(
|
|
'title' => __( 'Separator between items', 'us' ),
|
|
'type' => 'select',
|
|
'options' => array(
|
|
'icon' => __( 'Icon', 'us' ),
|
|
'custom' => __( 'Custom symbol', 'us' ),
|
|
),
|
|
'std' => 'icon',
|
|
),
|
|
'separator_icon' => array(
|
|
'type' => 'icon',
|
|
'std' => 'far|angle-right',
|
|
'show_if' => array( 'separator_type', '=', 'icon' ),
|
|
),
|
|
'separator_symbol' => array(
|
|
'type' => 'text',
|
|
'std' => '/',
|
|
'show_if' => array( 'separator_type', '=', 'custom' ),
|
|
),
|
|
|
|
), $design_options ),
|
|
);
|