function getType() { parent::getType(); echo "\n <div class='wpdreamsThemeChooser'>\n <fieldset style='background:#FAFAFA;padding:0;'>\n <label style='color:#333' for='wpdreamsThemeChooser_'" . self::$_instancenumber . "'>" . $this->label . "</label>"; $decodedData = json_decode($this->data); echo "<select id='wpdreamsThemeChooser_" . self::$_instancenumber . "'>\n <option value=''>Select</option>"; foreach ($decodedData as $name => $theme) { if ($theme === false) { echo "<option value='" . $name . "' disabled>" . $name . "</option>"; } else { echo "<option value='" . $name . "'>" . $name . "</option>"; } } echo "</select>"; foreach ($decodedData as $name => $theme) { if ($theme === false) { continue; } echo "<div name='" . $name . "' style='display:none;'>"; /*foreach ($theme as $pname => $param) { echo "<p paramname='" . $pname . "'>" . $param . "</p>"; }*/ echo json_encode($theme); echo "</div>"; } echo "\n <span></span>\n <p class='descMsg'>Changes not take effect on the frontend until you save them.</p>\n </fieldset>\n\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "<div class='wpdreamsCustomSelect'>"; echo "<label for='wpdreamscustomselect_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<select isparam=1 class='wpdreamscustomselect' id='wpdreamscustomselect_" . self::$_instancenumber . "' name='" . $this->name . "'>"; foreach ($this->selects as $sel) { if ($sel['value'] . "" == $this->selected . "") { echo "<option value='" . $sel['value'] . "' selected='selected'>" . $sel['option'] . "</option>"; } else { echo "<option value='" . $sel['value'] . "'>" . $sel['option'] . "</option>"; } } $types = $this->get_custom_fields_list(); if (count($types) > 0) { echo "<option value='c_f' disabled>Custom Fields</option>"; foreach ($types as $sel) { if ($sel['value'] . "" == $this->selected . "") { echo "<option value='" . $sel['value'] . "' selected='selected'>" . $sel['option'] . "</option>"; } else { echo "<option value='" . $sel['value'] . "'>" . $sel['option'] . "</option>"; } } } echo "</select>"; echo "<div class='triggerer'></div>\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "<div class='wpdreamsGradient'>"; if ($this->label != "") { echo "<label for='wpdreamsgradient_" . self::$_instancenumber . "'>" . $this->label . "</label>"; } ?> <select id='<?php echo $this->name; ?> _gradex' name='grad_type' class='grad_type'> <option value='1' <?php echo $this->grad_type == 1 ? 'selected' : ''; ?> >Linear</option> <option value='0' <?php echo $this->grad_type == 0 ? 'selected' : ''; ?> >Radial</option> </select> <?php echo "<input isparam=1 type='hidden' class='gradient' id='" . $this->name . "' id='wpdreamsgradient_" . self::$_instancenumber . "' name='" . $this->name . "' id='wpdreamsgradient_" . self::$_instancenumber . "' value='" . $this->data . "' />"; new wpdreamsColorPickerDummy('leftcolor_' . self::$_instancenumber, "", $this->leftcolor); new wpdreamsColorPickerDummy('rightcolor_' . self::$_instancenumber, "", $this->rightcolor); echo "<div class='grad_ex'></div><br>"; echo "<div class='dslider' id='dslider" . self::$_instancenumber . "'></div>"; echo "<div class='ddisplay'>\n <div class='dbg' id='dbg" . self::$_instancenumber . "'></div>\n </div>"; echo "<div id='dtxt" . self::$_instancenumber . "' class='dtxt'>" . $this->rotation . "</div>°"; echo "\n <script>\n jQuery(document).ready(function(){\n jQuery('#dslider" . self::$_instancenumber . "').slider({\n orientation: 'horizontal',\n range: 'min',\n max: 360,\n value: " . $this->rotation . ",\n step: 5,\n change: function() {\n jQuery('#" . $this->name . "_gradex').change();\n },\n slide: function(e, ui) {\n jQuery('#dtxt" . self::$_instancenumber . "').html(ui.value);\n jQuery('#" . $this->name . "_gradex').change();\n }\n });\n \n jQuery('#dslider" . self::$_instancenumber . "').change();\n //jQuery('#" . $this->name . "_gradex').change(); \n });\n </script> \n "; echo "<div class='triggerer'></div>\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "\r\n <div class='wpdreamsDraggable' id='wpdreamsDraggable-" . self::$_instancenumber . "'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; if (isset($this->data['description'])) { echo "<p class='descMsg'>" . $this->data['description'] . "</p>"; } echo '<div class="sortablecontainer" id="sortablecontainer' . self::$_instancenumber . '"> <ul id="sortable' . self::$_instancenumber . '" class="connectedSortable">'; foreach ($this->selects as $k => $v) { if (!in_array($k, $this->selected)) { echo '<li class="ui-state-default" key="' . $k . '">' . $v . '</li>'; } } echo "</ul></div>"; echo '<div class="sortablecontainer"><ul id="sortable_conn' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->selected != null && is_array($this->selected)) { foreach ($this->selected as $k => $v) { echo '<li class="ui-state-default" key="' . $v . '">' . $this->selects[$v] . '</li>'; } } echo "</ul></div>"; echo "\r\n <input isparam=1 type='hidden' value='" . $this->data['value'] . "' name='" . $this->name . "'>"; echo "\r\n <input type='hidden' value='wpdreamsDraggable' name='classname-" . $this->name . "'>"; echo "\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); $this->processData(); $this->types = get_post_types(array('_builtin' => false)); echo "\r\n <div class='wpdreamsCustomPostTypes' id='wpdreamsCustomPostTypes-" . self::$_instancenumber . "'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; echo '<div class="sortablecontainer" id="sortablecontainer' . self::$_instancenumber . '"> <div class="arrow-all-left"></div> <div class="arrow-all-right"></div> <p>Available post types</p><ul id="sortable' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->types != null && is_array($this->types)) { foreach ($this->types as $k => $v) { if ($this->selected == null || !in_array($v, $this->selected)) { echo '<li class="ui-state-default">' . $k . '</li>'; } } } echo "</ul></div>"; echo '<div class="sortablecontainer"><p>Drag here the post types you want to use!</p><ul id="sortable_conn' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->selected != null && is_array($this->selected)) { foreach ($this->selected as $k => $v) { echo '<li class="ui-state-default">' . $v . '</li>'; } } echo "</ul></div>"; echo "\r\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "\r\n <input type='hidden' value='wpdreamsCustomPostTypes' name='classname-" . $this->name . "'>"; echo "\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "\r\n <div class='wpdreamsFour'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; echo "\r\n <label>Top</label><input type='text' class='threedigit' name='topleft' value='" . $this->top . "' />\r\n <label>Bottom</label><input type='text' class='threedigit' name='bottomright' value='" . $this->bottom . "' />\r\n <label>Right</label><input type='text' class='threedigit' name='topright' value='" . $this->right . "' />\r\n <label>Left</label><input type='text' class='threedigit' name='bottomleft' value='" . $this->left . "' />\r\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>\r\n <div class='triggerer'></div>\r\n <p class='descMsg'>{$this->desc}</p>\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); $this->processData(); $this->types = $this->getEditableRoles(); echo "\r\n <div class='wpdreamsUserRoleSelect' id='wpdreamsUserRoleSelect-" . self::$_instancenumber . "'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; echo '<div class="sortablecontainer" id="sortablecontainer' . self::$_instancenumber . '"> <div class="arrow-all-left"></div> <div class="arrow-all-right"></div> <p>Available user roles</p><ul id="sortable' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->types != null && is_array($this->types)) { foreach ($this->types as $_role => $_data) { if ($this->selected == null || !in_array($_role, $this->selected)) { echo '<li class="ui-state-default">' . $_role . '</li>'; } } } echo "</ul></div>"; echo '<div class="sortablecontainer"><p>Drag here the user roles you want to exclude!</p><ul id="sortable_conn' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->selected != null && is_array($this->selected)) { foreach ($this->selected as $k => $v) { echo '<li class="ui-state-default">' . $v . '</li>'; } } echo "</ul></div>"; echo "\r\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "\r\n <input type='hidden' value='wpdreamsUserRoleSelect' name='classname-" . $this->name . "'>"; echo "\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "<div class='wpdreamsAnimations'>"; echo "<label for='wpdreamsAnimations_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<select isparam=1 class='wpdreamsanimationselect' id='wpdreamsanimationselect_" . self::$_instancenumber . "' name='" . $this->name . "'>"; foreach ($this->animations as $key => $animation) { if (strpos($key, 'groupstart') !== false) { echo "<optgroup label='" . $animation . "'>"; continue; } if (strpos($key, 'groupend') !== false) { echo "</optgroup>"; continue; } if ($animation == $this->selected) { echo "<option value='" . $key . "' selected='selected'>" . $animation . "</option>"; } else { echo "<option value='" . $key . "'>" . $animation . "</option>"; } } echo "</select>"; echo "<span>Hi there!</span>"; echo "<div class='triggerer'></div>\n </div>"; }
function getType() { parent::getType(); global $wpdb; $this->processData(); $this->types = $wpdb->get_results("SELECT * FROM " . $wpdb->postmeta . " GROUP BY meta_key LIMIT 1500", ARRAY_A); echo "\r\n <div class='wpdreamsCustomFields' id='wpdreamsCustomFields-" . self::$_instancenumber . "'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; echo '<div class="sortablecontainer" id="sortablecontainer' . self::$_instancenumber . '"> <div class="arrow-all-left"></div> <div class="arrow-all-right"></div> <p>Available public custom fields types</p><ul id="sortable' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->types != null && is_array($this->types)) { foreach ($this->types as $k => $v) { if ($this->selected == null || !in_array($v['meta_key'], $this->selected)) { echo '<li class="ui-state-default">' . $v['meta_key'] . '</li>'; } } } echo "</ul></div>"; echo '<div class="sortablecontainer"><p>Drag here the custom fields you want to use!</p><ul id="sortable_conn' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->selected != null && is_array($this->selected)) { foreach ($this->selected as $k => $v) { echo '<li class="ui-state-default">' . $v . '</li>'; } } echo "</ul></div>"; echo "\r\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "\r\n <input type='hidden' value='wpdreamsCustomFields' name='classname-" . $this->name . "'>"; echo "\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); $this->processData(); $this->types = $this->get_pages_witch_children_list(); echo "\n <div class='wpdreamsPageParents' id='wpdreamsPageParents-" . self::$_instancenumber . "'>\n <fieldset>\n <legend>" . $this->label . "</legend>"; echo '<div class="sortablecontainer" id="sortablecontainer' . self::$_instancenumber . '"> <div class="arrow-all-left"></div> <div class="arrow-all-right"></div> <p>Available parent pages</p><ul id="sortable' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->types != null && is_array($this->types)) { foreach ($this->types as $k => $v) { if ($this->selected == null || !in_array($k, $this->selected)) { echo '<li class="ui-state-default" bid="' . $k . '">' . $v . '</li>'; } } } echo "</ul></div>"; echo '<div class="sortablecontainer"><p> </p><ul id="sortable_conn' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->selected != null && is_array($this->selected)) { foreach ($this->selected as $k) { echo '<li class="ui-state-default" bid="' . $k . '">' . $this->types[$k] . '</li>'; } } echo "</ul></div>"; echo "\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "\n <input type='hidden' value='wpdreamsPageParents' name='classname-" . $this->name . "'>"; echo "\n </fieldset>\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "\n <div class='wpdreamsBorderRadius'>\n <fieldset>\n <legend>" . $this->label . "</legend>"; echo "\n <label>Top Left</label><input type='text' class='twodigit' name='topleft' value='" . $this->topleft . "' />px\n <label>Top Right</label><input type='text' class='twodigit' name='topright' value='" . $this->topright . "' />px\n <label>Bottom Right</label><input type='text' class='twodigit' name='bottomright' value='" . $this->bottomright . "' />px\n <label>Bottom Left</label><input type='text' class='twodigit' name='bottomleft' value='" . $this->bottomleft . "' />px<br><br>\n "; echo "\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>\n <div class='triggerer'></div>\n </fieldset>\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "\r\n <div class='wpdreamsBoxShadow mini'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; echo "\r\n <label>Inset</label><select class='smaller' name='_xx_inset_xx_'>\r\n <option value='' " . ($this->inset == '' ? 'selected="selected"' : '') . ">None</option>\r\n <option value='inset' " . ($this->inset == 'inset' ? 'selected="selected"' : '') . ">Inset</option>\r\n </select>\r\n <br><label>Vertical offset</label><input type='text' class='twodigit' name='_xx_hlength_xx_' value='" . $this->hlength . "' />px\r\n <br><label>Horizontal offset</label><input type='text' class='twodigit' name='_xx_vlength_xx_' value='" . $this->vlength . "' />px\r\n <br><label>Blur radius</label><input type='text' class='twodigit' name='_xx_blurradius_xx_' value='" . $this->blurradius . "' />px\r\n <br><label>Spread</label><input type='text' class='twodigit' name='_xx_spread_xx_' value='" . $this->spread . "' />px<br>\r\n "; new wpdreamsColorPickerDummy("_xx_color_xx_", "Shadow color", isset($this->color) ? $this->color : "#000000"); echo "\r\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>\r\n <div class='triggerer'></div>\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); $this->pdata = ""; $this->processData(); echo "<label style='vertical-align: top;' for='wpdreamstextarea_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<input type='hidden' name='base64-" . $this->name . "' id='base64-" . $this->name . "' />"; echo "<textarea id='wpdreamstextarea_" . self::$_instancenumber . "' name='" . $this->name . "'>" . stripcslashes($this->pdata) . "</textarea>"; }
function getType() { parent::getType(); echo "<div class='wpdreamsTextareaIsParam'>"; echo "<label style='vertical-align: top;' for='wpdreamstextarea_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<textarea isparam=1 id='wpdreamstextarea_" . self::$_instancenumber . "' name='" . $this->name . "'>" . stripcslashes($this->data) . "</textarea>"; echo "<div class='triggerer'></div>"; echo "</div>"; }
function getType() { parent::getType(); $this->processData(); echo "\r\n <div class='wpdreamsTextShadow mini'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; echo "\r\n <label>Vertical offset</label><input type='text' class='twodigit' name='_xx_hlength_xx_' value='" . $this->hlength . "' />px\r\n <br><label>Horizontal offset</label><input type='text' class='twodigit' name='_xx_vlength_xx_' value='" . $this->vlength . "' />px\r\n <br><label>Blur radius</label><input type='text' class='twodigit' name='_xx_blurradius_xx_' value='" . $this->blurradius . "' />px\r\n <br>\r\n "; new wpdreamsColorPickerDummy("_xx_color_xx_", "Shadow color", isset($this->color) ? $this->color : "#000000"); echo "\r\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>\r\n <div class='triggerer'></div>\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); echo "<div class='wpdreamsOnOff" . ($this->data == 1 ? " active" : "") . "'>"; echo "<label for='wpdreamstext_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "<div class='wpdreamsOnOffInner'></div>"; echo "<div class='triggerer'></div>"; echo "</div>"; }
function getType() { parent::getType(); $this->processData(); echo "\r\n <div class='wpdreamsBorder'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; echo "\r\n <label>Border Style</label><select class='smaller' name='_xx_style_xx_'>\r\n <option value='none' " . ($this->style == 'none' ? 'selected="selected"' : '') . ">None</option>\r\n <option value='hidden' " . ($this->style == 'hidden' ? 'selected="selected"' : '') . ">Hidden</option>\r\n <option value='dotted' " . ($this->style == 'dotted' ? 'selected="selected"' : '') . ">Dotted</option>\r\n <option value='dashed' " . ($this->style == 'dashed' ? 'selected="selected"' : '') . ">Dashed</option>\r\n <option value='solid' " . ($this->style == 'solid' ? 'selected="selected"' : '') . ">Solid</option>\r\n <option value='double' " . ($this->style == 'double' ? 'selected="selected"' : '') . ">Double</option>\r\n <option value='groove' " . ($this->style == 'groove' ? 'selected="selected"' : '') . ">Groove</option>\r\n <option value='groove' " . ($this->style == 'groove' ? 'selected="selected"' : '') . ">Ridge</option>\r\n <option value='inset' " . ($this->style == 'inset' ? 'selected="selected"' : '') . ">Inset</option>\r\n <option value='outset' " . ($this->style == 'outset' ? 'selected="selected"' : '') . ">Outset</option>\r\n </select>\r\n <label>Border Width</label><input type='text' class='twodigit' name='_xx_width_xx_' value='" . $this->width . "' />px"; new wpdreamsColorPickerDummy("_xx_color_xx_", "Border color", isset($this->color) ? $this->color : "#000000"); echo "\r\n <fieldset>\r\n <legend>Border Radius:</legend>\r\n <label>Top-Left</label><input type='text' class='twodigit' name='_xx_topleft_xx_' value='" . $this->topleft . "' />px\r\n <label>Top-Right</label><input type='text' class='twodigit' name='_xx_topright_xx_' value='" . $this->topright . "' />px\r\n <label>Bottom-Right</label><input type='text' class='twodigit' name='_xx_bottomright_xx_' value='" . $this->bottomright . "' />px\r\n <label>Bottom-Left</label><input type='text' class='twodigit' name='_xx_bottomleft_xx_' value='" . $this->bottomleft . "' />px\r\n </fieldset>\r\n "; echo "\r\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>\r\n <div class='triggerer'></div>\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); echo "<div class='wpdreamsTextSmall'>"; if ($this->label != "") { echo "<label for='wpdreamstextsmall_" . self::$_instancenumber . "'>" . $this->label . "</label>"; } echo "<input isparam=1 class='small' type='text' id='wpdreamstextsmall_" . self::$_instancenumber . "' name='" . $this->name . "' value='" . $this->data . "' />"; echo "\r\n <div class='triggerer'></div>\r\n </div>"; }
function getType() { parent::getType(); echo "<div class='wpdreamsYesNo" . ($this->data == 1 ? " active" : "") . "'>"; echo "<label for='wpdreamstext_" . self::$_instancenumber . "'>" . $this->label . "</label>"; //echo "<a class='wpdreamsyesno" . (($this->data == 1) ? " yes" : " no") . "' id='wpdreamsyesno_" . self::$_instancenumber . "' name='" . $this->name . "_yesno'>" . (($this->data == 1) ? "YES" : "NO") . "</a>"; echo "<input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "<div class='wpdreamsYesNoInner'></div>"; echo "<div class='triggerer'></div>"; echo "</div>"; }
function getType() { parent::getType(); $this->processData(); echo "\r\n <div class='wpdreamsImageSettings'>\r\n <fieldset>\r\n <legend>" . $this->label . "</legend>"; new wpdreamsYesNo("show", "Show Images", $this->show); echo "<br>"; new wpdreamsYesNo("cache", "Cache Images", $this->cache); echo "\r\n <br>\r\n <label>Use custom field as image</label><select class='smaller' name='usecustom'>\r\n <option value='-11' " . ($this->usecustom == -11 ? 'selected="selected"' : '') . ">Don't use</option>\r\n <option value='-1' " . ($this->usecustom == -1 ? 'selected="selected"' : '') . ">Highest Priority</option>\r\n <option value='0' " . ($this->usecustom == 0 ? 'selected="selected"' : '') . ">High Priority</option>\r\n <option value='1' " . ($this->usecustom == 1 ? 'selected="selected"' : '') . ">Medium Priority</option>\r\n <option value='2' " . ($this->usecustom == 2 ? 'selected="selected"' : '') . ">Low Priority</option>\r\n </select><br>\r\n <label>Custom field name</label><input param=0 type='text' value='" . $this->customname . "' name='customname' /><br>\r\n <label>Use post featured image</label><select class='smaller' name='featured'>\r\n <option value='-11' " . ($this->featured == -11 ? 'selected="selected"' : '') . ">Don't use</option>\r\n <option value='-1' " . ($this->featured == -1 ? 'selected="selected"' : '') . ">Highest Priority</option>\r\n <option value='0' " . ($this->featured == 0 ? 'selected="selected"' : '') . ">High Priority</option>\r\n <option value='1' " . ($this->featured == 1 ? 'selected="selected"' : '') . ">Medium Priority</option>\r\n <option value='2' " . ($this->featured == 2 ? 'selected="selected"' : '') . ">Low Priority</option>\r\n </select><br>\r\n <label>Search for images in post content</label><select class='smaller' name='content'>\r\n <option value='-11' " . ($this->content == -11 ? 'selected="selected"' : '') . ">Don't use</option>\r\n <option value='-1' " . ($this->content == -1 ? 'selected="selected"' : '') . ">Highest Priority</option>\r\n <option value='0' " . ($this->content == 0 ? 'selected="selected"' : '') . ">High Priority</option>\r\n <option value='1' " . ($this->content == 1 ? 'selected="selected"' : '') . ">Medium Priority</option>\r\n <option value='2' " . ($this->content == 2 ? 'selected="selected"' : '') . ">Low Priority</option>\r\n </select><br>\r\n <label>Search for images in post excerpt</label><select class='smaller' name='excerpt'>\r\n <option value='-11' " . ($this->excerpt == -11 ? 'selected="selected"' : '') . ">Don't use</option>\r\n <option value='-1' " . ($this->excerpt == -1 ? 'selected="selected"' : '') . ">Highest Priority</option>\r\n <option value='0' " . ($this->excerpt == 0 ? 'selected="selected"' : '') . ">High Priority</option>\r\n <option value='1' " . ($this->excerpt == 1 ? 'selected="selected"' : '') . ">Medium Priority</option>\r\n <option value='2' " . ($this->excerpt == 2 ? 'selected="selected"' : '') . ">Low Priority</option>\r\n </select><br>\r\n <label>Use the </label><select class='smaller' name='imagenum'>\r\n <option value='1' " . ($this->imagenum == 1 ? 'selected="selected"' : '') . ">1. found image</option>\r\n <option value='2' " . ($this->imagenum == 2 ? 'selected="selected"' : '') . ">2. found image</option>\r\n <option value='3' " . ($this->imagenum == 3 ? 'selected="selected"' : '') . ">3. found image</option>\r\n </select><br>\r\n <label>Image Size:</label>\r\n <span style='color:#888;font-size:0.9em'>Width </span><input class='threedigit' param=0 type='text' value='" . $this->width . "' name='width' /><span style='color:#888;font-size:0.9em;margin-right:10px;'> px</span>\r\n <span style='color:#888;font-size:0.9em'>Height </span><input class='threedigit' param=0 type='text' value='" . $this->height . "' name='height' /><span style='color:#888;font-size:0.9em;margin-right:10px;'> px</span>\r\n "; echo "\r\n <input type='hidden' param=1 value='" . $this->data . "' name='" . $this->name . "'>\r\n <input type='hidden' cname=1 value='wpdreamsImageSettings' name='classname-" . $this->name . "'>\r\n <div class='triggerer'></div>\r\n </fieldset>\r\n </div>"; }
function getType() { parent::getType(); $this->processData(); $inst = self::$_instancenumber; echo "\r\n <div class='labeldrag' id='labeldrag_" . $inst . "' style='height:" . ($this->cheight + 90) . "px;'>\r\n <div class='inner' style='overflow:auto;width:400px;height:" . $this->cheight . "px;'>\r\n <script>\r\n jQuery(document).ready(function() { \r\n var drag = jQuery('#" . $this->name . "_" . $inst . "').draggable({ containment: 'parent', refreshPositions: true, appendTo: 'body' });\r\n jQuery('#" . $this->name . "_" . $inst . "').bind( 'dragstop', function(event, ui) {\r\n var pos = drag.position();\r\n var ratio = " . $this->ratio . ";\r\n var hidden = jQuery('#labelposition_hidden_" . $inst . "');\r\n var duration = jQuery('input[name=\"induration_" . $this->name . "\"]')[0];\r\n var direction= jQuery('input[name=\"indirection_" . $this->name . "\"]').prev();\r\n jQuery(hidden).val('duration:'+jQuery(duration).val()+';direction:'+jQuery(direction).val()+';position:'+((pos.top+5)/ratio)+'||'+((pos.left+5)/ratio)+';');\r\n });\r\n jQuery('#labeldrag_" . $inst . " input').keyup(function(){\r\n jQuery('#" . $this->name . "_" . $inst . "').trigger('dragstop');\r\n });\r\n jQuery('#labeldrag_" . $inst . " select').change(function(){\r\n jQuery('#" . $this->name . "_" . $inst . "').trigger('dragstop');\r\n }); \r\n });\r\n </script>\r\n <div class='dragme' style='top:" . ($this->top * $this->ratio - 5) . "px;left:" . ($this->left * $this->ratio - 5) . "px;' id='" . $this->name . "_" . $inst . "'>\r\n </div>\r\n </div>\r\n "; echo "<div style='margin-top:" . ($this->cheight + 10) . "px;'>"; new wpdreamsSelect("indirection_" . $this->name, "Animation direction", $this->_direction); new wpdreamsText("induration_" . $this->name, "Animation duration (ms)", $this->duration); echo "</div>"; echo "\r\n </div>\r\n <div style='clear:both'></div>\r\n <input type='hidden' id='labelposition_hidden_" . $inst . "' name='" . $this->name . "' value='" . $this->data . "' />\r\n "; echo "\r\n \r\n "; }
function getType() { parent::getType(); $this->processData(); echo "\n <div class='wpdreamsSortable'>"; echo '<div class="sortablecontainer" style="float:right;"><p>' . $this->label . '</p><ul id="sortable' . self::$_instancenumber . '" class="connectedSortable">'; if ($this->types != null && is_array($this->types)) { foreach ($this->types as $k => $v) { echo '<li class="ui-state-default">' . $v . '</li>'; } } echo "\n </ul></div>\n <input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "\n <input type='hidden' value='wpdreamsSortable' name='classname-" . $this->name . "'>"; ?> <script type='text/javascript'> (function ($) { $(document).ready(function () { $("#sortable<?php echo self::$_instancenumber; ?> , #sortable_conn<?php echo self::$_instancenumber; ?> ").sortable({ }, { update: function (event, ui) { parent = $(ui.item).parent(); while (!parent.hasClass('wpdreamsSortable')) { parent = $(parent).parent(); } var items = $('ul[id*=sortable] li', parent); var hidden = $('input[name=<?php echo $this->name; ?> ]', parent); var val = ""; items.each(function () { val += "|" + $(this).html(); }); val = val.substring(1); hidden.val(val); } }).disableSelection(); }); }(jQuery)); </script> </div> <div class="clear"></div> <?php }
function getType() { $this->name = $this->name; parent::getType(); $this->data = wpdreams_admin_hex2rgb($this->data); echo "<div class='wpdreamsColorPicker'>"; if ($this->label != "") { echo "<label for='wpdreamscolorpicker_" . self::$_instancenumber . "'>" . $this->label . "</label>"; } echo "<input isparam=1 type='text' class='color' id='" . $this->name . "' id='wpdreamscolorpicker_" . self::$_instancenumber . "' name='" . $this->name . "' id='wpdreamscolorpicker_" . self::$_instancenumber . "' value='" . $this->data . "' />"; //echo "<input type='button' class='wpdreamscolorpicker button-secondary' value='Select Color'>"; //echo "<div class='' style='z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;'></div>"; echo "<div class='triggerer'></div>\r\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "<div class='wpdreamsImageRadio'>"; echo "<span class='radioimage'>" . $this->label . "</span>"; foreach ($this->selects as $radio) { $radio = trim($radio); echo "\n <img num='" . $i . "' src='" . plugins_url() . $radio . "' class='radioimage" . ($this->selected == $radio ? ' selected' : '') . "'/>\n "; } echo "<input isparam=1 type='hidden' class='realvalue' value='" . $this->selected . "' name='" . $this->name . "'>"; echo "<input type='hidden' value='wpdreamsImageRadio' name='classname-" . $this->name . "'>"; echo "<div class='triggerer'></div>\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "\r\n <div class='wpdreamsNumericUnit'>"; echo "<label>" . $this->label . "</label><input type='text' class='twodigit' name='numeric' value='" . $this->numeric . "' />"; echo "<div class='wpdreams-updown'><div class='wpdreams-uparrow'></div><div class='wpdreams-downarrow'></div></div>"; echo "<select name='units'>"; foreach ($this->units as $key => $value) { echo "<option value='" . $key . "' " . ($key == $this->selected ? 'selected=selected' : '') . ">" . $value . "</option>"; } echo "</select>"; echo "\r\n <input isparam=1 type='hidden' value='" . $this->data['value'] . "' name='" . $this->name . "'>\r\n <div class='triggerer'></div>\r\n </div>"; }
function getType() { parent::getType(); echo "<div>"; if ($this->data != "") { echo "<img class='preview' rel='#overlay_" . self::$_instancenumber . "' src=" . $this->data . " />"; } else { echo "<img class='preview' style='display:none;' rel='#overlay_" . self::$_instancenumber . "' />"; } echo "<label for='wpdreamsUpload_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<input type='text' class='wpdreamsUpload' id='wpdreamsUpload_" . self::$_instancenumber . "' name='" . $this->name . "' value='" . $this->data . "' />"; echo "<input class='wpdreamsUpload_button'type='button' value='Upload Image' />"; echo "<br />Enter an URL or upload an image!"; echo "<div class='overlay' id='overlay_" . self::$_instancenumber . "'><img src=" . $this->data . " /></div>"; echo "</div>"; }
function getType() { parent::getType(); $this->languages = array('ab' => 'Abkhazian', 'aa' => 'Afar', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'bm' => 'Bambara', 'ba' => 'Bashkir', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', 'bh' => 'Bihari', 'bi' => 'Bislama', 'nb' => 'Bokmal', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan', 'km' => 'Central Khmer', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'ny' => 'Chewa', 'zh' => 'Chinese', 'cu' => 'Church Slavic', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', 'hr' => 'Croatian', 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Dhivehi', 'nl' => 'Dutch', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijian', 'fi' => 'Finnish', 'fr' => 'French', 'ff' => 'Fulah', 'gd' => 'Gaelic', 'gl' => 'Galician', 'lg' => 'Ganda', 'ka' => 'Georgian', 'de' => 'German', 'ki' => 'Gikuyu', 'el' => 'Greek', 'kl' => 'Greenlandic', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'is' => 'Icelandic', 'io' => 'Ido', 'ig' => 'Igbo', 'id' => 'Indonesian', 'ia' => 'Interlingua', 'iu' => 'Inuktitut', 'ik' => 'Inupiaq', 'ga' => 'Irish', 'it' => 'Italian', 'ja' => 'Japanese', 'jv' => 'Javanese', 'kn' => 'Kannada', 'kr' => 'Kanuri', 'ks' => 'Kashmiri', 'kk' => 'Kazakh', 'rw' => 'Kinyarwanda', 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'ku' => 'Kurdish', 'kj' => 'Kwanyama', 'ky' => 'Kyrgyz', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'lb' => 'Letzeburgesch', 'li' => 'Limburgan', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lu' => 'Luba-Katanga', 'mk' => 'Macedonian', 'mg' => 'Malagasy', 'ms' => 'Malay', 'ml' => 'Malayalam', 'mt' => 'Maltese', 'gv' => 'Manx', 'mi' => 'Maori', 'mr' => 'Marathi', 'mh' => 'Marshallese', 'ro' => 'Moldavian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'nd' => 'North Ndebele', 'se' => 'Northern Sami', 'no' => 'Norwegian', 'nn' => 'Norwegian Nynorsk', 'ie' => 'Occidental', 'oc' => 'Occitan', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian', 'pi' => 'Pali', 'fa' => 'Persian', 'pl' => 'Polish', 'pt' => 'Portuguese', 'pa' => 'Punjabi', 'ps' => 'Pushto', 'qu' => 'Quechua', 'ro' => 'Romanian', 'rm' => 'Romansh', 'rn' => 'Rundi', 'ru' => 'Russian', 'sm' => 'Samoan', 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sc' => 'Sardinian', 'sr' => 'Serbian', 'sn' => 'Shona', 'ii' => 'Sichuan Yi', 'sd' => 'Sindhi', 'si' => 'Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'so' => 'Somali', 'st' => 'Southern Sotho', 'nr' => 'South Ndebele', 'es' => 'Spanish', 'su' => 'Sundanese', 'sw' => 'Swahili', 'ss' => 'Swati', 'sv' => 'Swedish', 'tl' => 'Tagalog', 'ty' => 'Tahitian', 'tg' => 'Tajik', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga', 'ts' => 'Tsonga', 'tn' => 'Tswana', 'tr' => 'Turkish', 'tk' => 'Turkmen', 'tw' => 'Twi', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'ug' => 'Uyghur', 'uz' => 'Uzbek', 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'VolapA1k', 'wa' => 'Walloon', 'cy' => 'Welsh', 'fy' => 'Western Frisian', 'wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang', 'zu' => 'Zulu'); echo "<div class='wpdreamsLanguageSelect'>"; echo "<label for='wpdreamslanguageselect_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<select class='wpdreamsselect' id='wpdreamsselect_" . self::$_instancenumber . "' name='" . $this->name . "'>"; foreach ($this->languages as $k => $v) { if ($k == $this->data) { echo "<option value='" . $k . "' selected='selected'>" . $v . "</option>"; } else { echo "<option value='" . $k . "'>" . $v . "</option>"; } } echo "</select>"; echo "</div>"; }
function getType() { parent::getType(); echo "\n <div class='wpdreamsThemeChooser'>\n <fieldset style='background:#eee'>\n <label style='color:#333' for='wpdreamsThemeChooser_'" . self::$_instancenumber . "'>" . $this->label . "</label>"; $decodedData = json_decode($this->data); echo "<select id='wpdreamsThemeChooser_" . self::$_instancenumber . "'>\n <option value=''>Select</option>"; foreach ($decodedData as $name => $theme) { echo "<option value='" . $name . "'>" . $name . "</option>"; } echo "</select>"; foreach ($decodedData as $name => $theme) { echo "<div name='" . $name . "' style='display:none;'>"; foreach ($theme as $pname => $param) { echo "<p paramname='" . $pname . "'>" . $param . "</p>"; } echo "</div>"; } echo "\n <span></span></fieldset>\n </div>"; }
function getType() { parent::getType(); $this->processData(); wp_enqueue_style("wpdreams_loaders", ASP_URL . 'css/style.loaders.css', array(), ASP_CURR_VER_STRING); echo "<div class='wpdreamsLoaderSelect'>"; echo "<span class='loaderselect'>" . $this->label . "</span>"; $i = 1; foreach (wpdreamsLoaderSelect::$loaders as $loader => $div_count) { $loader = trim($loader); $selected = $this->selected == $loader; echo "<div sel = '" . $loader . "' class='proloading asp-select-loader" . ($selected ? '-selected' : '') . "'>\n <div class='asp_loader'>\n <div class='asp_loader-inner asp_" . $loader . "'>\n "; for ($i = 0; $i < $div_count; $i++) { echo "\n <div></div>\n "; } echo "</div>\n </div>\n </div>"; } echo "<input isparam=1 type='hidden' class='realvalue' value='" . $this->selected . "' name='" . $this->name . "'>"; //echo "<input type='hidden' value='wpdreamsImageRadio' name='classname-" . $this->name . "'>"; echo "<div class='triggerer'></div>\n </div>"; }
function getType() { parent::getType(); $this->processData(); echo "<div class='wpdreamsSelect'>"; echo "<label for='wpdreamsselect_" . self::$_instancenumber . "'>" . $this->label . "</label>"; echo "<select class='wpdreamsselect' id='wpdreamsselect_" . self::$_instancenumber . "' name='" . $this->name . "_select'>"; foreach ($this->selects as $sel) { preg_match('/(?<option>.*?)\\|(?<value>.*)/', $sel, $matches); $matches['value'] = trim($matches['value']); $matches['option'] = trim($matches['option']); if ($matches['value'] == $this->selected) { echo "<option value='" . $matches['value'] . "' selected='selected'>" . $matches['option'] . "</option>"; } else { echo "<option value='" . $matches['value'] . "'>" . $matches['option'] . "</option>"; } } echo "</select>"; echo "<input isparam=1 type='hidden' value='" . $this->data . "' name='" . $this->name . "'>"; echo "<input type='hidden' value='" . $this->selected . "' name='selected-" . $this->name . "'>"; echo "<div class='triggerer'></div>\n </div>"; }