Files
nurinda.co.id---old/wp-content/themes/wpnt/framework/config/elements/post_taxonomy.php
T

92 lines
2.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
$taxonomies_options = us_get_taxonomies();
$misc = us_config( 'elements_misc' );
$typography_options = us_config( 'elements_typography_options' );
$design_options = us_config( 'elements_design_options' );
$hover_options = us_config( 'elements_hover_options' );
return array(
'title' => __( 'Post Taxonomy', 'us' ),
'category' => __( 'Post Elements', 'us' ),
'icon' => 'fas fa-tags',
'params' => array_merge( array(
'taxonomy_name' => array(
'title' => us_translate( 'Show' ),
'type' => 'select',
'options' => $taxonomies_options,
'std' => key( $taxonomies_options ),
'admin_label' => TRUE,
),
'style' => array(
'title' => __( 'Display as', 'us' ),
'type' => 'radio',
'options' => array(
'simple' => us_translate( 'Text' ),
'badge' => __( 'Button', 'us' ),
),
'std' => 'simple',
'cols' => 2,
),
'btn_style' => array(
'title' => __( 'Button Style', 'us' ),
'description' => $misc['desc_btn_styles'],
'type' => 'select',
'options' => us_array_merge(
array( 'badge' => '– ' . __( 'Badge by default', 'us' ) . ' –' ),
us_get_btn_styles()
),
'std' => 'badge',
'cols' => 2,
'show_if' => array( 'style', '=', 'badge' ),
),
'separator' => array(
'title' => __( 'Separator between items', 'us' ),
'type' => 'text',
'std' => ', ',
'cols' => 2,
'show_if' => array( 'style', '=', 'simple' ),
),
'link' => array(
'title' => us_translate( 'Link' ),
'type' => 'radio',
'options' => array(
'post' => __( 'To a Post', 'us' ),
'archive' => __( 'To a Post Archive', 'us' ),
'custom' => __( 'Custom', 'us' ),
'none' => us_translate( 'None' ),
),
'std' => 'archive',
),
'custom_link' => array(
'placeholder' => us_translate( 'Enter the URL' ),
'description' => $misc['desc_grid_custom_link'],
'type' => 'link',
'std' => array(),
'shortcode_std' => '',
'grid_classes' => 'desc_3',
'show_if' => array( 'link', '=', 'custom' ),
),
'color_link' => array(
'title' => __( 'Link Color', 'us' ),
'type' => 'switch',
'switch_text' => __( 'Inherit from text color', 'us' ),
'std' => TRUE,
'show_if' => array( 'link', '!=', 'none' ),
),
'icon' => array(
'title' => __( 'Icon', 'us' ),
'type' => 'icon',
'std' => '',
),
'text_before' => array(
'title' => __( 'Text before value', 'us' ),
'type' => 'text',
'std' => '',
),
), $typography_options, $design_options, $hover_options ),
);