当前位置: 首页>>代码示例>>PHP>>正文


PHP wpdreamsType类代码示例

本文整理汇总了PHP中wpdreamsType的典型用法代码示例。如果您正苦于以下问题:PHP wpdreamsType类的具体用法?PHP wpdreamsType怎么用?PHP wpdreamsType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了wpdreamsType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>&#176;";
            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>&nbsp;</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


注:本文中的wpdreamsType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。