Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Redux::setSection($opt_name, array(
- 'title' => __('Header Logo', 'durbo'),
- 'desc' => __('You can change your header logo from below', 'drubo'),
- 'subtitle' => __('Header logo options here'),
- 'subsection' => true,
- 'id' => 'header-logo',
- 'fields' => array(
- array(
- 'title' => __('Header Logo Image / Text', 'dubo'),
- 'desc' => __('You can use image or text for header logo', 'drubo'),
- 'type' => 'switch',
- 'id' => 'header-logo-image-text',
- 'default' => '1',
- 'on' => 'image',
- 'off' => 'text',
- ),
- array(
- 'title' => __('Header Logo Image Upload', 'dubo'),
- 'desc' => __('You can upload your logo image from here', 'drubo'),
- 'type' => 'media',
- 'required' => array('header-logo-image-text', 'equals', '1'),
- 'id' => 'header-logo-image',
- 'url' => true,
- 'default' => array(
- 'url' => get_template_directory_uri().'/images/logo/1.png'
- )
- ),
- array(
- 'title' => __('Header Logo Text', 'dubo'),
- 'desc' => __('You can set your text as logo in lieu of image from here', 'drubo'),
- 'type' => 'text',
- 'required' => array('header-logo-image-text', 'not', '1'),
- 'id' => 'header-logo-text',
- 'default' => 'Logo Text'
- )
- )
- ));
- <!-- Logo Area -->
- <div class="col-md-2 col-sm-12 col-xs-12">
- <div class="logo-area">
- <a href="<?php echo site_url(); ?>">
- <?php
- if($header_logo_image_text == 1 && $header_logo):
- echo '<img src="'.$header_logo['url'].'">';
- elseif($header_logo_image_text == 2 && $header_logo_text):
- echo $header_logo_text;
- endif;
- ?>
- </a>
- </div>
- </div>
- <!-- Logo Area -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement