%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/gachan/www/wp-content/themes/jekas/inc/redux/options/
Upload File :
Create Path :
Current File : /home/gachan/www/wp-content/themes/jekas/inc/redux/options/option-background.php

<?php
    $opt = array(
        'title'  => esc_html__( 'Background', 'jekas' ),
        'desc'   => esc_html__('Optional Backgrounds-Color Configuration','jekas'),
        'icon'   => 'el-icon-graph',
        'fields' => array(),
    );
    $jekas_options = array(
        'h1' => 'H1',
        'h2' => 'H2',
        'h3' => 'H3',
        'h4' => 'H4',
        'h5' => 'H5',
        'h6' => 'H6',
        'small' => esc_html__( 'Small', 'jekas' ),
        'span' => esc_html__( 'Span', 'jekas' ),
        'a' => 'A',
        'p' => 'P',
    );
    foreach($jekas_options as $jekas_k => $jekas_i){
        $opt['fields'][] = array(
                    'id'     => 'back_'.$jekas_k,
                    'type'   => 'info',
                    'style'  => 'info',
                    'notice' => true,
                    'title'  => $jekas_i.__(' Style', 'jekas' ),
                    'desc'   => ''
                );
        $opt['fields'][] = array(
                    'id'       => 'back_'.$jekas_k.'_ch',
                    'type'     => 'switch',
                    'title'    => esc_html__( 'Active option', 'jekas' ),
                    'subtitle' => esc_html__( 'Background option active', 'jekas' ),
                    'default'  => 0,
                    'on'       => 'On',
                    'off'      => 'Off',
                );
        $opt['fields'][] = array(
                    'id'       => 'back_'.$jekas_k.'_c',
                    'type'     => 'color_rgba',
                    'title'    => esc_html__( 'Background Color', 'jekas' ),
                    'subtitle' => '',
                    'default'  => array( 
                        'color' => '#7e33dd', 
                        'alpha' => '.8' 
                    ),
                    'output'   => '',
                    'mode'     => 'background',
                    'validate' => 'colorrgba',
                    'required' => array( 'back_'.$jekas_k.'_ch', '=', 1 ),
                );   
    }
    $this->sections[] = $opt;
                

Zerion Mini Shell 1.0