本文整理汇总了PHP中wpdreamsType类的典型用法代码示例。如果您正苦于以下问题:PHP wpdreamsType类的具体用法?PHP wpdreamsType怎么用?PHP wpdreamsType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wpdreamsType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getType
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>";
}
开发者ID:hikaram,项目名称:wee,代码行数:27,代码来源:themechooser.class_1.php
示例2: getType
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>";
}
开发者ID:hikaram,项目名称:wee,代码行数:28,代码来源:customfselect.class.php
示例3: getType
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>";
}
开发者ID:crazyyy,项目名称:octagram,代码行数:33,代码来源:gradient.class.php
示例4: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:27,代码来源:draggable.class.php
示例5: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:29,代码来源:customposttypes.class.php
示例6: getType
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>";
}
开发者ID:Aqro,项目名称:NewDWM,代码行数:7,代码来源:four.class.php
示例7: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:29,代码来源:userrole-select.class.php
示例8: getType
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>";
}
开发者ID:crazyyy,项目名称:octagram,代码行数:26,代码来源:animations.class.php
示例9: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:30,代码来源:customfields.class.php
示例10: getType
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>";
}
开发者ID:hikaram,项目名称:wee,代码行数:29,代码来源:pageparents.class.php
示例11: getType
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>";
}
开发者ID:crazyyy,项目名称:octagram,代码行数:8,代码来源:borderradius.class.php
示例12: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:9,代码来源:boxshadow-mini.class.php
示例13: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:9,代码来源:textarea-base64.class.php
示例14: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:9,代码来源:textarea-isparam.class.php
示例15: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:9,代码来源:textshadow-mini.class.php
示例16: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:10,代码来源:onoff.class.php
示例17: getType
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>";
}
开发者ID:Aqro,项目名称:NewDWM,代码行数:10,代码来源:border.class.php
示例18: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:10,代码来源:textsmall.class.php
示例19: getType
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>";
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:11,代码来源:imagesettings.class.php
示例20: getType
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('d
|
请发表评论