Ejemplo n.º 1
0
function boston_progressbar_params()
{
    return array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Label", "boston"), "param_name" => "label", "value" => '', "description" => __("Input progress bar label.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Label Font Size", "boston"), "param_name" => "font_size", "value" => '', "description" => __("Input label font size.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Value", "boston"), "param_name" => "value", "value" => '', "description" => __("Input progress bar value. Input number only unit is in percentage.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Progress Bar Color", "boston"), "param_name" => "color", "value" => '', "description" => __("Select progress bar color.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Progress Bar Background Color", "boston"), "param_name" => "bgcolor", "value" => '', "description" => __("Select progress bar background color.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Progress Bar Label Color", "boston"), "param_name" => "label_color", "value" => '', "description" => __("Select progress bar label color.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Progress Bar Height", "boston"), "param_name" => "height", "value" => '', "description" => __("Input progress bar height.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Progress Bar Label Icon", "boston"), "param_name" => "icon", "value" => boston_awesome_icons_list(), "description" => __("Select icon for the label.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Progress Bar Border Radius", "boston"), "param_name" => "border_radius", "value" => '', "description" => __("Input progress bar border radius.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Progress Bar Style", "boston"), "param_name" => "style", "value" => array(__('Normal', 'boston') => '', __('Stripes', 'boston') => 'progress-bar-striped', __('Active Stripes', 'boston') => 'progress-bar-striped active'), "description" => __("Select progress bar style.", "boston")));
}
Ejemplo n.º 2
0
function boston_alert_params()
{
    return array(array("type" => "textarea", "holder" => "div", "class" => "", "heading" => __("Text", "boston"), "param_name" => "text", "value" => '', "description" => __("Input alert text.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Border Color", "boston"), "param_name" => "border_color", "value" => '', "description" => __("Select border color for the alert box.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Background Color Color", "boston"), "param_name" => "bg_color", "value" => '', "description" => __("Select background color of the alert box.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Text Color", "boston"), "param_name" => "font_color", "value" => '', "description" => __("Select font color for the alert box text.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Icon", "boston"), "param_name" => "icon", "value" => boston_awesome_icons_list(), "description" => __("Select icon.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Closeable", "boston"), "param_name" => "closeable", "value" => array(__('No', 'boston') => 'no', __('Yes', 'boston') => 'yes'), "description" => __("Enable or disable alert closing.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Close Icon Color", "boston"), "param_name" => "close_icon_color", "value" => '', "description" => __("Select color for the close icon.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Close Icon Color On Hover", "boston"), "param_name" => "close_icon_color_hvr", "value" => '', "description" => __("Select color for the close icon on hover.", "boston")));
}
Ejemplo n.º 3
0
function boston_icons_list($value)
{
    $icons_list = boston_awesome_icons_list();
    $select_data = '';
    foreach ($icons_list as $key => $label) {
        $select_data .= '<option value="' . esc_attr($key) . '" ' . ($value == $key ? 'selected="selected"' : '') . '>' . $label . '</option>';
    }
    return $select_data;
}
Ejemplo n.º 4
0
function boston_button_params()
{
    return array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button Text", "boston"), "param_name" => "text", "value" => '', "description" => __("Input button text.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button Link", "boston"), "param_name" => "link", "value" => '', "description" => __("Input button link.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Select Window", "boston"), "param_name" => "target", "value" => array(__('Same Window', 'boston') => '_self', __('New Window', 'boston') => '_blank'), "description" => __("Select window where to open the link.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Background Color", "boston"), "param_name" => "bg_color", "value" => '', "description" => __("Select button background color.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Background Color On Hover", "boston"), "param_name" => "bg_color_hvr", "value" => '', "description" => __("Select button background color on hover.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button Border Radius", "boston"), "param_name" => "border_radius", "value" => '', "description" => __("Input button border radius. For example 5px or 5ox 9px 0px 0px or 50% or 50% 50% 20% 10%.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Select Icon", "boston"), "param_name" => "icon", "value" => boston_awesome_icons_list(), "description" => __("Select an icon you want to display.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Font Color", "boston"), "param_name" => "font_color", "value" => '', "description" => __("Select button font color.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Font Color On Hover", "boston"), "param_name" => "font_color_hvr", "value" => '', "description" => __("Select button font color on hover.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Button Size", "boston"), "param_name" => "size", "value" => array(__('Normal', 'boston') => '', __('Medium', 'boston') => 'medium', __('Large', 'boston') => 'large'), "description" => __("Select button size.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Button Align", "boston"), "param_name" => "align", "value" => array(__('Left', 'boston') => 'left', __('Center', 'boston') => 'center', __('Right', 'boston') => 'right'), "description" => __("Select button align.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Select Button Width", "boston"), "param_name" => "btn_width", "value" => array(__('Normal', 'boston') => 'normal', __('Full Width', 'boston') => 'full'), "description" => __("Select button alwidthign.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Display Inline", "boston"), "param_name" => "inline", "value" => array(__('No', 'boston') => 'no', __('Yes', 'boston') => 'yes'), "description" => __("Display button inline.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button Margins", "boston"), "param_name" => "margin", "value" => '', "description" => __("Add button margins.", "boston")));
}
Ejemplo n.º 5
0
function boston_icon_params()
{
    return array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Select Icon", "boston"), "param_name" => "icon", "value" => boston_awesome_icons_list(), "description" => __("Select an icon you want to display.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Icon Color", "boston"), "param_name" => "color", "value" => '', "description" => __("Select color of the icon.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Icon Size", "boston"), "param_name" => "size", "value" => '', "description" => __("Input size of the icon.", "boston")));
}