Skip to content

Instantly share code, notes, and snippets.

@hashtheme
Created May 13, 2018 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashtheme/cd17c9a25ce8b32bd1b24993ff3771fa to your computer and use it in GitHub Desktop.
Save hashtheme/cd17c9a25ce8b32bd1b24993ff3771fa to your computer and use it in GitHub Desktop.
font
<?php
require get_template_directory() . '/inc/cs-framework/cs-framework.php';
function industry_rrfonline_theme_metabox( $options ) {
$options = array();
$options[] = array(
'id' => 'industry_rrfonline_slide_meta',
'title' => 'Slider Section',
'post_type' => 'slider',
'context' => 'normal',
'priority' => 'default',
'icon' => 'fa fa-heart',
'sections' => array(
array(
'name' => 'industry_rrfonline_slide_metaboxss',
'title' => 'Slider Text Color',
'fields' => array(
array(
'id' => 'width',
'type' => 'select',
'title' => 'Slider text width',
'options' => array(
'col-md-4' => '4 Column',
'col-md-5' => '5 Column',
'col-md-6' => '6 Column',
'col-md-7' => '7 Column',
'col-md-8' => '8 Column',
'col-md-9' => '9 Column',
'col-md-10' => '10 Column',
'col-md-11' => '11 Column',
'col-md-12' => '12 Column',
),
'default' => 'col-md-6',
),
array(
'id' => 'offset',
'type' => 'select',
'title' => 'Slider text offset',
'options' => array(
'no-offset' => 'No Offset',
'col-md-offset-1' => '1 Column',
'col-md-offset-2' => '2 Column',
'col-md-offset-3' => '3 Column',
'col-md-offset-4' => '4 Column',
'col-md-offset-5' => '5 Column',
'col-md-offset-6' => '6 Column',
'col-md-offset-7' => '7 Column',
'col-md-offset-2' => '8 Column',
),
'default' => 'no-offset',
),
array(
'id' => 'align',
'type' => 'select',
'title' => 'Slider text align',
'options' => array(
'left' => 'Left',
'right' => 'Right',
'center' => 'Center',
),
'default' => 'left',
),
array(
'id' => 'text_color',
'type' => 'color_picker',
'default' => '#333',
'title' => 'Slider Text Color',
),
array(
'id' => 'enable_opacity',
'type' => 'switcher',
'title' => 'Enable Opacity',
'default' => false,
),
array(
'id' => 'overlay_opacity',
'type' => 'number',
'title' => 'overlay_opacity Opacity',
'default' => '70',
'dependency' => array( 'enable_opacity', '==', 'true' ),
),
array(
'id' => 'overlay_color',
'type' => 'color_picker',
'title' => 'overlay opacity color',
'default' =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment