예제 #1
0
 public static function image_source($id, $field)
 {
     $field = wp_parse_args($field, array('default' => 'none'));
     $sources = mom_su_Tools::select(array('options' => array('media' => __('Media library', 'theme'), 'posts: recent' => __('Recent posts', 'theme'), 'category' => __('Category', 'theme'), 'taxonomy' => __('Taxonomy', 'theme')), 'selected' => '0', 'none' => __('Select images source', 'theme') . '…', 'class' => 'mom-su-generator-isp-sources'));
     $categories = mom_su_Tools::select(array('options' => mom_su_Tools::get_terms('category'), 'multiple' => true, 'size' => 10, 'class' => 'mom-su-generator-isp-categories'));
     $taxonomies = mom_su_Tools::select(array('options' => mom_su_Tools::get_taxonomies(), 'none' => __('Select taxonomy', 'theme') . '…', 'selected' => '0', 'class' => 'mom-su-generator-isp-taxonomies'));
     $terms = mom_su_Tools::select(array('class' => 'mom-su-generator-isp-terms', 'multiple' => true, 'size' => 10, 'disabled' => true, 'style' => 'display:none'));
     $return = '<div class="mom-su-generator-isp">' . $sources . '<div class="mom-su-generator-isp-source mom-su-generator-isp-source-media"><div class="mom-su-generator-clearfix"><a href="javascript:;" class="button button-primary mom-su-generator-isp-add-media"><i class="fa fa-plus"></i>&nbsp;&nbsp;' . __('Add images', 'theme') . '</a></div><div class="mom-su-generator-isp-images mom-su-generator-clearfix"><em class="description">' . __('Click the button above and select images.<br>You can select multimple images with Ctrl (Cmd) key', 'theme') . '</em></div></div><div class="mom-su-generator-isp-source mom-su-generator-isp-source-category"><em class="description">' . __('Select categories to retrieve posts from.<br>You can select multiple categories with Ctrl (Cmd) key', 'theme') . '</em>' . $categories . '</div><div class="mom-su-generator-isp-source mom-su-generator-isp-source-taxonomy"><em class="description">' . __('Select taxonomy and it\'s terms.<br>You can select multiple terms with Ctrl (Cmd) key', 'theme') . '</em>' . $taxonomies . $terms . '</div><input type="hidden" name="' . $id . '" value="' . $field['default'] . '" id="mom-su-generator-attr-' . $id . '" class="mom-su-generator-attr" /></div>';
     return $return;
 }
예제 #2
0
 public static function cheatsheet($field, $config)
 {
     // Prepare print button
     $print = '<div><a href="javascript:;" id="mom-su-cheatsheet-print" class="mom-su-cheatsheet-switch button button-primary button-large">' . __('Printable version', 'theme') . '</a><div id="mom-su-cheatsheet-print-head"><h1>' . __('Shortcodes Ultimate', 'theme') . ': ' . __('Cheatsheet', 'theme') . '</h1><a href="javascript:;" class="mom-su-cheatsheet-switch">&larr; ' . __('Back to Dashboard', 'theme') . '</a></div></div>';
     // Prepare table array
     $table = array();
     // Table start
     $table[] = '<table><tr><th style="width:20%;">' . __('Shortcode', 'theme') . '</th><th style="width:50%">' . __('Attributes', 'theme') . '</th><th style="width:30%">' . __('Example code', 'theme') . '</th></tr>';
     // Loop through shortcodes
     foreach ((array) mom_su_Data::shortcodes() as $name => $shortcode) {
         // Prepare vars
         $icon = isset($shortcode['icon']) ? $shortcode['icon'] : 'puzzle-piece';
         $shortcode['name'] = isset($shortcode['name']) ? $shortcode['name'] : $name;
         $attributes = array();
         $example = array();
         $icons = 'icon: music, icon: envelope &hellip; <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">' . __('full list', 'theme') . '</a>';
         // Loop through attributes
         if (is_array($shortcode['atts'])) {
             foreach ($shortcode['atts'] as $id => $data) {
                 // Prepare default value
                 $default = isset($data['default']) && $data['default'] !== '' ? '<p><em>' . __('Default value', 'theme') . ':</em> ' . $data['default'] . '</p>' : '';
                 // Check type is set
                 if (empty($data['type'])) {
                     $data['type'] = 'text';
                 }
                 // Switch attribute types
                 switch ($data['type']) {
                     // Select
                     case 'select':
                         $value = implode(', ', array_keys($data['values']));
                         break;
                         // Slider and number
                     // Slider and number
                     case 'slider':
                     case 'number':
                         $value = $data['min'] . '&hellip;' . $data['max'];
                         break;
                         // Bool
                     // Bool
                     case 'bool':
                         $value = 'yes | no';
                         break;
                         // Icon
                     // Icon
                     case 'icon':
                         $value = $icons;
                         break;
                         // Color
                     // Color
                     case 'color':
                         $value = __('#RGB and rgba() colors');
                         break;
                         // Default value
                     // Default value
                     default:
                         $value = $data['default'];
                         break;
                 }
                 // Check empty value
                 if ($value === '') {
                     $value = __('Any text value', 'theme');
                 }
                 // Extra CSS class
                 if ($id === 'class') {
                     $value = __('Any custom CSS classes', 'theme');
                 }
                 // Add attribute
                 $attributes[] = '<div class="mom-su-shortcode-attribute"><strong>' . $data['name'] . ' <em>&ndash; ' . $id . '</em></strong><p><em>' . __('Possible values', 'theme') . ':</em> ' . $value . '</p>' . $default . '</div>';
                 // Add attribute to the example code
                 $example[] = $id . '="' . $data['default'] . '"';
             }
         }
         // Prepare example code
         $example = '[%prefix_' . $name . ' ' . implode(' ', $example) . ']';
         // Prepare content value
         if (empty($shortcode['content'])) {
             $shortcode['content'] = '';
         }
         // Add wrapping code
         if ($shortcode['type'] === 'wrap') {
             $example .= esc_textarea($shortcode['content']) . '[/%prefix_' . $name . ']';
         }
         // Change compatibility prefix
         $example = str_replace(array('%prefix_', '__'), mom_su_cmpt(), $example);
         // Shortcode
         $table[] = '<td>' . '<span class="mom-su-shortcode-icon">' . mom_su_Tools::icon($icon) . '</span>' . $shortcode['name'] . '<br/><em class="mom-su-shortcode-desc">' . $shortcode['desc'] . '</em></td>';
         // Attributes
         $table[] = '<td>' . implode('', $attributes) . '</td>';
         // Example code
         $table[] = '<td><code contenteditable="true">' . $example . '</code></td></tr>';
     }
     // Table end
     $table[] = '</table>';
     // Query assets
     mom_su_query_asset('css', array('font-awesome', 'mom-su-cheatsheet'));
     mom_su_query_asset('js', array('jquery', 'mom-su-options-page'));
     // Return output
     return '<div id="mom-su-cheatsheet-screen">' . $print . implode('', $table) . '</div>';
 }
예제 #3
0
 public static function ajax_get_taxonomies()
 {
     self::access();
     $args = array();
     $args['options'] = mom_su_Tools::get_taxonomies();
     die(mom_su_Tools::select($args));
 }
예제 #4
0
function mom_register_my_custom_shortcode($shortcodes)
{
    $imgs = MOM_URI . '/framework/shortcodes/images/';
    /*=========================================================
    		*		Ads
    		========================================================= */
    $ads = get_posts('post_type=ads&posts_per_page=-1');
    $get_ads = array();
    foreach ($ads as $ad) {
        $get_ads[$ad->ID] = esc_attr($ad->post_title);
    }
    /*=========================================================
    		*		Animations
    		========================================================= */
    $animation = array('', 'flash', 'bounce', 'shake', 'tada', 'swing', 'wobble', 'pulse', 'flip', 'flipInX', 'flipOutX', 'flipInY', 'flipOutY', 'fadeIn', 'fadeInUp', 'fadeInDown', 'fadeInLeft', 'fadeInRight', 'fadeInUpBig', 'fadeInDownBig', 'fadeInLeftBig', 'fadeInRightBig', 'fadeOut', 'fadeOutUp', 'fadeOutDown', 'fadeOutLeft', 'fadeOutRight', 'fadeOutUpBig', 'fadeOutDownBig', 'fadeOutLeftBig', 'fadeOutRightBig', 'slideInDown', 'slideInLeft', 'slideInRight', 'slideOutUp', 'slideOutLeft', 'slideOutRight', 'bounceIn', 'bounceInDown', 'bounceInUp', 'bounceInLeft', 'bounceInRight', 'bounceOut', 'bounceOutDown', 'bounceOutUp', 'bounceOutLeft', 'bounceOutRight', 'rotateIn', 'rotateInDownLeft', 'rotateInDownRight', 'rotateInUpLeft', 'rotateInUpRight', 'rotateOut', 'rotateOutDownLeft', 'rotateOutDownRight', 'rotateOutUpLeft', 'rotateOutUpRight', 'lightSpeedIn', 'lightSpeedOut', 'hinge', 'rollIn', 'rollOut');
    /*=========================================================
    		*		Shortcodes
    		========================================================= */
    // accordion
    $shortcodes['accordions'] = array('name' => __('Accordion Wrap', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('type' => array('type' => 'select', 'values' => array('' => __('Accordion', 'framework'), 'toggle' => __('Toggle', 'framework')), 'default' => '', 'name' => __('Type', 'framework'), 'desc' => __('accordion or toggle', 'framework')), 'handle' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'arrows' => __('Arrows', 'framework'), 'numbers' => __('Numbers', 'framework'), 'pm' => __('Plus & Minus', 'framework')), 'default' => '', 'name' => __('Handle', 'framework'), 'desc' => __('the icon on the left', 'framework')), 'space' => array('type' => 'bool', 'default' => 'no', 'name' => __('Space', 'framework'), 'desc' => __('small space between the accordions titles for nicer design', 'framework')), 'icon_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Color', 'framework')), 'icon_current_color' => array('type' => 'color', 'default' => '#', 'name' => __('Current Icon Color', 'framework'))), 'content' => __("[accordion title=\"Title 1\" icon=\"\" state=\"yes\"]Content 1[/accordion]\n[accordion title=\"Title 2\" icon=\"\" state=\"no\"]Content 2[/accordion]\n[accordion title=\"Title 3\" icon=\"\" state=\"no\"]Content 3[/accordion]", 'framework'), 'desc' => __('Accordion wrap add accordions inside this wrap', 'framework'), 'icon' => 'th-list');
    $shortcodes['accordion'] = array('name' => __('Accordion', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('title' => array('type' => 'text', 'default' => 'Title', 'name' => __('Title', 'framework')), 'icon' => array('type' => 'icon', 'default' => '', 'name' => __('Icon', 'framework')), 'state' => array('type' => 'select', 'values' => array('close' => __('Close', 'framework'), 'open' => __('Open', 'framework')), 'default' => '', 'name' => __('Accordion State', 'framework'))), 'content' => __("Accordion Content", 'framework'), 'desc' => __('Add accordion to accordion wrap', 'framework'), 'icon' => 'reorder');
    // ads
    $shortcodes['ad'] = array('name' => __('Ads', 'framework'), 'type' => 'single', 'group' => 'content', 'atts' => array('id' => array('type' => 'select', 'values' => array('') + $get_ads, 'default' => '', 'name' => __('Select Ad', 'framework'), 'desc' => __('Choose Ad banner From ads system', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'desc' => __('Ad banner', 'framework'), 'icon' => 'eye');
    // anchor
    $shortcodes['incor'] = array('name' => __('Anchor', 'framework'), 'type' => 'single', 'group' => 'content', 'atts' => array('name' => array('default' => '', 'name' => __('ID Name', 'framework'), 'desc' => __('Enter id name to add to it to story highlights', 'framework'))), 'desc' => __('Anchor shortcode to insert story highlights in posts', 'framework'), 'icon' => 'anchor');
    // animation
    $shortcodes['animate'] = array('name' => __('Animation', 'framework'), 'type' => 'wrap', 'group' => 'other', 'atts' => array('animation' => array('type' => 'select', 'values' => array_combine($animation, $animation), 'default' => '', 'name' => __('Animation', 'framework'), 'desc' => __('Select animation type', 'framework')), 'duration' => array('type' => 'slider', 'min' => 0, 'max' => 100, 'step' => 0.5, 'default' => 1, 'name' => __('Duration', 'framework'), 'desc' => __('Animation duration (seconds)', 'framework')), 'delay' => array('type' => 'slider', 'min' => 0, 'max' => 100, 'step' => 0.5, 'default' => 0, 'name' => __('Delay', 'framework'), 'desc' => __('Animation delay (seconds)', 'framework')), 'iteration' => array('type' => 'slider', 'min' => -1, 'max' => 100, 'step' => 1, 'default' => 0, 'name' => __('Iteration Count', 'framework'), 'desc' => __('number of animation times -1 for non stop animation', 'framework'))), 'content' => "", 'desc' => __('Animate shortcode', 'framework'), 'icon' => 'magic');
    // Blog
    $shortcodes['blog'] = array('name' => __('Blog', 'framework'), 'type' => 'single', 'group' => 'momizat', 'atts' => array('style' => array('type' => 'select', 'values' => array('def' => __('Default style', 'framework'), 'larg' => __('Full width Style', 'framework'), 'grid' => __('Cetgory View', 'framework')), 'default' => '', 'name' => __('Style', 'framework')), 'cols' => array('type' => 'select', 'values' => array(2 => __('2 Columns', 'framework'), 3 => __('3 Columns', 'framework')), 'default' => '', 'required' => array('style', '=', 'grid'), 'name' => __('Grid Columns', 'framework')), 'display' => array('type' => 'select', 'values' => array('' => __('Latest posts', 'framework'), 'category' => __('Category', 'framework'), 'tag' => __('Tag', 'framework'), 'specific' => __('Specific Posts ids', 'framework')), 'default' => '', 'name' => __('Display', 'framework')), 'category' => array('type' => 'select', 'multiple' => true, 'values' => mom_su_Tools::get_terms('category'), 'default' => '', 'name' => __('Cateogry', 'framework'), 'required' => array('display', '=', 'category')), 'tag' => array('default' => '', 'name' => __('Tags', 'framework'), 'desc' => __('multiple tags separated by comma', 'framework'), 'required' => array('display', '=', 'tag')), 'specific' => array('default' => '', 'name' => __('Posts ids', 'framework'), 'desc' => __('multiple post id separated by comma', 'framework'), 'required' => array('display', '=', 'specific')), 'orderby' => array('type' => 'select', 'values' => array('' => __('Recent', 'framework'), 'comment_count' => __('Popular', 'framework'), 'rand' => __('Random', 'framework')), 'default' => '', 'name' => __('Order by', 'framework')), 'posts_per_page' => array('type' => 'slider', 'min' => -1, 'max' => 500, 'step' => 1, 'default' => 0, 'name' => __('Posts Per Page', 'framework')), 'offset' => array('type' => 'slider', 'min' => 0, 'max' => 500, 'step' => 1, 'default' => 0, 'desc' => __('number of post to displace or pass over', 'framework'), 'name' => __('Offset posts', 'framework')), 'nexcerpt' => array('default' => '', 'name' => __('excerpt length', 'framework'), 'desc' => __('post excerpt length in characters leave empty for default values', 'framework')), 'pagination' => array('type' => 'bool', 'default' => 'no', 'name' => __('Pagination', 'framework')), 'ad_id' => array('type' => 'select', 'values' => array('') + $get_ads, 'default' => '', 'name' => __('Select Ad', 'framework')), 'ad_count' => array('default' => '3', 'name' => __("Display after x posts", 'theme'), 'desc' => __('the number of posts to display ads after it. default is 3', 'theme')), 'ad_repeat' => array('type' => 'bool', 'default' => 'yes', 'name' => __('Repeat ad', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'desc' => __('Add Blog List or blog posts', 'framework'), 'icon' => 'newspaper-o');
    // Box
    $shortcodes['box'] = array('name' => __('Box', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('type' => array('type' => 'select', 'values' => array('' => __('Default', 'framework'), 'info' => __('Info', 'framework'), 'note' => __('Note', 'framework'), 'error' => __('Error', 'framework'), 'tip' => __('Tip', 'framework'), 'custom' => __('Custom', 'framework')), 'default' => '', 'name' => __('Type', 'framework'), 'desc' => __('Select one or create your custom', 'framework')), 'bgimg' => array('type' => 'upload', 'default' => '', 'name' => __('Background Image', 'framework'), 'desc' => __('Upload Background image', 'framework'), 'required' => array('type', '=', 'custom')), 'bg' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework'), 'required' => array('type', '=', 'custom')), 'color' => array('type' => 'color', 'default' => '#', 'name' => __('Text Color', 'framework'), 'required' => array('type', '=', 'custom')), 'border' => array('type' => 'color', 'default' => '#', 'name' => __('Border Color', 'framework'), 'required' => array('type', '=', 'custom')), 'radius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Radius', 'framework'), 'desc' => __('insert box border radius number eg. 10', 'framework')), 'fontsize' => array('type' => 'number', 'min' => 0, 'max' => 1000, 'step' => 1, 'default' => '', 'name' => __('Font Size', 'framework'), 'desc' => __('insert a font size as a number eg. 14', 'framework'))), 'content' => __("Box Content", 'framework'), 'desc' => __('Box shortcode', 'framework'), 'icon' => 'list-alt');
    // Button
    $shortcodes['button'] = array('name' => __('Button', 'framework'), 'type' => 'wrap', 'group' => 'content', 'atts' => array('color' => array('type' => 'select', 'values' => array('' => __('Default', 'framework'), 'yellow' => __('Yellow', 'framework'), 'orange' => __('Orange', 'framework'), 'orange2' => __('Orange2', 'framework'), 'red' => __('Red', 'framework'), 'brown' => __('Brown', 'framework'), 'pink' => __('Pink', 'framework'), 'purple' => __('Purple', 'framework'), 'green2' => __('Dark Green', 'framework'), 'green' => __('Green', 'framework'), 'blue' => __('Blue', 'framework'), 'blue2' => __('Dark Blue', 'framework'), 'gray2' => __('Dark Gray', 'framework'), 'gray' => __('Gray', 'framework'), 'custom' => __('Custom', 'framework')), 'default' => '', 'name' => __('Button color', 'framework'), 'desc' => __('Select one or make your own', 'framework')), 'bgcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework'), 'required' => array('color', '=', 'custom')), 'hoverbg' => array('type' => 'color', 'default' => '#', 'name' => __('Background Hover Color', 'framework'), 'required' => array('color', '=', 'custom')), 'textcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Text Color', 'framework'), 'required' => array('color', '=', 'custom')), 'texthcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Text Hover Color', 'framework'), 'required' => array('color', '=', 'custom')), 'bordercolor' => array('type' => 'color', 'default' => '#', 'name' => __('Border Color', 'framework'), 'required' => array('color', '=', 'custom')), 'hoverborder' => array('type' => 'color', 'default' => '#', 'name' => __('Border Hover Color', 'framework'), 'required' => array('color', '=', 'custom')), 'size' => array('type' => 'select', 'values' => array('' => __('Medium', 'framework'), 'big' => __('Big', 'framework'), 'bigger' => __('Bigger', 'framework')), 'default' => '', 'name' => __('Size', 'framework'), 'desc' => __('select from medium or big', 'framework')), 'align' => array('type' => 'select', 'values' => array('' => __('Left', 'framework'), 'right' => __('Right', 'framework'), 'center' => __('Center', 'framework')), 'default' => '', 'name' => __('Align', 'framework'), 'desc' => __('right,left and center', 'framework')), 'width' => array('type' => 'select', 'values' => array('' => __('Fit with content', 'framework'), 'full' => __('full width', 'framework')), 'default' => '', 'name' => __('Width', 'framework'), 'desc' => __('it can be 100% width', 'framework')), 'link' => array('default' => '', 'name' => __('Link', 'framework'), 'desc' => __('the link of the button', 'framework')), 'target' => array('type' => 'select', 'values' => array('' => __('Open in same window/tab', 'framework'), '_blank' => __('Open in new window/tab', 'framework')), 'default' => '', 'name' => __('Link target', 'framework')), 'font' => array('type' => 'select', 'values' => mom_google_fonts(), 'default' => '', 'name' => __('Font', 'framework')), 'font_style' => array('type' => 'select', 'values' => array('' => __('Normal', 'framework'), 'italic' => __('Italic', 'framework')), 'default' => '', 'name' => __('Font Style', 'framework')), 'font_weight' => array('type' => 'select', 'values' => array('' => __('Normal', 'framework'), 'bold' => __('Bold', 'framework')), 'default' => '', 'name' => __('Font Weight', 'framework')), 'radius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Radius', 'framework'), 'desc' => __('insert box border radius number eg. 10', 'framework')), 'outer_border' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), '' => __('False', 'framework')), 'default' => '', 'name' => __('Outer Border', 'framework'), 'desc' => __('its make the button look awesome', 'framework')), 'outer_border_color' => array('type' => 'color', 'default' => '#', 'name' => __('Outer Border Color', 'framework'), 'required' => array('outer_border', '=', 'true')), 'icon' => array('type' => 'icon', 'default' => '', 'name' => __('Icon', 'framework')), 'icon_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Color', 'framework'))), 'content' => __("Click here", 'framework'), 'desc' => __('Button shortcode', 'framework'), 'icon' => 'square');
    // Callout
    $shortcodes['callout'] = array('name' => __('Callout', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('bgimg' => array('type' => 'upload', 'default' => '', 'name' => __('Callout Background Image', 'framework'), 'desc' => __('Upload Background image', 'framework')), 'bg' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework')), 'color' => array('type' => 'color', 'default' => '#', 'name' => __('Text Color', 'framework')), 'border' => array('type' => 'color', 'default' => '#', 'name' => __('Border Color', 'framework')), 'radius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Radius', 'framework'), 'desc' => __('insert box border radius number eg. 10', 'framework')), 'font' => array('type' => 'select', 'values' => mom_google_fonts(), 'default' => '', 'name' => __('Font', 'framework')), 'fontsize' => array('default' => '', 'name' => __('Font Size', 'framework'), 'desc' => __('insert a font size as a number eg. 14', 'framework')), 'bt_pos' => array('type' => 'select', 'values' => array('right' => __('right', 'framework'), 'bottomLeft' => __('bottom Left', 'framework'), 'bottomRight' => __('bottom Right', 'framework'), 'bottomCenter' => __('bottom Center', 'framework')), 'default' => '', 'name' => __('Button Position', 'framework')), 'bt_content' => array('default' => '', 'name' => __('Button Text', 'framework')), 'bt_color' => array('type' => 'select', 'values' => array('' => __('Default', 'framework'), 'yellow' => __('Yellow', 'framework'), 'orange' => __('Orange', 'framework'), 'orange2' => __('Orange2', 'framework'), 'red' => __('Red', 'framework'), 'brown' => __('Brown', 'framework'), 'pink' => __('Pink', 'framework'), 'purple' => __('Purple', 'framework'), 'green2' => __('Dark Green', 'framework'), 'green' => __('Green', 'framework'), 'blue' => __('Blue', 'framework'), 'blue2' => __('Dark Blue', 'framework'), 'gray2' => __('Dark Gray', 'framework'), 'gray' => __('Gray', 'framework'), 'custom' => __('Custom', 'framework')), 'default' => '', 'name' => __('Button color', 'framework'), 'desc' => __('Select one or make your own', 'framework')), 'bt_bgcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework'), 'required' => array('bt_color', '=', 'custom')), 'bt_hoverbg' => array('type' => 'color', 'default' => '#', 'name' => __('Background Hover Color', 'framework'), 'required' => array('bt_color', '=', 'custom')), 'bt_textcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Text Color', 'framework'), 'required' => array('bt_color', '=', 'custom')), 'bt_texthcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Text Hover Color', 'framework'), 'required' => array('bt_color', '=', 'custom')), 'bt_bordercolor' => array('type' => 'color', 'default' => '#', 'name' => __('Border Color', 'framework'), 'required' => array('bt_color', '=', 'custom')), 'bt_hoverborder' => array('type' => 'color', 'default' => '#', 'name' => __('Border Hover Color', 'framework'), 'required' => array('bt_color', '=', 'custom')), 'bt_size' => array('type' => 'select', 'values' => array('' => __('Medium', 'framework'), 'big' => __('Big', 'framework'), 'bigger' => __('Bigger', 'framework')), 'default' => '', 'name' => __('Size', 'framework'), 'desc' => __('select from medium or big', 'framework')), 'bt_link' => array('default' => '', 'name' => __('Link', 'framework'), 'desc' => __('the link of the button', 'framework')), 'bt_target' => array('type' => 'select', 'values' => array('' => __('Open in same window/tab', 'framework'), '_blank' => __('Open in new window/tab', 'framework')), 'default' => '', 'name' => __('Link target', 'framework')), 'bt_font' => array('type' => 'select', 'values' => mom_google_fonts(), 'default' => '', 'name' => __('Font', 'framework')), 'bt_font_style' => array('type' => 'select', 'values' => array('' => __('Normal', 'framework'), 'italic' => __('Italic', 'framework')), 'default' => '', 'name' => __('Font Style', 'framework')), 'bt_font_weight' => array('type' => 'select', 'values' => array('' => __('Normal', 'framework'), 'bold' => __('Bold', 'framework')), 'default' => '', 'name' => __('Font Weight', 'framework')), 'bt_radius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Radius', 'framework'), 'desc' => __('insert box border radius number eg. 10', 'framework')), 'bt_outer_border' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), '' => __('False', 'framework')), 'default' => '', 'name' => __('Outer Border', 'framework'), 'desc' => __('its make the button look awesome', 'framework')), 'bt_outer_border_color' => array('type' => 'color', 'default' => '#', 'name' => __('Outer Border Color', 'framework'), 'required' => array('outer_border', '=', 'true')), 'bt_icon' => array('type' => 'icon', 'default' => '', 'name' => __('Icon', 'framework')), 'bt_icon_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Color', 'framework'))), 'content' => __("Callout Content", 'framework'), 'desc' => __('Callout Shortcode', 'framework'), 'icon' => 'bullhorn');
    // Clear
    $shortcodes['clear'] = array('name' => __('Clear', 'framework'), 'type' => 'single', 'group' => 'content', 'atts' => array(), 'desc' => __('Add Clear', 'framework'), 'icon' => 'square-o');
    // divide
    $shortcodes['divide'] = array('name' => __('Divide', 'framework'), 'type' => 'single', 'group' => 'content', 'atts' => array('style' => array('type' => 'select', 'values' => array('' => __('Line', 'framework'), 'dots' => __('Dots', 'framework'), 'dashs' => __('Dashes', 'framework')), 'default' => '', 'name' => __('Style', 'framework'), 'desc' => __('4 styles, default margin bottom 25px', 'framework')), 'icon' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'square' => __('Square', 'framework'), 'circle' => __('Circle', 'framework')), 'default' => '', 'name' => __('Icon', 'framework')), 'icon_position' => array('type' => 'select', 'values' => array('' => __('Center', 'framework'), 'left' => __('left', 'framework'), 'right' => __('right', 'framework')), 'default' => '', 'name' => __('Icon Position', 'framework')), 'margin_top' => array('default' => '', 'name' => __('Margin Top', 'framework'), 'desc' => __('Space above it', 'framework')), 'margin_bottom' => array('default' => '', 'name' => __('Margin Bottom', 'framework'), 'desc' => __('Space under it', 'framework')), 'width' => array('type' => 'select', 'values' => array('' => __('Long', 'framework'), 'medium' => __('Medium', 'framework'), 'short' => __('Short', 'framework')), 'default' => '', 'name' => __('Width', 'framework')), 'color' => array('type' => 'color', 'default' => '#', 'name' => __('Divider Color', 'framework'))), 'desc' => __('Add a Divider', 'framework'), 'icon' => 'ellipsis-h');
    // Document
    $shortcodes['document'] = array('name' => __('Document', 'framework'), 'type' => 'single', 'group' => 'media', 'atts' => array('url' => array('type' => 'upload', 'default' => '', 'name' => __('Url', 'framework'), 'desc' => __('Url to uploaded document. Supported formats: doc, xls, pdf etc.', 'framework')), 'width' => array('type' => 'slider', 'min' => 200, 'max' => 1600, 'step' => 20, 'default' => 600, 'name' => __('Width', 'framework'), 'desc' => __('Viewer width', 'framework')), 'height' => array('type' => 'slider', 'min' => 200, 'max' => 1600, 'step' => 20, 'default' => 600, 'name' => __('Height', 'framework'), 'desc' => __('Viewer height', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'desc' => __('Document viewer by Google', 'framework'), 'icon' => 'file-text');
    // Dropcap
    $shortcodes['dropcap'] = array('name' => __('Dropcap', 'framework'), 'type' => 'wrap', 'group' => 'content', 'atts' => array('style' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'square' => __('Square', 'framework'), 'circle' => __('Circle', 'framework')), 'default' => '', 'name' => __('Style', 'framework'), 'desc' => __('Dropcap styles', 'framework')), 'color' => array('type' => 'color', 'default' => '#', 'name' => __('Letter Color', 'framework')), 'bgcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework')), 'sradius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Square Radius', 'framework'), 'required' => array('style', '=', 'square'))), 'content' => __('A', 'framework'), 'desc' => __('Add a Dropcap', 'framework'), 'icon' => 'bold');
    // Feature slider
    $shortcodes['feature_slider'] = array('name' => __('Feature Slider', 'framework'), 'type' => 'single', 'group' => 'momizat', 'atts' => array('type' => array('type' => 'select', 'values' => array('def' => __('Simple ( Default )', 'framework'), 'slider2' => __('Grid Style', 'framework'), 'cat' => __('Category Slider ( Full width )', 'framework')), 'default' => 'def', 'name' => __('Type', 'framework')), 'display' => array('type' => 'select', 'values' => array('latest' => __('Latest posts', 'framework'), 'cat' => __('Category', 'framework'), 'tag' => __('Tag', 'framework'), 'specific' => __('Specific Posts', 'framework')), 'default' => '', 'name' => __('Display', 'framework')), 'cats' => array('type' => 'select', 'multiple' => true, 'values' => mom_su_Tools::get_terms('category'), 'default' => '', 'name' => __('Cateogry', 'framework'), 'required' => array('display', '=', 'cat')), 'tag' => array('default' => '', 'name' => __('Tags', 'framework'), 'desc' => __('multiple tags separated by comma', 'framework'), 'required' => array('display', '=', 'tag')), 'specific' => array('default' => '', 'name' => __('Posts ids', 'framework'), 'desc' => __('multiple post id separated by comma', 'framework'), 'required' => array('display', '=', 'specific')), 'orderby' => array('type' => 'select', 'values' => array('' => __('Recent', 'framework'), 'comment_count' => __('Popular', 'framework'), 'rand' => __('Random', 'framework')), 'default' => '', 'name' => __('Order by', 'framework')), 'number_of_posts' => array('type' => 'slider', 'min' => -1, 'max' => 100, 'step' => 1, 'default' => 4, 'name' => __('Number Of posts', 'framework')), 'animation' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'fade' => __('Fade', 'framework'), 'slid' => __('Slide', 'framework'), 'flip' => __('Flip', 'framework'), 'custom' => __('Custom Animation', 'framework')), 'default' => '', 'name' => __('Animation', 'framework'), 'required' => array('type', '=', 'def')), 'animationout' => array('type' => 'select', 'values' => array_combine($animation, $animation), 'default' => '', 'name' => __('Animation Out', 'framework'), 'required' => array('animation', '=', 'custom')), 'animationin' => array('type' => 'select', 'values' => array_combine($animation, $animation), 'default' => '', 'name' => __('Animation In', 'framework'), 'required' => array('animation', '=', 'custom')), 'autoplay' => array('type' => 'bool', 'default' => 'yes', 'name' => __('Autoplay', 'framework'), 'required' => array('type', '=', 'def')), 'timeout' => array('type' => 'slider', 'min' => 100, 'max' => 100000, 'step' => 100, 'default' => 5000, 'name' => __('TimeOut', 'framework'), 'required' => array('type', '=', 'def')), 'cap' => array('type' => 'bool', 'default' => 'yes', 'name' => __('Caption', 'framework'), 'required' => array('type', '=', 'def')), 'num_bullets' => array('type' => 'bool', 'default' => 'no', 'name' => __('Numeric bullets', 'framework'), 'required' => array('type', '=', 'def')), 'exc' => array('default' => '150', 'name' => __('Excerpt', 'framework'), 'desc' => __('excerpt length leave it empty to disappear default: 150', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'desc' => __('Feature slider shortcode', 'framework'), 'icon' => 'photo');
    //feed
    $shortcodes['feed'] = array('name' => __('RSS Feed', 'framework'), 'type' => 'single', 'group' => 'content other', 'atts' => array('url' => array('values' => array(), 'default' => '', 'name' => __('Url', 'framework'), 'desc' => __('Url to RSS-feed', 'framework')), 'limit' => array('type' => 'slider', 'min' => 1, 'max' => 20, 'step' => 1, 'default' => 3, 'name' => __('Limit', 'framework'), 'desc' => __('Number of items to show', 'framework')), 'descs' => array('type' => 'bool', 'default' => 'yes', 'name' => __('Enable Descritption', 'framework')), 'date' => array('type' => 'bool', 'default' => 'yes', 'name' => __('Enable Date', 'framework'))), 'desc' => __('Feed grabber', 'framework'), 'icon' => 'rss');
    // gap
    $shortcodes['gap'] = array('name' => __('Gap', 'framework'), 'type' => 'single', 'group' => 'other', 'atts' => array('height' => array('type' => 'slider', 'min' => 0, 'max' => 500, 'step' => 1, 'default' => 0, 'name' => __('Height', 'framework'))), 'desc' => __('Add a space', 'framework'), 'icon' => 'arrows-v');
    // Google map
    $shortcodes['g_map'] = array('name' => __('Google Map', 'framework'), 'type' => 'single', 'group' => 'media', 'atts' => array('width' => array('type' => 'select', 'values' => array('cwidth' => __('Container Width', 'framework'), 'full' => __('Full width', 'framework')), 'default' => '', 'name' => __('Style', 'framework'), 'desc' => __('Dropcap styles', 'framework')), 'height' => array('type' => 'slider', 'min' => 0, 'max' => 1000, 'step' => 1, 'default' => 0, 'name' => __('Height', 'framework')), 'lat' => array('default' => '', 'name' => __('Latitude', 'framework')), 'long' => array('default' => '', 'name' => __('Longitude', 'framework')), 'color' => array('type' => 'color', 'default' => '#', 'name' => __('Color', 'framework')), 'zoom' => array('default' => '', 'name' => __('Zoom', 'framework')), 'pan' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), 'false' => __('False', 'framework')), 'default' => '', 'name' => __('Pan', 'framework')), 'controls' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), 'false' => __('False', 'framework')), 'default' => '', 'name' => __('Controls', 'framework')), 'marker_icon' => array('type' => 'icon', 'default' => '', 'name' => __('Marker icon', 'framework')), 'marker_title' => array('default' => '', 'name' => __('Marker Title', 'framework')), 'marker_animation' => array('type' => 'select', 'values' => array('DROP' => __('DROP', 'framework'), 'BOUNCE' => __('BOUNCE', 'framework')), 'default' => '', 'name' => __('Marker Animation', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'desc' => __('Add Google map', 'framework'), 'icon' => 'map-marker');
    // graph
    $shortcodes['graphs'] = array('name' => __('Graph', 'framework'), 'type' => 'wrap', 'group' => 'other', 'atts' => array('height' => array('type' => 'slider', 'min' => 0, 'max' => 500, 'step' => 1, 'default' => 0, 'name' => __('Height', 'framework')), 'strips' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), '' => __('False', 'framework')), 'default' => '', 'name' => __('Enable Strips', 'framework'))), 'content' => __("[graph title=\"Title\" score=\"0\" color=\"#000\" text_color=\"#fff\"]\n[graph title=\"Title\" score=\"0\" color=\"#000\" text_color=\"#fff\"]\n[graph title=\"Title\" score=\"0\" color=\"#000\" text_color=\"#fff\"]", 'framework'), 'desc' => __('Add graph', 'framework'), 'icon' => 'tasks');
    // highlight
    $shortcodes['highlight'] = array('name' => __('Highlight', 'framework'), 'type' => 'wrap', 'group' => 'content', 'atts' => array('bgcolor' => array('type' => 'color', 'default' => '#DDFF99', 'name' => __('Background Color', 'framework')), 'txtcolor' => array('type' => 'color', 'default' => '#000', 'name' => __('Text Color', 'framework'))), 'content' => __("Highlighted text", 'framework'), 'desc' => __('Highlight', 'framework'), 'icon' => 'pencil');
    // Icon
    $shortcodes['icon'] = array('name' => __('Icon', 'framework'), 'type' => 'single', 'group' => 'other', 'atts' => array('align' => array('type' => 'select', 'values' => array('' => __('left', 'framework'), 'center' => __('center', 'framework'), 'right' => __('right', 'framework')), 'default' => '', 'name' => __('Align', 'framework')), 'size' => array('type' => 'select', 'values' => array('16' => __('16px', 'framework'), '24' => __('24px', 'framework'), '32' => __('32px', 'framework'), '48' => __('48px', 'framework'), 'custom' => __('Custom Size', 'framework')), 'default' => '32', 'name' => __('Icon Size', 'framework')), 'custom_size' => array('default' => '', 'name' => __('Custom size', 'framework'), 'required' => array('size', '=', 'custom')), 'icon_bg' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'square' => __('Square', 'framework'), 'circle' => __('Circle', 'framework')), 'default' => '', 'name' => __('Icon background', 'framework'), 'desc' => __('select icon background type circle, square', 'framework')), 'icon_bg_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Background Color', 'framework')), 'icon_bg_colorh' => array('type' => 'color', 'default' => '#', 'name' => __('Icon background Hover Color', 'framework')), 'icon_bd_color' => array('type' => 'color', 'default' => '#', 'name' => __('Border color', 'framework')), 'icon_bd_colorh' => array('type' => 'color', 'default' => '#', 'name' => __('Border Hover Color', 'framework')), 'icon_bd_width' => array('default' => '', 'name' => __('Border width', 'framework')), 'square_radius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Square Radius', 'framework'), 'required' => array('iconbg', '=', 'square')), 'type' => array('type' => 'select', 'values' => array('vector' => __('Vector Icon', 'framework'), 'custom' => __('Custom Icon', 'framework')), 'default' => '', 'name' => __('Icon Type', 'framework')), 'icon_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Color', 'framework'), 'required' => array('type', '=', 'vector')), 'icon_color_hover' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Hover Color', 'framework'), 'required' => array('type', '=', 'vector')), 'icon' => array('type' => 'icon', 'default' => '', 'name' => __('Icon', 'framework'))), 'desc' => __('Insert icon', 'framework'), 'icon' => 'exclamation-circle');
    // Icon box
    $shortcodes['iconbox'] = array('name' => __('Icon Box', 'framework'), 'type' => 'wrap', 'group' => 'other', 'atts' => array('title' => array('default' => '', 'name' => __('Box Title', 'framework')), 'title_align' => array('type' => 'select', 'values' => array('left' => __('left', 'framework'), 'center' => __('center', 'framework'), 'right' => __('right', 'framework')), 'default' => '', 'name' => __('Title Align', 'framework')), 'title_link' => array('default' => '', 'name' => __('Title Link', 'framework')), 'title_color' => array('type' => 'color', 'default' => '#', 'name' => __('Title Color', 'framework')), 'content_align' => array('type' => 'select', 'values' => array('left' => __('left', 'framework'), 'center' => __('center', 'framework'), 'right' => __('right', 'framework')), 'default' => '', 'name' => __('Content Align', 'framework')), 'content_color' => array('type' => 'color', 'default' => '#', 'name' => __('Content Color', 'framework')), 'layout' => array('type' => 'select', 'values' => array('plain' => __('Plain Box', 'framework'), 'boxed' => __('Boxed', 'framework')), 'default' => '', 'name' => __('Layout', 'framework')), 'bg' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework')), 'border' => array('type' => 'color', 'default' => '#', 'name' => __('Border Color', 'framework')), 'align' => array('type' => 'select', 'values' => array('left' => __('left', 'framework'), 'center' => __('center', 'framework'), 'right' => __('right', 'framework'), 'middle_left' => __('right', 'framework'), 'middle_right' => __('right', 'framework')), 'default' => '', 'name' => __('Icon Alignment', 'framework')), 'icon_align_to' => array('type' => 'select', 'values' => array('box' => __('Box', 'framework'), 'title' => __('Title', 'framework')), 'default' => '', 'name' => __('Icon Align To', 'framework')), 'size' => array('type' => 'select', 'values' => array('16' => __('16px', 'framework'), '24' => __('24px', 'framework'), '32' => __('32px', 'framework'), '48' => __('48px', 'framework'), 'custom' => __('Custom Size', 'framework')), 'default' => '32', 'name' => __('Icon Size', 'framework')), 'custom_size' => array('default' => '', 'name' => __('Custom size', 'framework'), 'required' => array('size', '=', 'custom')), 'icon_bg' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'square' => __('Square', 'framework'), 'circle' => __('Circle', 'framework')), 'default' => '', 'name' => __('Icon background', 'framework'), 'desc' => __('select icon background type circle, square', 'framework')), 'icon_bg_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Background Color', 'framework')), 'icon_bg_colorh' => array('type' => 'color', 'default' => '#', 'name' => __('Icon background Hover Color', 'framework')), 'icon_bd_color' => array('type' => 'color', 'default' => '#', 'name' => __('Border color', 'framework')), 'icon_bd_colorh' => array('type' => 'color', 'default' => '#', 'name' => __('Border Hover Color', 'framework')), 'icon_bd_width' => array('default' => '', 'name' => __('Border width', 'framework')), 'icon_link' => array('default' => '', 'name' => __('Icon Link', 'framework')), 'square_radius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Square Radius', 'framework'), 'required' => array('iconbg', '=', 'square')), 'hover_animation' => array('type' => 'select', 'values' => array('border_increase' => __('Border increase', 'framework'), 'border_decrease' => __('Border decrease', 'framework'), 'icon_move' => __('Icon move', 'framework')), 'default' => '', 'name' => __('Hover Animation', 'framework')), 'animation' => array('type' => 'select', 'values' => array_combine($animation, $animation), 'default' => '', 'name' => __('Icon Animation', 'framework'), 'desc' => __('Select animation type', 'framework')), 'icon_animation_duration' => array('type' => 'slider', 'min' => 0, 'max' => 100, 'step' => 0.5, 'default' => 1, 'name' => __('Duration', 'framework'), 'desc' => __('Animation duration (seconds)', 'framework')), 'icon_animation_delay' => array('type' => 'slider', 'min' => 0, 'max' => 100, 'step' => 0.5, 'default' => 0, 'name' => __('Delay', 'framework'), 'desc' => __('Animation delay (seconds)', 'framework')), 'icon_animation_iteration' => array('type' => 'slider', 'min' => -1, 'max' => 100, 'step' => 1, 'default' => 0, 'name' => __('Iteration Count', 'framework'), 'desc' => __('number of animation times -1 for non stop animation', 'framework')), 'type' => array('type' => 'select', 'values' => array('vector' => __('Vector Icon', 'framework'), 'custom' => __('Custom Icon', 'framework')), 'default' => '', 'name' => __('Icon Type', 'framework')), 'icon_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Color', 'framework'), 'required' => array('type', '=', 'vector')), 'icon_color_hover' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Hover Color', 'framework'), 'required' => array('type', '=', 'vector')), 'icon' => array('type' => 'icon', 'default' => '', 'name' => __('Icon', 'framework'))), 'content' => __("Content", 'framework'), 'desc' => __('Insert icon Box', 'framework'), 'icon' => 'check-square-o');
    // Images grid
    $shortcodes['images_grid'] = array('name' => __('Images Grid', 'framework'), 'type' => 'wrap', 'group' => 'gallery', 'atts' => array('type' => array('type' => 'select', 'values' => array('' => __('Grid', 'framework'), 'carousel' => __('Carousel', 'framework')), 'default' => '', 'name' => __('Type', 'framework')), 'title' => array('default' => '', 'name' => __('Carousel Title', 'framework'), 'required' => array('type', '=', 'carousel')), 'carousel_effect' => array('type' => 'select', 'values' => array('' => __('scroll', 'framework'), 'cover-fade' => __('cover-fade', 'framework'), 'fade' => __('fade', 'framework'), 'directscroll' => __('directscroll', 'framework'), 'crossfade' => __('crossfade', 'framework'), 'cover' => __('cover', 'framework'), 'uncover' => __('uncover', 'framework'), 'uncover-fade' => __('uncover-fade', 'framework')), 'default' => '', 'name' => __('Carousel Effect', 'framework'), 'required' => array('type', '=', 'carousel')), 'auto_slide' => array('type' => 'bool', 'default' => 'no', 'name' => __('Auto Slideshow', 'framework'), 'required' => array('type', '=', 'carousel')), 'auto_duration' => array('type' => 'slider', 'min' => 0, 'max' => 100, 'step' => 0.5, 'default' => 1, 'name' => __('Auto Slide Duration', 'framework'), 'required' => array('type', '=', 'carousel')), 'cols' => array('type' => 'select', 'values' => array('three' => __('Three Columns', 'framework'), 'four' => __('Four Columns', 'framework'), 'five' => __('Five Columns', 'framework'), 'six' => __('Six Columns', 'framework')), 'default' => '', 'name' => __('Columns', 'framework')), 'lightbox' => array('type' => 'bool', 'default' => 'no', 'name' => __('Enable lightbox', 'framework'), 'desc' => __('if you enable this the image link must be the big image url if you leave link empty the lightbox open the same image', 'framework')), 'source' => array('type' => 'image_source', 'default' => 'none', 'name' => __('Source', 'su'), 'desc' => __('Choose images source. You can use images from Media library or retrieve it from posts (thumbnails) posted under specified blog category. You can also pick any custom taxonomy', 'su'))), 'content' => __("", 'framework'), 'desc' => __('Images Grid shortcode', 'framework'), 'icon' => 'th');
    // Lightbox
    $shortcodes['lightbox'] = array('name' => __('Lightbox', 'framework'), 'type' => 'single', 'group' => 'gallery', 'atts' => array('thumb' => array('type' => 'upload', 'default' => '', 'name' => __('Lightbox Thumbnail', 'framework')), 'type' => array('type' => 'select', 'values' => array('img' => __('Image', 'framework'), 'video' => __('Video', 'framework')), 'default' => 'img', 'name' => __('Type', 'framework'), 'desc' => __('Image or Video', 'framework')), 'link' => array('default' => '', 'name' => __('Link', 'framework'), 'desc' => __('It can be image link or video link (youtube&vimeo only), if leave empty it will be the thumbnail image link.', 'framework'))), 'desc' => __('Lightbox shortcode', 'framework'), 'icon' => 'external-link');
    // Lists
    $shortcodes['list'] = array('name' => __('List', 'framework'), 'type' => 'wrap', 'group' => 'content', 'atts' => array('margin_top' => array('type' => 'slider', 'min' => 0, 'max' => 1000, 'step' => 1, 'default' => 0, 'name' => __('Space above it (optional)', 'framework')), 'margin_bottom' => array('type' => 'slider', 'min' => 0, 'max' => 1000, 'step' => 1, 'default' => 0, 'name' => __('Space under it (optional)', 'framework')), 'icon_bg' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'square' => __('Square', 'framework'), 'circle' => __('Circle', 'framework')), 'default' => '', 'name' => __('Icon background', 'framework'), 'desc' => __('select icon background type circle, square', 'framework')), 'icon_bg_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Background Color', 'framework')), 'icon_bg_hover' => array('type' => 'color', 'default' => '#', 'name' => __('Icon background Hover Color', 'framework')), 'square_bg_radius' => array('type' => 'slider', 'min' => 0, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Square Radius', 'framework'), 'required' => array('iconbg', '=', 'square')), 'icon_size' => array('type' => 'select', 'values' => array('16' => __('16px', 'framework'), '24' => __('24px', 'framework'), '32' => __('32px', 'framework'), '48' => __('48px', 'framework')), 'default' => '32', 'name' => __('Icon Size', 'framework')), 'icon' => array('type' => 'icon', 'default' => '', 'name' => __('Icon', 'framework')), 'icon_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Color', 'framework')), 'icon_color_hover' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Hover Color', 'framework'))), 'content' => __("Item 1,\nItem 2,\nItem 3", 'framework'), 'desc' => __('List shortcode', 'framework'), 'icon' => 'list-ul');
    // members
    $shortcodes['members'] = array('name' => __('Members', 'framework'), 'type' => 'wrap', 'group' => 'other', 'atts' => array('message' => array('default' => __('This content is for registered users only. Please %login%.', 'framework'), 'name' => __('Message', 'framework'), 'desc' => __('Message for not logged users', 'framework')), 'color' => array('type' => 'color', 'default' => '#ffcc00', 'name' => __('Box color', 'framework'), 'desc' => __('This color will applied only to box for not logged users', 'framework')), 'login_text' => array('default' => __('login', 'framework'), 'name' => __('Login link text', 'framework'), 'desc' => __('Text for the login link', 'framework')), 'login_url' => array('default' => wp_login_url(), 'name' => __('Login link url', 'framework'), 'desc' => __('Login link url', 'framework'))), 'content' => __('Content for logged members', 'framework'), 'desc' => __('Content for logged in members only', 'framework'), 'icon' => 'lock');
    // News box
    $shortcodes['newsbox'] = array('name' => __('News Box', 'framework'), 'type' => 'single', 'group' => 'momizat', 'atts' => array('style' => array('type' => 'radio_img', 'values' => array('nb1' => array($imgs . 'nb1.png', __('News Box 1', 'framework')), 'nb2' => array($imgs . 'nb2.png', __('News Box 2', 'framework')), 'nb3' => array($imgs . 'nb3.png', __('News Box 3', 'framework')), 'nb4' => array($imgs . 'nb4.png', __('News Box 4', 'framework')), 'nb5' => array($imgs . 'nb5.png', __('News Box 5', 'framework')), 'nb6' => array($imgs . 'nb6.png', __('News Box 6', 'framework')), 'list' => array($imgs . 'list.png', __('News Box List', 'framework'))), 'default' => 'sc1', 'name' => __('Style', 'framework')), 'title' => array('default' => '', 'name' => __('Custom Newsbox title', 'framework')), 'display' => array('type' => 'select', 'values' => array('' => __('Latest posts', 'framework'), 'category' => __('Category', 'framework'), 'tag' => __('Tag', 'framework')), 'default' => '', 'name' => __('Display', 'framework')), 'cat' => array('type' => 'select', 'multiple' => true, 'values' => mom_su_Tools::get_terms('category'), 'default' => '', 'name' => __('Cateogry', 'framework'), 'required' => array('display', '=', 'category')), 'tag' => array('default' => '', 'name' => __('Tags', 'framework'), 'desc' => __('multiple tags separated by comma', 'framework'), 'required' => array('display', '=', 'tag')), 'orderby' => array('type' => 'select', 'values' => array('' => __('Recent', 'framework'), 'comment_count' => __('Popular', 'framework'), 'rand' => __('Random', 'framework')), 'default' => '', 'name' => __('Order by', 'framework')), 'number_of_posts' => array('type' => 'slider', 'min' => -1, 'max' => 500, 'step' => 1, 'default' => 4, 'name' => __('Number Of posts', 'framework')), 'nb_excerpt' => array('default' => '', 'name' => __('excerpt length', 'framework'), 'desc' => __('post excerpt length in characters leave empty for default values', 'framework')), 'sub_categories' => array('type' => 'bool', 'default' => 'no', 'name' => __('Sub Categories', 'framework'), 'desc' => __('enable sub categories as tabs on top of each news box', 'framework')), 'show_more' => array('type' => 'bool', 'default' => 'no', 'name' => __('Show More Button', 'framework'), 'desc' => __('enable show more button as tabs on bottom of each news box', 'framework')), 'show_more_event' => array('type' => 'select', 'values' => array('' => __('Category/tag page', 'framework'), 'ajax' => __('More posts with Ajax', 'framework')), 'default' => '', 'name' => __('On Click', 'framework'), 'required' => array('show_more', '=', 'yes')), 'post_type' => array('type' => 'select', 'multiple' => true, 'values' => mom_su_Tools::get_types(), 'default' => 'post', 'name' => __('Custom post type', 'framework'), 'desc' => __('Advanced: you can use this option to get posts from custom post types, if you set this to anything the category and tags options not working', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'desc' => __('News modules &amp; blocks', 'framework'), 'icon' => 'newspaper-o');
    // News Tabs
    $shortcodes['news_tabs'] = array('name' => __('News Tabs Wrap', 'framework'), 'type' => 'wrap', 'group' => 'momizat', 'atts' => array('style' => array('type' => 'select', 'values' => array('grid' => __('Grid', 'framework'), 'list' => __('List', 'framework')), 'default' => 'grid', 'name' => __('Style ( Grid or List )', 'framework')), 'columns' => array('type' => 'select', 'values' => array('2' => __('Two columns', 'framework'), '3' => __('Three columns', 'framework'), '4' => __('Four columns', 'framework'), '5' => __('Five columns', 'framework')), 'default' => '2', 'name' => __('Columns', 'framework')), 'switcher' => array('type' => 'bool', 'default' => 'yes', 'name' => __('Switcher', 'framework'), 'desc' => __('enable grid or list switcher', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'content' => __('Insert news tabs here from news tabs shortcode', 'framework'), 'desc' => __('News Tabs', 'framework'), 'icon' => 'list-alt');
    // News tab
    $shortcodes['news_tab'] = array('name' => __('News Tab', 'framework'), 'type' => 'single', 'group' => 'momizat', 'atts' => array('title' => array('default' => '', 'name' => __('Tab title', 'framework')), 'display' => array('type' => 'select', 'values' => array('' => __('Latest posts', 'framework'), 'cat' => __('Category', 'framework'), 'tag' => __('Tag', 'framework')), 'default' => '', 'name' => __('Display', 'framework')), 'cat' => array('type' => 'select', 'multiple' => true, 'values' => mom_su_Tools::get_terms('category'), 'default' => '', 'name' => __('Cateogry', 'framework'), 'required' => array('display', '=', 'cat')), 'tag' => array('default' => '', 'name' => __('Tags', 'framework'), 'desc' => __('multiple tags separated by comma', 'framework'), 'required' => array('display', '=', 'tag')), 'orderby' => array('type' => 'select', 'values' => array('' => __('Recent', 'framework'), 'comment_count' => __('Popular', 'framework'), 'rand' => __('Random', 'framework'), 'views' => __('Most viewed', 'framework')), 'default' => '', 'name' => __('Order by', 'framework')), 'cats' => array('default' => '', 'name' => __('Exclude categories', 'framework'), 'required' => array('display', '=', '')), 'count' => array('type' => 'slider', 'min' => -1, 'max' => 500, 'step' => 1, 'default' => 0, 'name' => __('Number Of posts', 'framework')), 'exc' => array('default' => '', 'name' => __('Excerpt length', 'framework'))), 'desc' => __('News Tab insert it inside news tabs wrap', 'framework'), 'icon' => 'list-alt');
    // News Picture
    $shortcodes['newspic'] = array('name' => __('News Picture', 'framework'), 'type' => 'single', 'group' => 'momizat', 'atts' => array('title' => array('default' => '', 'name' => __('Box title', 'framework')), 'display' => array('type' => 'select', 'values' => array('' => __('Latest posts', 'framework'), 'category' => __('Category', 'framework'), 'tag' => __('Tag', 'framework')), 'default' => '', 'name' => __('Display', 'framework')), 'cat' => array('type' => 'select', 'multiple' => true, 'values' => mom_su_Tools::get_terms('category'), 'default' => '', 'name' => __('Cateogry', 'framework'), 'required' => array('display', '=', 'category')), 'tag' => array('default' => '', 'name' => __('Tags', 'framework'), 'desc' => __('multiple tags separated by comma', 'framework'), 'required' => array('display', '=', 'tag')), 'orderby' => array('type' => 'select', 'values' => array('' => __('Recent', 'framework'), 'comment_count' => __('Popular', 'framework'), 'rand' => __('Random', 'framework')), 'default' => '', 'name' => __('Order by', 'framework')), 'count' => array('type' => 'slider', 'min' => -1, 'max' => 500, 'step' => 1, 'default' => 0, 'name' => __('Number Of posts', 'framework')), 'class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'desc' => __('News Picture', 'framework'), 'icon' => 'th-large');
    // private
    $shortcodes['private'] = array('name' => __('Private', 'framework'), 'type' => 'wrap', 'group' => 'other', 'atts' => array('class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'content' => __('Private Content', 'framework'), 'desc' => __('Private content for post authors', 'framework'), 'icon' => 'lock');
    // Pop-up
    $shortcodes['pop-up'] = array('name' => __('Pop-up', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('popup_delay' => array('type' => 'slider', 'min' => 0, 'max' => 10000, 'step' => 50, 'default' => 0, 'name' => __('Delay', 'framework'), 'desc' => __('Appear after x seconds. Default is 0', 'framework')), 'popup_timeout' => array('type' => 'slider', 'min' => 0, 'max' => 10000, 'step' => 50, 'default' => 0, 'name' => __('TimeOut', 'framework'), 'desc' => __('Disable after x seconds. Default is 0', 'framework')), 'animationclass' => array('type' => 'select', 'values' => array('' => __('None', 'framework'), 'afadein' => __('Fadein', 'framework'), 'apop' => __('Pop', 'framework'), 'azoom' => __('Zoom', 'framework'), 'asimple' => __('Simple', 'framework'), 'ajelly' => __('Jelly', 'framework'), 'atop' => __('From Top', 'framework'), 'aleft' => __('From Left', 'framework'), 'aricky' => __('Ricky', 'framework')), 'default' => '', 'name' => __('Animation', 'framework')), 'popup_width' => array('type' => 'slider', 'min' => 1, 'max' => 1024, 'step' => 1, 'default' => 0, 'name' => __('Width', 'framework')), 'popup_height' => array('type' => 'slider', 'min' => 1, 'max' => 1024, 'step' => 1, 'default' => 0, 'name' => __('Height', 'framework')), 'padding' => array('type' => 'slider', 'min' => 1, 'max' => 50, 'step' => 1, 'default' => 0, 'name' => __('Padding', 'framework')), 'background_color' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework')), 'background_image' => array('type' => 'upload', 'default' => '', 'name' => __('Upload Background image', 'framework')), 'font_color' => array('type' => 'color', 'default' => '#', 'name' => __('Text Color', 'framework')), 'close_button' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), 'false' => __('False', 'framework')), 'default' => '', 'name' => __('Show close button', 'framework')), 'close_inside' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), 'false' => __('False', 'framework')), 'default' => '', 'name' => __('Close button inside pop-up box', 'framework')), 'close_bg_click' => array('type' => 'select', 'values' => array('true' => __('True', 'framework'), 'false' => __('False', 'framework')), 'default' => '', 'name' => __('Close On background click', 'framework'))), 'content' => __('Content Here', 'framework'), 'desc' => __('Pop-up shortcode', 'framework'), 'icon' => 'list-alt');
    // quote
    $shortcodes['quote'] = array('name' => __('Quote', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('font' => array('type' => 'select', 'values' => mom_google_fonts(), 'default' => '', 'name' => __('Font', 'framework')), 'font_size' => array('type' => 'slider', 'min' => 0, 'max' => 100, 'step' => 1, 'default' => 0, 'name' => __('Font Size', 'framework')), 'font_style' => array('type' => 'select', 'values' => array('' => __('Normal', 'framework'), 'italic' => __('Italic', 'framework')), 'default' => '', 'name' => __('Font Style', 'framework')), 'align' => array('type' => 'select', 'values' => array('' => __('none', 'framework'), 'left' => __('left', 'framework'), 'right' => __('right', 'framework')), 'default' => '', 'name' => __('Alignment', 'framework')), 'bgcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework')), 'color' => array('type' => 'color', 'default' => '#', 'name' => __('Text Color', 'framework')), 'bcolor' => array('type' => 'color', 'default' => '#', 'name' => __('Highlight color', 'framework')), 'arrow' => array('type' => 'bool', 'default' => 'no', 'name' => __('Show Arrow', 'framework'), 'desc' => __('little arrow on highlight', 'framework'))), 'content' => __("Content here", 'framework'), 'desc' => __('Quote Shortcode', 'framework'), 'icon' => 'quote-left');
    // Review
    $shortcodes['review'] = array('name' => __('Review', 'framework'), 'type' => 'single', 'group' => 'content', 'atts' => array(), 'desc' => __('If you enable review in this post add it', 'framework'), 'icon' => 'tasks');
    // Scroller
    $shortcodes['scroller'] = array('name' => __('Scroller', 'framework'), 'type' => 'single', 'group' => 'momizat', 'atts' => array('style' => array('type' => 'radio_img', 'values' => array('sc1' => array($imgs . 'sc1.png', __('Image Style', 'framework')), 'sc2' => array($imgs . 'sc2.png', __('Box Style', 'framework'))), 'default' => 'sc1', 'name' => __('Style', 'framework')), 'title' => array('default' => '', 'name' => __('Scroller box title', 'framework')), 'sub_title' => array('default' => '', 'name' => __('Scroller box Subtitle', 'framework'), 'desc' => __('Leave it blank if you want to hide', 'framework')), 'title_size' => array('type' => 'select', 'values' => array('17' => __('Default', 'framework'), '30' => __('Big size', 'framework')), 'default' => '17', 'name' => __('Title Size', 'framework')), 'display' => array('type' => 'select', 'values' => array('' => __('Latest posts', 'framework'), 'cats' => __('Category', 'framework'), 'tags' => __('Tag', 'framework')), 'default' => '', 'name' => __('Display', 'framework')), 'cats' => array('type' => 'select', 'multiple' => true, 'values' => mom_su_Tools::get_terms('category'), 'default' => '', 'name' => __('Cateogry', 'framework'), 'required' => array('display', '=', 'cats')), 'tags' => array('default' => '', 'name' => __('Tags', 'framework'), 'desc' => __('multiple tags separated by comma', 'framework'), 'required' => array('display', '=', 'tags')), 'orderby' => array('type' => 'select', 'values' => array('' => __('Recent', 'framework'), 'comment_count' => __('Popular', 'framework'), 'rand' => __('Random', 'framework')), 'default' => '', 'name' => __('Order by', 'framework')), 'number_of_posts' => array('type' => 'slider', 'min' => -1, 'max' => 500, 'step' => 1, 'default' => 8, 'name' => __('Number Of posts', 'framework')), 'number_of_posts' => array('type' => 'slider', 'min' => -1, 'max' => 500, 'step' => 1, 'default' => 4, 'name' => __('Number Of items', 'framework'), 'desc' => __('Number of items that display on each scroll default is 4', 'framework')), 'auto_play' => array('default' => '', 'name' => __('Autoplay', 'framework'), 'desc' => __('Change to any integrer for example autoPlay : 5000 to play every 5 seconds. If you set autoPlay: true default speed will be 5 seconds. false to display', 'framework')), 'speed' => array('type' => 'slider', 'min' => 50, 'max' => 10000, 'step' => 50, 'default' => 300, 'name' => __('Speed', 'framework'), 'desc' => __('Slide speed in milliseconds Default : 300', 'framework'))), 'desc' => __('Scroller Posts Shortcode', 'framework'), 'icon' => 'arrows-h');
    // soundcloud
    $shortcodes['soundcloud'] = array('name' => __('Soundcloud', 'framework'), 'type' => 'single', 'group' => 'media', 'atts' => array('id' => array('default' => '', 'name' => __('Soundcloud URL', 'framework')), 'width' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => 0, 'name' => __('Width', 'framework')), 'height' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => 0, 'name' => __('Height', 'framework'))), 'desc' => __('Soundcloud Shortcode', 'framework'), 'icon' => 'soundcloud');
    // Tabs
    $shortcodes['tabs'] = array('name' => __('Tabs Wrap', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('style' => array('type' => 'select', 'values' => array('h1' => __('Horizontal Tabs', 'framework'), 'v1' => __('Vertical Tabs', 'framework'), 'v3' => __('Vertical Tabs Big', 'framework')), 'default' => '', 'name' => __('Style', 'framework')), 'icon_color' => array('type' => 'color', 'default' => '#', 'name' => __('Icon Color', 'framework')), 'icon_current_color' => array('type' => 'color', 'default' => '#', 'name' => __('Current Icon Color', 'framework'))), 'content' => __("Insert tabs here from tab shortcode", 'framework'), 'desc' => __('Tabs wrap', 'framework'), 'icon' => 'list-alt');
    // tab
    $shortcodes['tab'] = array('name' => __('Tab', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('title' => array('default' => '', 'name' => __('Tab Title', 'framework')), 'icon' => array('type' => 'icon', 'default' => '', 'name' => __('Icon', 'framework'))), 'content' => __("Tab Content", 'framework'), 'desc' => __('Tab shotcode insert it inside tabs wrap shortcode each tab on a new line', 'framework'), 'icon' => 'list-alt');
    // table
    $shortcodes['table'] = array('name' => __('Table', 'framework'), 'type' => 'mixed', 'group' => 'content', 'atts' => array('class' => array('default' => '', 'name' => __('Class', 'framework'), 'desc' => __('Extra CSS class', 'framework'))), 'content' => __("<table>\n<thead>\n<tr>\n<th>Last Name</th>\n<th>First Name</th>\n<th>Email</th>\n<th>Due</th>\n<th>Web Site</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Smith</td>\n<td>John</td>\n<td>jsmith@gmail.com</td>\n<td>\$50.00</td>\n<td>http://www.jsmith.com</td>\n</tr>\n<tr>\n<td>Bach</td>\n<td>Frank</td>\n<td>fbach@yahoo.com</td>\n<td>\$50.00</td>\n<td>http://www.frank.com</td>\n</tr>\n<tr>\n<td>Doe</td>\n<td>Jason</td>\n<td>jdoe@hotmail.com</td>\n<td>\$100.00</td>\n<td>http://www.jdoe.com</td>\n</tr>\n<tr>\n<td>Conway</td>\n<td>Tim</td>\n<td>tconway@earthlink.net</td>\n<td>\$50.00</td>\n<td>http://www.tway.com</td>\n</tr>\n</tbody></table>", 'framework'), 'desc' => __('Styled table from HTML', 'framework'), 'icon' => 'table');
    // Testimonial Slider
    $shortcodes['testimonial_slider'] = array('name' => __('Testimonial Slider', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('title' => array('default' => 'What Clients Say', 'name' => __('Title', 'framework')), 'effect' => array('type' => 'select', 'values' => array_combine($animation, $animation), 'default' => '', 'name' => __('Animation', 'framework'), 'desc' => __('Select animation type', 'framework')), 'auto_duration' => array('type' => 'slider', 'min' => 0, 'max' => 10000, 'step' => 0.5, 'default' => 1000, 'name' => __('Auto Slide Duration', 'framework'))), 'content' => __("Insert Testimonials Shortcodes here", 'framework'), 'desc' => __('Testimonials slider', 'framework'), 'icon' => 'comments');
    // Testimonial
    $shortcodes['testimonial'] = array('name' => __('Testimonial', 'framework'), 'type' => 'wrap', 'group' => 'box', 'atts' => array('image' => array('type' => 'upload', 'default' => '', 'name' => __('Image', 'framework'), 'desc' => __('the person image 50px * 50px, leave it empty in you want', 'framework')), 'name' => array('default' => 'John Doe', 'name' => __('Person Name', 'framework')), 'title' => array('default' => 'Designer', 'name' => __('Person job title', 'framework')), 'font' => array('type' => 'select', 'values' => mom_google_fonts(), 'default' => '', 'name' => __('Font', 'framework')), 'font_style' => array('type' => 'select', 'values' => array('' => __('Italic', 'framework'), 'normal' => __('Normal', 'framework')), 'default' => '', 'name' => __('Font Style', 'framework')), 'font_size' => array('default' => '', 'name' => __('Font Size', 'framework')), 'background' => array('type' => 'color', 'default' => '#', 'name' => __('Background Color', 'framework')), 'color' => array('type' => 'color', 'default' => '#', 'name' => __('Text Color', 'framework')), 'border' => array('type' => 'color', 'default' => '#', 'name' => __('Border Color', 'framework')), 'img_border' => array('type' => 'color', 'default' => '#', 'name' => __('Image Border Color', 'framework')), 'name_color' => array('type' => 'color', 'default' => '#', 'name' => __('Name Color', 'framework')), 'title_color' => array('type' => 'color', 'default' => '#', 'name' => __('Title Color', 'framework'))), 'content' => __("He promptly completed the task at hand and communicates really well till the project reaches the finishing line. I was pleased with his creative design and will definitely be hiring him again.", 'framework'), 'desc' => __('Testimonial', 'framework'), 'icon' => 'comment');
    // Video
    $shortcodes['mom_video'] = array('name' => __('Video', 'framework'), 'type' => 'single', 'group' => 'media', 'atts' => array('type' => array('type' => 'select', 'values' => array('youtube' => __('Youtube', 'framework'), 'vimeo' => __('Vimeo', 'framework'), 'dailymotion' => __('Dailymotion', 'framework'), 'screenr' => __('screenr', 'framework')), 'default' => '', 'name' => __('Video Type', 'framework')), 'id' => array('default' => '', 'name' => __('Video ID', 'framework'), 'desc' => __('video id is the bold text in this links : http://www.youtube.com/watch?v=<strong>XSo4JQnm8Bw</strong>, http://vimeo.com/<strong>7449107</strong>', 'framework')), 'width' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => '', 'name' => __('Width', 'framework')), 'height' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => '', 'name' => __('Height', 'framework'))), 'desc' => __('Add video', 'framework'), 'icon' => 'youtube-play');
    // Weather charts
    $shortcodes['weather_chart'] = array('name' => __('Weather Charts', 'framework'), 'type' => 'single', 'group' => 'other', 'atts' => array('width' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => '', 'name' => __('Width', 'framework')), 'height' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => '', 'name' => __('Height', 'framework')), 'city' => array('default' => '', 'name' => __('City Name', 'framework')), 'units' => array('type' => 'select', 'values' => array('metric' => __('Metric', 'framework'), 'imperial' => __('Imperial', 'framework')), 'default' => '', 'name' => __('Unit', 'framework')), 'type' => array('type' => 'select', 'values' => array('daily' => __('Daily', 'framework'), 'hourly' => __('Hourly', 'framework')), 'default' => '', 'name' => __('Type', 'framework'))), 'desc' => __('Add Weather Charts', 'framework'), 'icon' => 'bar-chart-o');
    // Weather Map
    $shortcodes['weather_map'] = array('name' => __('Weather Map', 'framework'), 'type' => 'single', 'group' => 'other', 'atts' => array('width' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => '', 'name' => __('Width', 'framework')), 'height' => array('type' => 'slider', 'min' => 0, 'max' => 1024, 'step' => 1, 'default' => '', 'name' => __('Height', 'framework')), 'city' => array('default' => '', 'name' => __('City Name', 'framework')), 'zoom' => array('default' => '', 'name' => __('Zoom', 'framework')), 'layer' => array('type' => 'select', 'values' => array('rain' => __('rain', 'framework'), 'clouds' => __('clouds', 'framework'), 'precipitation' => __('precipitation', 'framework'), 'pressure' => __('pressure', 'framework'), 'wind' => __('wind', 'framework'), 'temp' => __('temp', 'framework'), 'snow' => __('snow', 'framework')), 'default' => '', 'name' => __('Map Layer', 'framework'))), 'desc' => __('Add Weglobeather Map', 'framework'), 'icon' => 'globe');
    // Return modified data
    return $shortcodes;
}
예제 #5
0
/**
 * Shortcut for mom_su_Tools::get_icon()
 */
function mom_su_get_icon($args)
{
    return mom_su_Tools::get_icon($args);
}
예제 #6
0
파일: typo.php 프로젝트: justinwool/vortago
function mom_img_grid($atts, $content)
{
    extract(shortcode_atts(array('type' => '', 'auto_slide' => '', 'auto_duration' => '4000', 'cols' => 'three', 'lightbox' => '', 'source' => 'none', 'limit' => 1000, 'gallery' => null, 'link' => 'none', 'width' => '420', 'height' => '300'), $atts));
    switch ($cols) {
        case 'three':
            $carou_items = 3;
            break;
        case 'four':
            $carou_items = 4;
            break;
        case 'five':
            $carou_items = 5;
            break;
        case 'six':
            $carou_items = 6;
            break;
    }
    $rndn = rand(1, 1000);
    $rel = '';
    if ($lightbox == 'yes') {
        $overlay = '<span class="plus_overlay"><i></i></span>';
    } else {
        $overlay = '';
    }
    wp_enqueue_script('owl');
    $script = '';
    ?>
	
	<?php 
    if ($type == 'carousel') {
        if ($auto_slide == 'yes') {
            $auto_slide = true;
        } else {
            $auto_slide = false;
        }
        if (is_rtl()) {
            $rtl = 'true';
        } else {
            $rtl = 'false';
        }
        $script = '<script>
		jQuery(document).ready(function($){
			 $(".mom_images_grid_' . $rndn . ' ul").owlCarousel({
				items:' . $carou_items . ',
				baseClass: "mom-carousel",
				autoplay: "' . $auto_slide . '",
				autoplayTimeout: ' . $auto_duration . ',
				autoplayHoverPause: true,
				rtl: ' . $rtl . '
			});
		});
	</script>';
        $igc_start = '<div class="mom_carousel mom_images_grid_' . $rndn . '">';
        $igc_end = '</div>';
    } else {
        $igc_start = '';
        $igc_end = '';
    }
    $output = '';
    $slides = (array) mom_su_Tools::get_slides($atts);
    foreach ($slides as $slide) {
        $image = vt_resize('', $slide['image'], '400', '280', true);
        $output .= '<li><a href="' . $slide['image'] . '"><img src="' . $image['url'] . '" alt="' . esc_attr($slide['title']) . '">' . $overlay . '</a></li>';
    }
    return $igc_start . '<div class="mom_images_grid mom_images_' . $cols . '_cols">' . $script . '<ul>' . $output . '</ul></div>' . $igc_end;
}