本文整理汇总了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;
}
示例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;
}