예제 #1
0
        /**
         *
         */
        public static function im_button($atts = null, $content = null)
        {
            if ($atts == 'generator') {
                return array('name' => __('Styled Link/Button', MISS_ADMIN_TEXTDOMAIN), 'base' => 'im_button', 'icon' => 'im-icon-link-3', 'category' => __('Theme Short-Codes', MISS_ADMIN_TEXTDOMAIN), 'params' => array(array('heading' => __('Display Style', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select display style (Link / Button).', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'class', 'value' => array(__('Link', MISS_ADMIN_TEXTDOMAIN) => 'styled_link', __('Button Style 1', MISS_ADMIN_TEXTDOMAIN) => 'btn1', __('Button Style 2', MISS_ADMIN_TEXTDOMAIN) => 'btn2'), 'type' => 'dropdown'), array('heading' => __('Text', MISS_ADMIN_TEXTDOMAIN), 'description' => __('This is the text that will appear on your button.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'content', 'value' => '', 'type' => 'textfield'), array('heading' => __('URL', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Paste a URL here to use as a link for your button.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'link', 'value' => '', 'type' => 'textfield'), array('heading' => __('Target <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Setting the target to "Blank" will open your page in a new tab when the reader clicks on this element.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'target', 'value' => array(__('Blank', MISS_ADMIN_TEXTDOMAIN) => '_blank'), 'type' => 'checkbox'), array('heading' => __('Discourage search engines from indexing this link <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('This option adding ref="nofollow" to your link.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'rel', 'value' => array(__('Enable rel="nofollow" attribute.', MISS_ADMIN_TEXTDOMAIN) => 'nofollow'), 'type' => 'checkbox'), array('heading' => __('Icon Before Text <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select the icon before.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'icon_before', 'value' => array_flip(miss_get_all_font_icons()), 'type' => 'im_icon'), array('heading' => __('Icon After Text <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select the icon after.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'icon_after', 'value' => array_flip(miss_get_all_font_icons()), 'type' => 'im_icon'), array('heading' => __('Size <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('You can choose between three sizes for your button.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'size', 'value' => array(__('small', MISS_ADMIN_TEXTDOMAIN) => 'small', __('medium', MISS_ADMIN_TEXTDOMAIN) => 'medium', __('large', MISS_ADMIN_TEXTDOMAIN) => 'large'), 'type' => 'dropdown', 'dependency' => array('element' => 'class', 'value' => array('btn1', 'btn2'))), array('heading' => __('Align <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Set the alignment for your button here. Your button will float along the center, left or right hand sides depending on your choice.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'align', 'value' => array(__('No align', MISS_ADMIN_TEXTDOMAIN) => 'none', __('Center', MISS_ADMIN_TEXTDOMAIN) => 'center', __('Left', MISS_ADMIN_TEXTDOMAIN) => 'left', __('Right', MISS_ADMIN_TEXTDOMAIN) => 'right'), 'type' => 'dropdown', 'dependency' => array('element' => 'class', 'value' => array('btn1', 'btn2'))), array('heading' => __('Custom Styles', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Check this for enable all settings below.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'custom', 'value' => array(__('Enable', MISS_ADMIN_TEXTDOMAIN) => 'true'), 'type' => 'checkbox'), array('heading' => __('Custom Text Color <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('You can change the color of the text.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'textcolor', 'value' => '', 'type' => 'colorpicker'), array('heading' => __('Custom First BG Color', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Choose your own color to use as the background for your button.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'bgcolor_first', 'value' => '', 'type' => 'colorpicker', 'dependency' => array('element' => 'class', 'value' => array('btn1', 'btn2'))), array('heading' => __('Custom Second BG Color <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Choose your second color to use as the bottom gradient for your button.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'bgcolor_second', 'value' => '', 'type' => 'colorpicker', 'dependency' => array('element' => 'class', 'value' => array('btn1', 'btn2')))));
            }
            extract(shortcode_atts(array('icon_before' => '', 'icon_after' => '', 'display_style' => '1', 'custom' => 'false', 'size' => '', 'align' => '', 'link' => '#', 'overlay' => '', 'corners' => '', 'target' => '', 'rel' => '', 'bgcolor_first' => '', 'bgcolor_second' => '', 'textcolor' => ''), $atts));
            if (isset($target) && !empty($target)) {
                $target = ' target="' . $target . '"';
            } else {
                $target = '';
            }
            if (isset($rel) && !empty($rel)) {
                $rel = ' rel="' . $rel . '"';
            } else {
                $rel = '';
            }
            $size = $size == 'large' ? ' large_button' : $size;
            $size = $size == 'medium' ? ' medium_button' : $size;
            $size = $size == 'small' ? ' small_button' : $size;
            if ($custom == 'false') {
                $out = '<div style="text-align:' . $align . '"><a href="' . esc_url($link) . '" class="btn' . $display_style . $size . '"' . $target . $rel . '><span>' . miss_content_group($content) . '</span></a></div>';
            } else {
                $before = $icon_before != '' ? '<i class="' . $icon_before . '" style="color:' . $textcolor . ';"></i>' : '';
                $after = $icon_after != '' ? '<i class="' . $icon_after . '" style="color:' . $textcolor . ';"></i>' : '';
                $corners = $corners == 'r1' ? ' r1' : $corners;
                $corners = $corners == 'r2' ? ' r2' : $corners;
                $corners = $corners == 'r3' ? ' r3' : $corners;
                $overlay = $overlay == 'glance' ? ' glance' : $overlay;
                $align = $align ? $align : '';
                $styles = array();
                $style = '';
                $style .= 'background-color:' . $bgcolor_first . '; ';
                if (isset($bgcolor_second) && $bgcolor_second != '') {
                    $style .= '
		background-image: linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
		background-image: -o-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
		background-image: -moz-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
		background-image: -webkit-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
		background-image: -ms-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
		background-image: -webkit-gradient(
		linear,
		left top,
		left bottom,
		color-stop(0, ' . $bgcolor_first . '),
		color-stop(1, ' . $bgcolor_second . ')
		); 	';
                }
                if (isset($textcolor)) {
                    $style .= 'color:' . $textcolor . ';';
                }
                $style = !empty($style) ? ' style="' . $style . '"' : '';
                $out = '<div style="text-align:' . $align . '"><a href="' . esc_url($link) . '" class="btn' . $display_style . $size . $corners . '"' . $target . $rel . $style . '><span>' . $before . ' ' . miss_content_group($content) . ' ' . $after . '</span></a></div>';
            }
            return $out;
        }
예제 #2
0
 /**
  *
  */
 public static function im_styledlist($atts = null, $content = null)
 {
     if ($atts == 'generator') {
         return array('name' => __('Styled Unlimited Icon List', MISS_ADMIN_TEXTDOMAIN), 'base' => 'im_styledlist', 'icon' => 'im-icon-list-2', 'category' => __('Theme Short-Codes', MISS_ADMIN_TEXTDOMAIN), 'params' => array(array('heading' => __('Icon', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Choose the icon of list that you wish to use. Each one has a different icon.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'icon', 'type' => 'im_icon', 'value' => array_flip(miss_get_all_font_icons())), array('heading' => __('Color Variation <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Choose one of our predefined color skins to use with your list.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'color', 'type' => 'colorpicker', 'value' => ''), array('heading' => __('List Html', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Type out the content of your list.  You need to use the &#60;ul&#62; and &#60;li&#62; elements when typing out your list content.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'content', 'type' => 'textarea_html', 'value' => ''), array("type" => "dropdown", "heading" => __("Viewport Animation", "js_composer"), "param_name" => "animation", "value" => miss_js_composer_css_animation(), "description" => __("Viewport animation will be triggered when this element is being viewed when you scroll page down. you only need to choose the animation style from this option. please note that this only works in moderns. We have disabled this feature in touch devices to increase browsing speed.", "js_composer"))));
     }
     extract(shortcode_atts(array('icon' => '', 'color' => '', 'animation' => ''), $atts));
     if ($animation != '') {
         $animation = ' im-animate-element ' . $animation . ' ';
     }
     $icon = $icon ? trim($icon) : 'arrow_list';
     $color = $color ? '' . trim($color) : '';
     $content = str_replace('<ul>', '<ul class="unlimited_list' . $animation . '">', $content);
     $content = str_replace('<li>', '<li><i class="' . $icon . '" style="color:' . $color . ';"></i> ', $content);
     return miss_content_group($content);
 }
예제 #3
0
파일: im_icon.php 프로젝트: schiz/scrollax
        /**
         *
         */
        public static function im_icon($atts = null, $content = null)
        {
            if ($atts == 'generator') {
                return array('name' => __('Icons', MISS_ADMIN_TEXTDOMAIN), 'base' => 'im_icon', 'icon' => 'im-icon-diamond-2', 'category' => __('Theme Short-Codes', MISS_ADMIN_TEXTDOMAIN), 'params' => array(array('heading' => __('Icon', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select your icon.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'icon', 'type' => 'im_icon', 'value' => array_flip(miss_get_all_font_icons())), array('heading' => __('Icon Size (optional)', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select icon size', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'size', 'value' => 16, 'min' => 6, 'max' => 200, 'step' => 1, 'unit' => __('px', MISS_ADMIN_TEXTDOMAIN), 'type' => 'range'), array('heading' => __('Float <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select icon align type.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'float', 'type' => 'dropdown', 'value' => array(__('Default (inline)', MISS_ADMIN_TEXTDOMAIN) => '', __('Float Left', MISS_ADMIN_TEXTDOMAIN) => 'left', __('Float Right', MISS_ADMIN_TEXTDOMAIN) => 'right')), array('heading' => __('Display Style <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select icon style.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'class', 'type' => 'dropdown', 'value' => array(__('Clean', MISS_ADMIN_TEXTDOMAIN) => 'claen', __('Square Box', MISS_ADMIN_TEXTDOMAIN) => 'box', __('Button Style 1', MISS_ADMIN_TEXTDOMAIN) => 'btn1', __('Button Style 2', MISS_ADMIN_TEXTDOMAIN) => 'btn2')), array('heading' => __('Icon Color <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Choose any color to use with your icon. (Leave blank for standard color)', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'color', 'value' => '', 'type' => 'colorpicker'), array('heading' => __('Icon Box First BG Color', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Choose any color to use with your icon box. (Leave blank for standard color)', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'bgcolor_first', 'value' => '', 'type' => 'colorpicker', 'dependency' => array('element' => 'class', 'value' => array('box'))), array('heading' => __('Icon Box Second BG Gradient Color <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Choose any color to use with your icon box. (Leave blank for standard color).', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'bgcolor_second', 'value' => '', 'type' => 'colorpicker', 'dependency' => array('element' => 'class', 'value' => array('box'))), array('heading' => __('Rounded Borders (optional)', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select corners rounding level.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'border_radius', 'value' => array('Do not round the corners' => '0', '10%' => '0.1', '30%' => '0.3', '50%' => '0.5', '80%' => '0.8', '100%' => '1'), 'type' => 'dropdown', 'dependency' => array('element' => 'class', 'value' => array('box')))));
            }
            extract(shortcode_atts(array('icon' => '', 'size' => '16', 'float' => '', 'class' => '', 'color' => '', 'bgcolor_first' => '', 'bgcolor_second' => '', 'border_radius' => ''), $atts));
            global $wp_query, $irish_framework_params;
            preg_match('/\\d+/', $size, $matches);
            $size = $matches[0];
            $style = ' style="';
            if (!empty($color)) {
                $style .= 'color: ' . $color . '; ';
            }
            if ($class == 'box') {
                if (isset($bgcolor_first) && $bgcolor_first != '') {
                    $style .= 'background-color:' . $bgcolor_first . ';';
                }
                if (isset($bgcolor_first) && $bgcolor_first != '' && isset($bgcolor_second) && $bgcolor_second != '') {
                    $style .= '
background-image: linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
background-image: -o-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
background-image: -moz-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
background-image: -webkit-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
background-image: -ms-linear-gradient(top, ' . $bgcolor_first . ' 0%, ' . $bgcolor_second . ' 100%);
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, ' . $bgcolor_first . '),
color-stop(1, ' . $bgcolor_second . ')
);
				';
                }
                $padding = floor($size / 6);
                $style .= 'display: inline-block; text-align: center; padding: ' . $padding . 'px;';
                $style .= 'border-radius:' . ($padding + $size / 2) * $border_radius . 'px;';
                $class = 'style-icon-box';
            }
            $style .= ' font-size:' . $size . 'px; line-height:' . $size . 'px;';
            if (!empty($float)) {
                $style .= ' display:inline-block;';
                $style .= ' float:' . $float . ';';
            }
            $style .= '"';
            $size = !empty($size) ? 'fa-icon-' . $size : '';
            $out = '<i class="' . $icon . ' ' . $size . ' ' . $class . '"' . $style . '></i>';
            return $out;
        }
예제 #4
0
        /**
         *
         */
        public static function im_benefit($atts = null, $content = null)
        {
            if ($atts == 'generator') {
                return array('name' => __('Benefit', MISS_ADMIN_TEXTDOMAIN), 'base' => 'im_benefit', 'icon' => 'im-icon-trophy-star', 'category' => __('Theme Short-Codes', MISS_ADMIN_TEXTDOMAIN), 'params' => array(array('heading' => __('Display Style <small>(optional)</small>', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select display style (required for icon box).', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'class', 'type' => 'dropdown', 'value' => array(__('Clean', MISS_ADMIN_TEXTDOMAIN) => 'claen', __('Round Frame', MISS_ADMIN_TEXTDOMAIN) => 'circle', __('Square Box', MISS_ADMIN_TEXTDOMAIN) => 'box')), array('heading' => __('Benefit Title', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Enter benefit title.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'title', 'type' => 'textfield', 'value' => ''), array('heading' => __('Benefit SubTitle', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Enter benefit sub title.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'subtitle', 'type' => 'textfield', 'value' => ''), array('heading' => __('Benefit Link', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Enter benefit link.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'link', 'type' => 'textfield', 'value' => ''), array('heading' => __('Benefit Icon', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select benefit icon.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'icon', 'type' => 'im_icon', 'value' => array_flip(miss_get_all_font_icons())), array('heading' => __('Benefit Background', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Select benefit background.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'background', 'type' => 'colorpicker', 'value' => ''), array('heading' => __('Benefit Content', MISS_ADMIN_TEXTDOMAIN), 'description' => __('Enter benefit content.', MISS_ADMIN_TEXTDOMAIN), 'param_name' => 'content', 'type' => 'textarea_html', 'value' => ''), array("type" => "dropdown", "heading" => __("Viewport Animation", "js_composer"), "param_name" => "animation", "value" => miss_js_composer_css_animation(), "description" => __("Viewport animation will be triggered when this element is being viewed when you scroll page down. you only need to choose the animation style from this option. please note that this only works in moderns. We have disabled this feature in touch devices to increase browsing speed.", "js_composer"))));
            }
            extract(shortcode_atts(array('icon' => 'fa-icon-ok', 'class' => 'claen', 'title' => '', 'link' => '', 'animation' => '', 'background' => '', 'subtitle' => ''), $atts));
            if ($animation != '') {
                $animation = ' im-animate-element ' . $animation . ' ';
            }
            $out = '';
            if ($class == 'box') {
                $out .= '<h5 class="header">';
                $out .= $link != '' ? '<a href="' . $link . '" title="' . $title . '">' : '';
                $out .= $title;
                $out .= $link != '' ? '</a>' : '';
                $out .= '</h5>';
                $out .= '<i class="' . $icon . '"></i>';
            } else {
                /*$out .= '<i class="'. $icon .'"></i>';
                		$out .= '<h5 class="header">';
                		$out .= ( $link != '' ) ? '<a href="' . $link . '" title="' . $title . '">' : '';
                		$out .= $title;
                		$out .= ( $link != '' ) ? '</a>' : '';
                		$out .= '</h5>';
                           */
                $out .= '<div class="content-item">
                <div class="icon" style="background: ' . $background . ';">
                  <i class="' . $icon . '"></i>
                </div>

                <h3>' . $title . '</h3>
                <h4>' . $subtitle . '</h4>

                <div class="post-excerpt">
                  <p>' . $content . '</p>
                </div>
              </div>';
            }
            //$out .= '<div class="post_excerpt">';
            //$out .= $content;
            //$out .= '</div>';
            return '<div class="benefits ' . $class . $animation . '">' . $out . '</div>';
        }
예제 #5
0
파일: im_steps.php 프로젝트: schiz/scrollax
 public static function im_steps($atts = null, $content = null)
 {
     if ($atts == 'generator') {
         return array("name" => __("Steps Builder", "js_composer"), "base" => "im_steps", "class" => "im-steps-class", 'icon' => "im-icon-arrow-right-6", 'category' => __('Theme Short-Codes', MISS_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Type here caption for this scheme", "js_composer")), array("type" => "range", "heading" => __("How Many Steps?", "js_composer"), "param_name" => "step", "value" => "2", "min" => "2", "max" => "5", "step" => "1", "unit" => 'step', "description" => __("How many steps do you want to have?", "js_composer")), array("type" => "colorpicker", "heading" => __("Container Hover Fill Color", "js_composer"), "param_name" => "hover_color", "value" => "#202020", "description" => __("Select container color when mouse over", "js_composer")), array("type" => "im_icon", "heading" => __("Step 1 : Icon", "js_composer"), "param_name" => "icon_1", "width" => 200, "value" => array_flip(miss_get_all_font_icons()), "encoding" => "false", "description" => __("Select icon for this step", "js_composer")), array("type" => "textfield", "heading" => __("Step 1 : Title", "js_composer"), "param_name" => "title_1", "value" => "", "description" => __("Type here caption for this step", "js_composer")), array("type" => "textarea", "heading" => __("Step 1 : Description", "js_composer"), "param_name" => "desc_1", 'margin_bottom' => 40, "value" => "", "description" => __("Type here description for this step", "js_composer")), array("type" => "im_icon", "heading" => __("Step 2 : Icon", "js_composer"), "param_name" => "icon_2", "width" => 200, "value" => array_flip(miss_get_all_font_icons()), "encoding" => "false", "description" => __("Select icon for this step", "js_composer")), array("type" => "textfield", "heading" => __("Step 2 : Title", "js_composer"), "param_name" => "title_2", "value" => "", "description" => __("Type here caption for this step", "js_composer")), array("type" => "textarea_html", "heading" => __("Step 2 : Description", "js_composer"), "param_name" => "desc_2", 'margin_bottom' => 40, "value" => "", "description" => __("Type here description for this step", "js_composer")), array("type" => "im_icon", "heading" => __("Step 3 : Icon", "js_composer"), "param_name" => "icon_3", "width" => 200, "value" => array_flip(miss_get_all_font_icons()), "encoding" => "false", "description" => __("Select icon for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => miss_array_int_to_sting(range(3, 5)))), array("type" => "textfield", "heading" => __("Step 3 : Title", "js_composer"), "param_name" => "title_3", "value" => "", "description" => __("Type here caption for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => miss_array_int_to_sting(range(3, 5)))), array("type" => "textarea_html", "heading" => __("Step 3 : Description", "js_composer"), "param_name" => "desc_3", 'margin_bottom' => 40, "value" => "", "description" => __("Type here description for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => miss_array_int_to_sting(range(3, 5)))), array("type" => "im_icon", "heading" => __("Step 4 : Icon", "js_composer"), "param_name" => "icon_4", "width" => 200, "value" => array_flip(miss_get_all_font_icons()), "encoding" => "false", "description" => __("Select icon for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => miss_array_int_to_sting(range(4, 5)))), array("type" => "textfield", "heading" => __("Step 4 : Title", "js_composer"), "param_name" => "title_4", "value" => "", "description" => __("Type here caption for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => miss_array_int_to_sting(range(4, 5)))), array("type" => "textarea_html", "heading" => __("Step 4 : Description", "js_composer"), "param_name" => "desc_4", 'margin_bottom' => 40, "value" => "", "description" => __("Type here description for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => miss_array_int_to_sting(range(4, 5)))), array("type" => "im_icon", "heading" => __("Step 5 : Icon", "js_composer"), "param_name" => "icon_5", "width" => 200, "value" => array_flip(miss_get_all_font_icons()), "encoding" => "false", "description" => __("Select icon for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => array('5'))), array("type" => "textfield", "heading" => __("Step 5 : Title", "js_composer"), "param_name" => "title_5", "value" => "", "description" => __("Type here caption for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => array('5'))), array("type" => "textarea_html", "heading" => __("Step 5 : Description", "js_composer"), "param_name" => "desc_5", 'margin_bottom' => 40, "value" => "", "description" => __("Type here description for this step", "js_composer"), 'dependency' => array('element' => 'step', 'value' => array('5'))), array("type" => "dropdown", "heading" => __("Viewport Animation", "js_composer"), "param_name" => "animation", "value" => miss_js_composer_css_animation(), "description" => __("Viewport animation will be triggered when this element is being viewed when you scroll page down. you only need to choose the animation style from this option. please note that this only works in moderns. We have disabled this feature in touch devices to increase browsing speed.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", "js_composer"))));
     }
     $shortcode_id = self::_shortcode_id();
     if ($shortcode_id == 1) {
         wp_enqueue_style(MISS_PREFIX . '-jsc-steps', IRISHFRAMEWORK_JS_COMPOSER_URI . '/css/im_steps.css');
         // wp_enqueue_script( MISS_PREFIX . '-jsc-steps', IRISHFRAMEWORK_JS_COMPOSER_URI .'/js/im_steps.js', array('jquery'), THEME_VERSION, false );
     }
     extract(shortcode_atts(array('title' => '', 'step' => 4, 'hover_color' => '#202020', 'icon_1' => '', 'title_1' => '', 'desc_1' => '', 'icon_2' => '', 'title_2' => '', 'desc_2' => '', 'icon_3' => '', 'title_3' => '', 'desc_3' => '', 'icon_4' => '', 'title_4' => '', 'desc_4' => '', 'icon_5' => '', 'title_5' => '', 'desc_5' => '', 'el_class' => '', 'width' => '1/1', 'animation' => '', 'el_position' => ''), $atts));
     $width = wpb_translateColumnWidthToSpan($width);
     $el_position_css = $animation_css = $output = '';
     if ($el_position != '') {
         $el_position_css = $el_position . '-column';
     }
     // $id = mt_rand( 99, 999 );
     if ($animation != '') {
         $animation_css = ' im-animate-element ' . $animation . ' ';
     }
     $output .= '<div class="' . $width . ' ' . $el_position_css . '">';
     $output .= '<div id="im-process-' . $shortcode_id . '" class="im-process-steps im-shortcode process-steps-' . $step . ' ' . $el_class . '">';
     if (!empty($title)) {
         $output .= '<h3 class="im-shortcode im-fancy-title pattern-style im-shortcode-heading" style="text-align:left;"><span>' . $title . '</span></h3>';
     }
     $output .= '<ul>' . "\n";
     for ($i = 1; $i <= $step; $i++) {
         $output .= '<li>
                 <span class="im-process-icon' . $animation_css . '"><i class="' . ${'icon_' . $i} . '"></i></span>
                 <div class="im-process-detail">
                 <h3>' . ${'title_' . $i} . '</h3>
                 <p>' . ${'desc_' . $i} . '</p>
                 </div>
             </li>' . "\n";
     }
     $output .= '<div class="clearboth"></div></ul></div></div>' . "\n";
     $output .= '<style type="text/css">
             #im-process-' . $shortcode_id . ' ul li:hover .im-process-icon {background-color:' . $hover_color . ';}
           </style>';
     return $output;
 }
예제 #6
0
파일: im_chart.php 프로젝트: schiz/scrollax
 public static function im_chart($atts = null, $content = null)
 {
     if ($atts == 'generator') {
         return array("name" => __("Radial Chart / Progress Bar", "js_composer"), "base" => "im_chart", 'icon' => "im-icon-spinner-4", "class" => "im-chart-class", 'category' => __("Theme Short-Codes", MISS_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "range", "heading" => __("Percent", "js_composer"), "param_name" => "percent", "value" => "50", "min" => "0", "max" => "100", "step" => "1", "unit" => '%', "description" => __("Select percentage to display on this graph", "js_composer")), array("type" => "colorpicker", "heading" => __("Bar Color", "js_composer"), "param_name" => "bar_color", "value" => "#dddddd", "description" => __("The color of the curcular bar.", "js_composer")), array("type" => "colorpicker", "heading" => __("Track Color", "js_composer"), "param_name" => "track_color", "value" => "#ececec", "description" => __("The color of the track for the bar.", "js_composer")), array("type" => "range", "heading" => __("Line Width", "js_composer"), "param_name" => "line_width", "value" => "10", "min" => "1", "max" => "20", "step" => "1", "unit" => 'px', "description" => __("Width of the bar line.", "js_composer")), array("type" => "range", "heading" => __("Bar Size", "js_composer"), "param_name" => "bar_size", "value" => "150", "min" => "1", "max" => "500", "step" => "1", "unit" => 'px', "description" => __("The Diameter of the bar.", "js_composer")), array("type" => "dropdown", "heading" => __("Content", "js_composer"), "param_name" => "content_type", "width" => 200, "value" => array("Percent" => "percent", "Icon" => "icon", "Custom Text" => "custom_text"), "description" => __("The content inside the bar. If you choose icon, you should select your icon from below list. if you have selected custom text, then you should fill out the 'custom text' option below.", "js_composer")), array("type" => "textfield", "heading" => __("Custom Text", "js_composer"), "param_name" => "custom_text", "value" => "", "description" => __("Description will appear below each chart.", "js_composer"), 'dependency' => array('element' => 'content_type', 'value' => array('custom_text'))), array("type" => "im_icon", "heading" => __("Choose Icon", "js_composer"), "param_name" => "icon", "value" => array_flip(miss_get_all_font_icons()), "encoding" => "false", "description" => __("Selset icon for this chart", "js_composer"), 'dependency' => array('element' => 'content_type', 'value' => array('icon'))), array("type" => "textfield", "heading" => __("Description", "js_composer"), "param_name" => "desc", "value" => "", "description" => __("Description will appear below each chart.", "js_composer")), array("type" => "dropdown", "heading" => __("Viewport Animation", "js_composer"), "param_name" => "animation", "value" => miss_js_composer_css_animation(), "description" => __("Viewport animation will be triggered when this element is being viewed when you scroll page down. you only need to choose the animation style from this option. please note that this only works in moderns. We have disabled this feature in touch devices to increase browsing speed.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", "js_composer"))));
     }
     $shortcode_id = self::_shortcode_id();
     if ($shortcode_id == 1) {
         wp_enqueue_style(MISS_PREFIX . '-jsc-skill-meter-chart', IRISHFRAMEWORK_JS_COMPOSER_URI . '/css/im_charts.css');
         wp_enqueue_script(MISS_PREFIX . '-jsc-easychart', IRISHFRAMEWORK_JS_COMPOSER_URI . '/js/jquery.easychart.js', array('jquery'), THEME_VERSION, false);
         wp_enqueue_script(MISS_PREFIX . '-jsc-charts', IRISHFRAMEWORK_JS_COMPOSER_URI . '/js/im_charts.js', array('jquery'), THEME_VERSION, true);
     }
     extract(shortcode_atts(array('desc' => '', 'percent' => '', 'bar_color' => '', 'track_color' => '', 'line_width' => '', 'bar_size' => '', 'content' => '', 'content_type' => '', 'icon' => '', 'custom_text' => '', 'el_class' => '', 'width' => '1/1', 'animation' => '', 'el_position' => ''), $atts));
     $width = wpb_translateColumnWidthToSpan($width);
     $el_position_css = $animation_css = '';
     if ($el_position != '') {
         $el_position_css = $el_position . '-column';
     }
     $animation_css = '';
     if ($animation != '') {
         $animation_css = ' im-animate-element ' . $animation . ' ';
     }
     $output = '<div class="' . $width . ' ' . $animation_css . $el_position_css . '">';
     $output .= '<div class="im-chart" style="width:' . $bar_size . 'px;height:' . $bar_size . 'px;line-height:' . $bar_size . 'px" data-percent="' . $percent . '" data-barColor="' . $bar_color . '" data-trackColor="' . $track_color . '" data-lineWidth="' . $line_width . '" data-barSize="' . $bar_size . '">';
     if ($content_type == 'icon') {
         $icon_size = floor($bar_size / 3);
         $output .= '<i style="line-height:' . $bar_size . 'px; font-size:' . $icon_size . 'px" class="' . $icon . '"></i>';
     } elseif ($content_type == 'custom_text') {
         $output .= '<span class="chart-custom-text">' . $custom_text . '</span>';
     } else {
         $output .= '<div class="chart-percent"><span>' . $percent . '</span>%</div>';
     }
     $output .= '</div>';
     $output .= '<div class="im-chart-desc">' . $desc . '</div>';
     $output .= '</div>';
     return $output;
 }
예제 #7
0
<?php

$meta_boxes = array('title' => sprintf(__('%1$s General Post Options', MISS_ADMIN_TEXTDOMAIN), THEME_NAME), 'id' => 'miss_post_meta_box', 'pages' => array('post'), 'callback' => '', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Featured Video', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('You can paste a URI of a video here to display within your post.<br /><br />Examples on how to format the links.<br /><br />YouTube:<br /><br />http://www.youtube.com/watch?v=fxs970FMYIo<br /><br />Vimeo:<br /><br />http://vimeo.com/8736190', MISS_ADMIN_TEXTDOMAIN), 'id' => '_featured_video', 'type' => 'text'), array('name' => __('Disable Featured Image', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Check this box if you'd like to disable the featured post image from appearing on the single post, by checking this box the featured post image you have defined will only show on the blog index page and the designated widgets.", MISS_ADMIN_TEXTDOMAIN), 'id' => '_disable_post_image', 'options' => array('true' => __('Check to disable the featured image on this post', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Post Icon', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Please select post icon for some theme features such as Expose Slider.", MISS_ADMIN_TEXTDOMAIN), 'id' => '_icon', 'std' => 'im-icon-image-2', 'default' => array_rand(miss_get_all_font_icons()), 'target' => 'all_icons', 'type' => 'select'), array('name' => __('Disable Social Bookmarks', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("By default a social bookmarks module will display when viewing your posts.<br /><br />You can choose to disable it here.", MISS_ADMIN_TEXTDOMAIN), 'id' => '_disable_social_bookmarks', 'options' => array('true' => __('Disable the Social Bookmarks Module', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Post Display type', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Here, you can choose specific type of display this post.', MISS_ADMIN_TEXTDOMAIN), 'id' => '_post_feature_display_type', 'default' => 'default', 'options' => array('default' => __('Display featured Image / Video', MISS_ADMIN_TEXTDOMAIN), 'additional_images' => __('Display Additional Post Images', MISS_ADMIN_TEXTDOMAIN), 'quote' => __('Display custom quote', MISS_ADMIN_TEXTDOMAIN), 'sound_cloud' => __('Display Sound Cloud', MISS_ADMIN_TEXTDOMAIN), 'image_left' => __('Display article, image left', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'radio'), array('name' => __('Featured Quote', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Type here quote that you want to highlight', MISS_ADMIN_TEXTDOMAIN), 'id' => '_custom_quote', 'type' => 'textarea'), array('name' => __('Link on Featured Sound Cloud', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('You can define sound cloud URI here. <br />Example: https://soundcloud.com/vexare/children-vexare-remix', MISS_ADMIN_TEXTDOMAIN), 'id' => '_sound_cloud', 'type' => 'text')));
return array('load' => true, 'options' => $meta_boxes);
예제 #8
0
<?php

global $wpdb;
$meta_boxes = array('title' => sprintf(__('%1$s General Page Options', MISS_ADMIN_TEXTDOMAIN), THEME_NAME), 'id' => 'miss_page_meta_box', 'pages' => array('page', 'product'), 'callback' => '', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Page Theme', MISS_ADMIN_TEXTDOMAIN), 'id' => "page_theme", 'desc' => 'Select page theme.', 'type' => 'select', 'options' => array('black' => 'Black', 'white' => 'White'), 'toggle_class' => '_page_theme', 'multiple' => false, 'default' => 'black'), array('name' => __('Post Icon', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Please select post icon for some theme features such as Expose Slider.", MISS_ADMIN_TEXTDOMAIN), 'id' => '_icon', 'std' => 'im-icon-image-2', 'default' => array_rand(miss_get_all_font_icons()), 'target' => 'all_icons', 'type' => 'icons'), array('name' => __('Header Slider', MISS_ADMIN_TEXTDOMAIN), 'toggle_class' => 'header_slider', 'type' => 'toggle_start'), array('name' => __('Slider Type', MISS_ADMIN_TEXTDOMAIN), 'id' => "slider_type", 'desc' => 'Select slider.', 'type' => 'select', 'options' => miss_slider_types(), 'toggle_class' => '_slider_type', 'multiple' => false), array('name' => __('Layer Slide', MISS_ADMIN_TEXTDOMAIN), 'std' => 'na', 'id' => "layerslider_id", 'desc' => __('Please select layer slider group.', MISS_ADMIN_TEXTDOMAIN), 'type' => 'select', 'options' => miss_ls_slides(), 'toggle_class' => '_layer_slider', 'multiple' => false), array('name' => __('Revolution Slide', MISS_ADMIN_TEXTDOMAIN), 'id' => "revslider_alias", 'desc' => __('Please select revolution slider group.', MISS_ADMIN_TEXTDOMAIN), 'type' => 'select', 'options' => miss_rev_slides(), 'toggle_class' => '_revslider', 'multiple' => false), array('type' => 'toggle_end'), array('name' => __('Expose Category', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Select post category for Expose Slider.', MISS_ADMIN_TEXTDOMAIN), 'id' => '_expose_category', 'toggle_class' => 'header_slider_expose_category', 'target' => 'cat', 'type' => 'multidropdown'), array('name' => __('Banner Options', MISS_ADMIN_TEXTDOMAIN), 'toggle_class' => 'header_slider_featured_options', 'type' => 'toggle_start'), array('name' => __('Image Size', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Edit image size.', MISS_ADMIN_TEXTDOMAIN), 'default' => array('w' => 2000, 'h' => 388), 'id' => 'featured_size', 'toggle_class' => 'header_slider_featured_width', 'type' => 'resize'), array('name' => __('Disable Banner', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Check this option to remove Banner capabilities for slider.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'featured_banner_disabled', 'toggle_class' => 'header_slider_featured_disable_banner', 'options' => array('true' => __('Check this option to use featured images as background image.', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Banner Position', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Please select banner position.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'right', 'options' => array('left' => 'Pull Left', 'right' => 'Pull Right'), 'id' => 'featured_banner_position', 'toggle_class' => 'header_slider_featured_banner_position', 'type' => 'select'), array('name' => __('Banner Size', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter custom banner size.', MISS_ADMIN_TEXTDOMAIN), 'default' => array('w' => 484, 'h' => 200), 'id' => 'featured_banner_size', 'toggle_class' => 'header_slider_featured_banner_size', 'type' => 'resize'), array('name' => __('Caption', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter main caption.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'Startup', 'id' => 'featured_caption', 'toggle_class' => 'header_slider_featured_caption', 'type' => 'text'), array('name' => __('Button Caption', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter button caption.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'Learn More', 'id' => 'featured_button_caption', 'toggle_class' => 'header_slider_featured_button_caption', 'type' => 'text'), array('name' => __('Button Link', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter button link.', MISS_ADMIN_TEXTDOMAIN), 'default' => '#', 'id' => 'featured_button_link', 'toggle_class' => 'header_slider_featured_button_link', 'type' => 'text'), array('name' => __('Banner Text', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter main text.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'Thank you for using Startup Theme.', 'id' => 'featured_content', 'toggle_class' => 'header_slider_featured_content', 'type' => 'textarea'), array('name' => __('Image', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Upload foreground image.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'featured_fg', 'toggle_class' => 'header_slider_featured_fg', 'type' => 'upload'), array('name' => __('Image Position', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Please select foreground image position.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'left', 'options' => array('left' => 'Pull Left', 'right' => 'Pull Right'), 'id' => 'featured_fg_position', 'toggle_class' => 'header_slider_featured_fg_position', 'type' => 'select'), array('name' => __('Background Image', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Upload image for background.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'featured_bg', 'toggle_class' => 'header_slider_featured_bg', 'type' => 'upload'), array('name' => __('Background Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Define background colour. By default is transparent.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'featured_bg_color', 'alpha' => true, 'default' => 'rgba(255,255,255,0)', 'toggle_class' => 'header_slider_featured_bg_color', 'type' => 'color'), array('name' => __('Caption Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Select caption colour.', MISS_ADMIN_TEXTDOMAIN), 'default' => '#ffffff', 'id' => 'featured_caption_color', 'toggle_class' => 'header_slider_featured_caption_color', 'type' => 'color'), array('name' => __('Caption Font Size', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter caption font size with pixels.', MISS_ADMIN_TEXTDOMAIN), 'default' => '55px', 'id' => 'featured_caption_font_size', 'toggle_class' => 'header_slider_featured_caption_color', 'type' => 'text'), array('name' => __('Content Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Select content colour.', MISS_ADMIN_TEXTDOMAIN), 'default' => '#ffffff', 'id' => 'featured_content_color', 'toggle_class' => 'header_slider_featured_content_color', 'type' => 'color'), array('name' => __('Content Font Size', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter content font size with pixels.', MISS_ADMIN_TEXTDOMAIN), 'default' => '21px', 'id' => 'featured_content_font_size', 'toggle_class' => 'header_slider_featured_caption_color', 'type' => 'text'), array('name' => __('Full Width', MISS_ADMIN_TEXTDOMAIN), 'id' => 'featured_size_full_width', 'desc' => __('Use image in full width.', MISS_ADMIN_TEXTDOMAIN), 'options' => array('true' => __('Check this option to disable image width resizing.', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Featured Image as Background', MISS_ADMIN_TEXTDOMAIN), 'id' => 'featured_featured_as_background', 'desc' => __('Use featured image as background.', MISS_ADMIN_TEXTDOMAIN), 'options' => array('true' => __('Check this option to use featured images as background image.', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Disable Button', MISS_ADMIN_TEXTDOMAIN), 'id' => 'featured_disable_button', 'desc' => __('This option will remove button from banner.', MISS_ADMIN_TEXTDOMAIN), 'options' => array('true' => __('Check this option to remove button from banner.', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('type' => 'toggle_end'), array('name' => __('Roadmap Options', MISS_ADMIN_TEXTDOMAIN), 'toggle_class' => 'header_slider_roadmap_options', 'type' => 'toggle_start'), array('name' => __('Office Name', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter office name or title (optional).', MISS_ADMIN_TEXTDOMAIN), 'default' => '', 'id' => '_roadmap_title', 'toggle_class' => 'header_slider_roadmap_title', 'type' => 'text'), array('name' => __('Height', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter map size.', MISS_ADMIN_TEXTDOMAIN), 'default' => '412', 'id' => '_roadmap_height', 'toggle_class' => 'header_slider_roadmap_height', 'type' => 'text'), array('name' => __('Address', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter map address.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'Hyde Park, London, United Kingdom', 'id' => '_roadmap_address', 'toggle_class' => 'header_slider_roadmap_address', 'type' => 'text'), array('name' => __('Zoom', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter map zoom level.', MISS_ADMIN_TEXTDOMAIN), 'default' => '14', 'id' => '_roadmap_zoom', 'toggle_class' => 'header_slider_roadmap_zoom', 'type' => 'text'), array('name' => __('Map Type', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Select which type of map you would like to use.', MISS_ADMIN_TEXTDOMAIN), 'id' => '_roadmap_type', 'default' => 'ROADMAP', 'options' => array('ROADMAP' => __('Roadmap', MISS_ADMIN_TEXTDOMAIN), 'SATELLITE' => __('Satellite', MISS_ADMIN_TEXTDOMAIN), 'HYBRID' => __('Hybrid', MISS_ADMIN_TEXTDOMAIN), 'TERRAIN' => __('Terrain', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'select'), array('name' => __('Marker', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Upload map placemark.', MISS_ADMIN_TEXTDOMAIN), 'id' => '_roadmap_placemarks', 'toggle_class' => 'header_slider_roadmap_placemark', 'type' => 'upload'), array('type' => 'toggle_end'), array('name' => __('Portfolio Items', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Define layout for portfolio items.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'portfolio_layout', 'options' => array('span12' => THEME_ADMIN_ASSETS_URI . '/images/columns/portfolio/1.png', 'span6' => THEME_ADMIN_ASSETS_URI . '/images/columns/portfolio/2.png', 'span4' => THEME_ADMIN_ASSETS_URI . '/images/columns/portfolio/3.png', 'span3' => THEME_ADMIN_ASSETS_URI . '/images/columns/portfolio/4.png'), 'default' => 'span3', 'toggle_class' => 'portfolio_layout', 'type' => 'layout'), array('name' => __('Portfolio Display Style', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Define Style for portfolio items.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'portfolio_display_style', 'options' => array('' => __('Default Style', MISS_ADMIN_TEXTDOMAIN), 'without_title' => __('Disable Title And Tags', MISS_ADMIN_TEXTDOMAIN), 'circle' => __('Round to the Circle (Without Title And Tags)', MISS_ADMIN_TEXTDOMAIN)), 'toggle_class' => 'portfolio_display_style', 'type' => 'select'), array('name' => __('Portfolio Category', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Select portfolio taxonomy...', MISS_ADMIN_TEXTDOMAIN), 'id' => 'portfolio_term', 'target' => 'portfolio_category', 'toggle_class' => 'portfolio_term', 'type' => 'multidropdown'), array('name' => __('Number of Items', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Define number of portfolio items per page.', MISS_ADMIN_TEXTDOMAIN), 'default' => '16', 'id' => 'portfolio_limit', 'toggle_class' => 'portfolio_limit', 'type' => 'text'), array('name' => __('Recent Updates Section', MISS_ADMIN_TEXTDOMAIN), 'toggle_class' => 'region_spotlight', 'type' => 'toggle_start'), array('name' => __('Enable Recent Updates', MISS_ADMIN_TEXTDOMAIN), 'id' => 'spotlight_enable', 'options' => array('true' => __('Check this option to enable  Updates box on this page', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Layout Type', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('You can choose between a left, right or full width layout for this block.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'spotlight_layout', 'options' => array('full_width' => THEME_ADMIN_ASSETS_URI . '/images/columns/footer/1.png', 'left_sidebar' => THEME_ADMIN_ASSETS_URI . '/images/columns/footer/fourth_threefourth.png', 'right_sidebar' => THEME_ADMIN_ASSETS_URI . '/images/columns/footer/threefourth_fourth.png'), 'default' => 'left_sidebar', 'type' => 'layout'), array('name' => __('Title', MISS_ADMIN_TEXTDOMAIN), 'id' => 'spotlight_caption', 'default' => __('Recent Updates', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter spotlight block caption.', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('Title Length', MISS_ADMIN_TEXTDOMAIN), 'id' => 'spotlight_trim_title', 'default' => '20', 'desc' => __('Trim post title in preview box', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('Body Length', MISS_ADMIN_TEXTDOMAIN), 'id' => 'spotlight_trim_content', 'default' => '40', 'desc' => __('Trim post content in preview box', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('Enable Read More Button', MISS_ADMIN_TEXTDOMAIN), 'id' => 'spotlight_readmore_enable', 'desc' => __('This option will enable Updates Read More buttons', MISS_ADMIN_TEXTDOMAIN), 'options' => array('true' => __('Check this option to enable READ MORE buttons inside spotlight elements on this page', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Updates Category', MISS_ADMIN_TEXTDOMAIN), 'id' => 'spotlight_term', 'target' => 'cat', 'toggle_class' => 'spotlight_term', 'type' => 'select'), array('name' => __('Twitter Caption', MISS_ADMIN_TEXTDOMAIN), 'id' => '_tw_caption', 'default' => __('Recent Updates', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Specify twitter block caption.', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('Twitter Username', MISS_ADMIN_TEXTDOMAIN), 'id' => '_tw_user', 'default' => __('envato', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Specify your twitter user.', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('Max Tweets', MISS_ADMIN_TEXTDOMAIN), 'id' => '_tw_limit', 'default' => __('5', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Specify number of tweets.', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('type' => 'toggle_end'), array('name' => __('News', MISS_ADMIN_TEXTDOMAIN), 'toggle_class' => 'region_news', 'type' => 'toggle_start'), array('name' => __('Enable News', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_enable', 'options' => array('true' => __('Check this option to enable news box on this page', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('News Layout', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('You can choose between a left, right or full width layout for this block.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_layout', 'options' => array('full_width' => THEME_ADMIN_ASSETS_URI . '/images/columns/footer/1.png', 'split' => THEME_ADMIN_ASSETS_URI . '/images/columns/footer/2.png'), 'default' => 'split', 'type' => 'layout'), array('name' => __('News Caption', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_caption', 'default' => __('Recent News', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter news block caption.', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('News Title Length', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_trim_title', 'default' => '40', 'desc' => __('Trim post title in preview box', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('News Body Length', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_trim_content', 'default' => '120', 'desc' => __('Trim post content in preview box', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('Number of News', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_limit', 'default' => '3', 'desc' => __('Enter number of news to display in one block', MISS_ADMIN_TEXTDOMAIN), 'type' => 'text'), array('name' => __('Date Style', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_date_style', 'default' => 'circled', 'std' => 'circled', 'desc' => 'Select date style', 'type' => 'select', 'options' => array('circled' => 'Circle', 'rounded' => 'Rounded Box', 'rectangled' => 'Rectangle')), array('name' => 'Enable Read More Button', 'id' => 'news_readmore_enable', 'desc' => 'This option will enable News Read More buttons', 'options' => array('true' => __('Check this option to enable READ MORE buttons inside news elements on this page', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('News Page', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Enter the custom news page address that you'd like use.", MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_url', 'default' => '#', 'type' => 'text'), array('name' => __('More Caption', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Enter caption for MORE button.", MISS_ADMIN_TEXTDOMAIN), 'default' => __('More News', MISS_ADMIN_TEXTDOMAIN), 'id' => 'news_more', 'type' => 'text'), array('type' => 'toggle_end'), array('name' => __('Gallery', MISS_ADMIN_TEXTDOMAIN), 'toggle_class' => 'carousel_portfolio', 'type' => 'toggle_start'), array('name' => 'Enable Gallery', 'id' => 'carousel_portfolio_enable', 'options' => array('true' => __('Check this option to enable portfolio carousel on this page', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => 'Auto Play', 'id' => 'carousel_portfolio_autoplay', 'options' => array('true' => __('Check this option to enable gallery carousel auto play on this page', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => 'Carousel Caption', 'id' => 'carousel_portfolio_caption', 'default' => 'Our Works', 'desc' => 'Enter carousel caption.', 'type' => 'text'), array('name' => 'Carousel Delay', 'id' => 'carousel_portfolio_delay', 'default' => '3000', 'desc' => 'Set carousel delay.', 'type' => 'text'), array('name' => 'Carousel Delay', 'id' => 'carousel_portfolio_delay', 'default' => '3000', 'desc' => 'Set carousel delay.', 'type' => 'text'), array('name' => __('Gallery Page', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Enter the custom gallery page address that you'd like use.", MISS_ADMIN_TEXTDOMAIN), 'id' => 'portfolio_url', 'default' => '#', 'type' => 'text'), array('name' => __('More Caption', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Enter caption for MORE button.", MISS_ADMIN_TEXTDOMAIN), 'default' => __('More', MISS_ADMIN_TEXTDOMAIN), 'id' => 'portfolio_more', 'type' => 'text'), array('type' => 'toggle_end'), array('name' => __('Footer Banner', MISS_ADMIN_TEXTDOMAIN), 'toggle_class' => 'footer_slider', 'type' => 'toggle_start'), array('name' => __('Disable Banner', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Check this option to disable footer banner.', MISS_ADMIN_TEXTDOMAIN), 'id' => 'footer_banner_disabled', 'toggle_class' => 'footer_slider', 'default' => 'true', 'options' => array('true' => __('Disable Banner', MISS_ADMIN_TEXTDOMAIN), 'false' => __('Enable Banner', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'radio'), array('name' => __('Banner Height', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Edit image size.', MISS_ADMIN_TEXTDOMAIN), 'default' => '124px', 'id' => 'footer_height', 'toggle_class' => 'footer_slider', 'type' => 'text'), array('name' => __('Caption', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter main caption.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'Startup', 'id' => 'footer_caption', 'toggle_class' => 'footer_slider', 'type' => 'text'), array('name' => __('Banner Text', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter main text.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'Thank you for using Startup Theme.', 'id' => 'footer_content', 'toggle_class' => 'footer_slider', 'type' => 'textarea'), array('name' => __('Button Caption', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter button caption.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'Learn More', 'id' => 'footer_button_caption', 'toggle_class' => 'footer_slider', 'type' => 'text'), array('name' => __('Button Link', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter button link.', MISS_ADMIN_TEXTDOMAIN), 'default' => '#', 'id' => 'footer_button_link', 'toggle_class' => 'footer_slider', 'type' => 'text'), array('name' => __('Button Position', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Please select foreground button position.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'left', 'options' => array('left' => 'Pull Left', 'right' => 'Pull Right'), 'id' => 'footer_button_position', 'toggle_class' => 'footer_slider', 'type' => 'select'), array('name' => __('Disable Button', MISS_ADMIN_TEXTDOMAIN), 'id' => 'footer_disable_button', 'desc' => __('This option may remove button from banner.', MISS_ADMIN_TEXTDOMAIN), 'options' => array('true' => __('Check this option to remove button from banner.', MISS_ADMIN_TEXTDOMAIN)), 'type' => 'checkbox'), array('name' => __('Caption Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Select caption colour.', MISS_ADMIN_TEXTDOMAIN), 'default' => '#ffffff', 'id' => 'footer_caption_color', 'toggle_class' => 'footer_slider', 'type' => 'color'), array('name' => __('Caption Font Size', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter caption font size with pixels.', MISS_ADMIN_TEXTDOMAIN), 'default' => '24px', 'id' => 'footer_caption_font_size', 'toggle_class' => 'footer_slider', 'type' => 'text'), array('name' => __('Content Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Select content colour.', MISS_ADMIN_TEXTDOMAIN), 'default' => '#ffffff', 'id' => 'footer_content_color', 'toggle_class' => 'footer_slider', 'type' => 'color'), array('name' => __('Content Font Size', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Enter content font size with pixels.', MISS_ADMIN_TEXTDOMAIN), 'default' => '14px', 'id' => 'footer_content_font_size', 'toggle_class' => 'footer_slider', 'type' => 'text'), array('name' => __('Background Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Please specify custom background colour.', MISS_ADMIN_TEXTDOMAIN), 'default' => 'rgba(255,255,255, 0)', 'id' => 'footer_bg_color', 'toggle_class' => 'footer_slider', 'type' => 'color'), array('name' => __('Background Image', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Upload background image.', MISS_ADMIN_TEXTDOMAIN), 'default' => '', 'id' => 'footer_bg_image', 'toggle_class' => 'footer_slider', 'type' => 'upload'), array('name' => __('Background Gradient Primary Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Please specify gradient primary colour.', MISS_ADMIN_TEXTDOMAIN), 'default' => '', 'id' => 'footer_bg_gradient_top', 'toggle_class' => 'footer_slider', 'type' => 'color'), array('name' => __('Background Gradient Secondary Colour', MISS_ADMIN_TEXTDOMAIN), 'desc' => __('Please specify gradient secondary colour.', MISS_ADMIN_TEXTDOMAIN), 'default' => '', 'id' => 'footer_bg_gradient_bottom', 'toggle_class' => 'footer_slider', 'type' => 'color'), array('type' => 'toggle_end')));
return array('load' => true, 'options' => $meta_boxes);
예제 #9
0
<?php

$service_box = array('title' => 'Service Options', 'id' => 'miss_service_meta_box', 'pages' => array('service'), 'callback' => '', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Post Icon', MISS_ADMIN_TEXTDOMAIN), 'desc' => __("Please select post icon for some theme features such as Expose Slider.", MISS_ADMIN_TEXTDOMAIN), 'id' => '_icon', 'std' => 'im-icon-image-2', 'default' => array_rand(miss_get_all_font_icons()), 'target' => 'all_icons', 'type' => 'select')));
return array('load' => true, 'options' => $service_box);
예제 #10
0
파일: icons.php 프로젝트: schiz/scrollax
 /**
  *
  */
 function init()
 {
     if (miss_ajax_request()) {
         if (isset($_POST['_miss_get_icons_ajax'])) {
             $icons = miss_get_all_font_icons();
             $out = '';
             foreach ($icons as $key => $option) {
                 if ($key) {
                     $out .= '<a class="im_icon_selector im_' . $key . '" href="#" title="Class: ' . $key . '" rel="' . $key . '"><i class="' . $key . '" ></i><span class="hidden">' . $key . '</span></a>';
                 } else {
                     $out .= '<a class="im-no-icon" href="#" rel="">x</a>';
                 }
             }
             $data = array('success' => 'true', 'html' => $out);
             $this->json_process($data);
             // echo $out;
             // exit;
         }
     }
     // if( ( miss_ajax_request() ) && ( isset( $_POST['miss_admin_wpnonce'] ) ) ) {
     // 	check_ajax_referer( MISS_SETTINGS . '_wpnonce', 'miss_admin_wpnonce' );
     // 	# Load skin to edit
     // 	if( isset( $_POST['_miss_skin_ajax_load'] ) ) {
     // 		if( $_POST['_miss_skin_ajax_load'] == 'create' )
     // 			$this->stylesheet = $this->default;
     // 		else
     // 			$this->stylesheet = $_POST['_miss_skin_ajax_load'];
     // 		$this->load_type = $_POST['skin_generator'];
     // 		$data = array( 'success' => 'skin_edit', 'html' => $this->options_output() );
     // 		$this->json_process( $data );
     // 	# Save new skin
     // 	} elseif( isset( $_POST['_miss_save_custom_skin'] ) ) {
     // 		if( isset( $_POST['_miss_save_manage_skin'] ) )
     // 			$this->stylesheet = $_POST['_miss_save_manage_skin'];
     // 		else
     // 			$this->stylesheet = $this->default;
     // 		$data = $this->file_write( $_POST['custom_skin_name'] );
     // 		$this->json_process( $data );
     // 	# Save existing skin
     // 	} elseif( isset( $_POST['_miss_save_existing_skin'] ) ) {
     // 		$this->stylesheet = $_POST['_miss_save_manage_skin'];
     // 		$data = $this->file_write( $_POST['_miss_save_manage_skin'], $overwrite = true );
     // 		$this->json_process( $data );
     // 	# Advanced Skin Edit
     // 	} elseif( isset( $_POST['_miss_advanced_skin_edit'] ) ) {
     // 		$this->stylesheet = $_POST['_miss_advanced_skin_edit'];
     // 		$data = array( 'success' => 'skin_advanced', 'html' => $this->advanced_edit() );
     // 		$this->json_process( $data );
     // 	# Load skins to manage
     // 	} elseif( isset( $_POST['_miss_manage_custom_skin'] ) ) {
     // 		$data = array( 'success' => 'skin_edit', 'html' => $this->manage_skin() ); //skin_manage
     // 		$this->json_process( $data );
     // 	# Activate new skin
     // 	} elseif ( isset( $_POST['_miss_activate_skin'] ) ) {
     // 		$data =  $this->activate_skin( $_POST['_miss_activate_skin'], $suppress_msg = false );
     // 		$this->json_process( $data );
     // 	# Delete skin
     // 	} elseif ( isset( $_POST['_miss_delete_custom_skin'] ) ) {
     // 		$data = $this->delete_skin( $_POST['_miss_delete_custom_skin'] );
     // 		$this->json_process( $data );
     // 	# Export skin
     // 	} elseif ( isset( $_POST['_miss_export_custom_skin'] ) ) {
     // 		$data = $this->file_export( $_POST['_miss_export_custom_skin'] );
     // 		$this->json_process( $data );
     // 	# Upload skin
     // 	} elseif ( isset( $_POST['_miss_upload_custom_skin'] ) ) {
     // 		$data = $this->unzip_skin( $_POST['_miss_upload_custom_skin'] );
     // 		$this->json_process( $data );
     // 	}
     // }
 }