當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Su_Data::borders方法代碼示例

本文整理匯總了PHP中Su_Data::borders方法的典型用法代碼示例。如果您正苦於以下問題:PHP Su_Data::borders方法的具體用法?PHP Su_Data::borders怎麽用?PHP Su_Data::borders使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Su_Data的用法示例。


在下文中一共展示了Su_Data::borders方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: border

 public static function border($id, $field)
 {
     $defaults = $field['default'] === 'none' ? array('0', 'solid', '#000000') : explode(' ', str_replace('px', '', $field['default']));
     $borders = Su_Tools::select(array('options' => Su_Data::borders(), 'class' => 'su-generator-bp-style', 'selected' => $defaults[1]));
     $return = '<div class="su-generator-border-picker"><span class="su-generator-border-picker-field"><input type="number" min="-1000" max="1000" step="1" value="' . $defaults[0] . '" class="su-generator-bp-width" /><small>' . __('Border width', 'shortcodes-ultimate') . ' (px)</small></span><span class="su-generator-border-picker-field">' . $borders . '<small>' . __('Border style', 'shortcodes-ultimate') . '</small></span><span class="su-generator-border-picker-field su-generator-border-picker-color"><span class="su-generator-border-picker-color-wheel"></span><input type="text" value="' . $defaults[2] . '" class="su-generator-border-picker-color-value" /><small>' . __('Border color', 'shortcodes-ultimate') . '</small></span><input type="hidden" name="' . $id . '" value="' . esc_attr($field['default']) . '" id="su-generator-attr-' . $id . '" class="su-generator-attr" /></div>';
     return $return;
 }
開發者ID:mrakotomizao,項目名稱:azuretest,代碼行數:7,代碼來源:generator-views.php

示例2: border

 public static function border($id, $field)
 {
     $defaults = $field['default'] === 'none' ? array('0', 'solid', '#000000') : explode(' ', str_replace('px', '', $field['default']));
     $borders = Su_Tools::select(array('options' => Su_Data::borders(), 'class' => 'su-generator-bp-style', 'selected' => $defaults[1]));
     $return = '<div class="su-generator-border-picker"><span class="su-generator-border-picker-field"><input type="number" min="-1000" max="1000" step="1" value="' . $defaults[0] . '" class="su-generator-bp-width" /><small>' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BORDER_WIDTH') . ' (px)</small></span><span class="su-generator-border-picker-field">' . $borders . '<small>' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BORDER_STYLE') . '</small></span><span class="su-generator-border-picker-field su-generator-border-picker-color"><span class="su-generator-border-picker-color-wheel"></span><input type="text" value="' . $defaults[2] . '" class="su-generator-border-picker-color-value" /><small>' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BORDER_COLOR') . '</small></span><input type="hidden" name="' . $id . '" value="' . htmlentities($field['default']) . '" id="su-generator-attr-' . $id . '" class="su-generator-attr" /></div>';
     return $return;
 }
開發者ID:jhener79,項目名稱:vlakc,代碼行數:7,代碼來源:generator-views.php


注:本文中的Su_Data::borders方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。