本文整理汇总了PHP中Su_Data类的典型用法代码示例。如果您正苦于以下问题:PHP Su_Data类的具体用法?PHP Su_Data怎么用?PHP Su_Data使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Su_Data类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: register_shortcodes
/**
* Register shortcodes
* @filename Generating shortcode file path for include shortcode file
* @shortcode_tag Generating shortcode tag for use in class
* @shortcode_class Making class name for call the shortcode
* @su_add_shortcode() Registering shortcode
*/
function register_shortcodes()
{
// Prepare compatibility mode prefix
$prefix = su_cmpt();
// Template shortcode verible
$get_tmpl_shortcode = JPATH_ROOT . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . BDT_SU_CTMPL;
foreach ((array) Su_Data::shortcodes() as $id => $data) {
$template_shortcode = $get_tmpl_shortcode . DIRECTORY_SEPARATOR . 'html' . DIRECTORY_SEPARATOR . 'plg_bdthemes_shortcodes' . DIRECTORY_SEPARATOR . 'shortcodes' . DIRECTORY_SEPARATOR . $id . DIRECTORY_SEPARATOR . 'shortcode.php';
$core_shortcode = BDT_SU_ROOT . DIRECTORY_SEPARATOR . 'shortcodes' . DIRECTORY_SEPARATOR . $id . DIRECTORY_SEPARATOR . 'shortcode.php';
if (file_exists($template_shortcode)) {
require_once $template_shortcode;
} elseif (file_exists($core_shortcode)) {
require_once $core_shortcode;
}
if (isset($data['function']) && is_callable($data['function'])) {
$func = $data['function'];
} elseif (is_callable(array('Su_Shortcode_' . $id, $id))) {
$func = array('Su_Shortcode_' . $id, $id);
} elseif (is_callable(array('Su_Shortcode_' . $id, 'su_' . $id))) {
$func = array('Su_Shortcode_' . $id, 'su_' . $id);
} else {
continue;
}
// Register shortcode
su_add_shortcode($prefix . $id, $func);
}
}
开发者ID:jhener79,项目名称:vlakc,代码行数:34,代码来源:addshortcodes.php
示例2: settings
/**
* Process AJAX request
*/
public static function settings()
{
// Request queried shortcode
$shortcode = Su_Data::shortcodes($_REQUEST['shortcode']);
$sueid = $_REQUEST["e_name"];
// Prepare actions
$actions = array('insert' => '<a href="javascript:void(0);" class="btn btn-primary su-generator-insert" data-sueid="' . $sueid . '"><i class="fa fa-check"></i> ' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_INSERT_SORTCODE') . '</a>', 'preview' => '<a href="javascript:void(0);" class="btn su-generator-toggle-preview"><i class="fa fa-eye"></i> ' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIVE_PREVIEW') . '</a>', 'showcode' => '<a href="javascript:void(0);" class="btn su-generator-shortcode-preview"><i class="fa fa-code"></i> ' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SHOW_CODE') . '</a>');
// Shortcode header
$return = '<div id="su-generator-breadcrumbs">';
$return .= '<a href="javascript:void(0);" class="su-generator-home" title="' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ALL_SHORTCODE_DESC') . '">' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ALL_SHORTCODE') . '</a> → <span>' . $shortcode['name'] . '</span> <small class="alignright">' . $shortcode['desc'] . '</small><div class="su-generator-clear"></div>';
$return .= '</div>';
// Shortcode has atts
if (count($shortcode['atts']) && $shortcode['atts']) {
// Loop through shortcode parameters
foreach ($shortcode['atts'] as $attr_name => $attr_info) {
if (!empty($attr_info["child"]) && is_array($attr_info["child"]) && count($attr_info["child"]) > 0) {
$return .= '<div class="su-generator-field-group">';
}
$return .= self::GetOptionByAttr($attr_name, $attr_info);
if (!empty($attr_info["child"]) && is_array($attr_info["child"]) && count($attr_info["child"]) > 0) {
foreach ($attr_info["child"] as $attr_name_child => $attr_info_child) {
$return .= self::GetOptionByAttr($attr_name_child, $attr_info_child);
}
$return .= '</div>';
}
}
}
// Single shortcode (not closed)
if ($shortcode['type'] == 'single') {
$return .= '<input type="hidden" name="su-generator-content" id="su-generator-content" value="false" />';
} else {
$return .= '<div class="su-generator-field-container"><h5>' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CONTENT') . '</h5><textarea name="su-generator-content" id="su-generator-content" rows="5">' . esc_attr(str_replace(array('%prefix_', '__'), su_cmpt(), $shortcode['content'])) . '</textarea></div>';
}
$return .= '<div id="su-generator-preview"></div>';
$return .= '<div class="su-generator-actions su-generator-clearfix">' . implode(' ', array_values($actions));
$return .= '<div data-shortcode="gmap" class="su-generator-presets alignright">
<a class="button button-large su-gp-button btn btn-success" href="javascript:void(0);"><i class="fa fa-bars"></i> ' . JText::_("PLG_SYSTEM_BDTHEMES_SHORTCODES_PRESETS") . '</a>
<div class="su-gp-popup" style="display: none;">
<div class="su-gp-head">
<a class="btn btn-small btn-success su-gp-new" href="javascript:void(0);">' . JText::_("PLG_SYSTEM_BDTHEMES_SHORTCODES_PRESETS_DESC") . '</a>
</div>
<div class="su-gp-list">
<b>' . JText::_("PLG_SYSTEM_BDTHEMES_SHORTCODES_PRESETS_NOT_FOUND") . '</b>
</div>
</div>
</div>
</div>';
echo $return;
exit;
}
开发者ID:jhener79,项目名称:vlakc,代码行数:53,代码来源:generator.php
示例3: register
/**
* Register shortcodes
*/
public static function register()
{
// Prepare compatibility mode prefix
$prefix = su_cmpt();
// Loop through shortcodes
foreach ((array) Su_Data::shortcodes() as $id => $data) {
if (isset($data['function']) && is_callable($data['function'])) {
$func = $data['function'];
} elseif (is_callable(array('Su_Shortcodes', $id))) {
$func = array('Su_Shortcodes', $id);
} elseif (is_callable(array('Su_Shortcodes', 'su_' . $id))) {
$func = array('Su_Shortcodes', 'su_' . $id);
} else {
continue;
}
// Register shortcode
add_shortcode($prefix . $id, $func);
}
// Register [media] manually // 3.x
add_shortcode($prefix . 'media', array('Su_Shortcodes', 'media'));
}
开发者ID:Anciela,项目名称:anciela.info,代码行数:24,代码来源:load.php
示例4: cheatsheet
public static function cheatsheet($field, $config)
{
// Prepare print button
$print = '<div><a href="javascript:;" id="su-cheatsheet-print" class="su-cheatsheet-switch button button-primary button-large">' . __('Printable version', 'shortcodes-ultimate') . '</a><div id="su-cheatsheet-print-head"><h1>' . __('Shortcodes Ultimate', 'shortcodes-ultimate') . ': ' . __('Cheatsheet', 'shortcodes-ultimate') . '</h1><a href="javascript:;" class="su-cheatsheet-switch">← ' . __('Back to Dashboard', 'shortcodes-ultimate') . '</a></div></div>';
// Prepare table array
$table = array();
// Table start
$table[] = '<table><tr><th style="width:20%;">' . __('Shortcode', 'shortcodes-ultimate') . '</th><th style="width:50%">' . __('Attributes', 'shortcodes-ultimate') . '</th><th style="width:30%">' . __('Example code', 'shortcodes-ultimate') . '</th></tr>';
// Loop through shortcodes
foreach ((array) Su_Data::shortcodes() as $name => $shortcode) {
// Prepare vars
$icon = isset($shortcode['icon']) ? $shortcode['icon'] : 'puzzle-piece';
$shortcode['name'] = isset($shortcode['name']) ? $shortcode['name'] : $name;
$attributes = array();
$example = array();
$icons = 'icon: music, icon: envelope … <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">' . __('full list', 'shortcodes-ultimate') . '</a>';
// Loop through attributes
if (is_array($shortcode['atts'])) {
foreach ($shortcode['atts'] as $id => $data) {
// Prepare default value
$default = isset($data['default']) && $data['default'] !== '' ? '<p><em>' . __('Default value', 'shortcodes-ultimate') . ':</em> ' . $data['default'] . '</p>' : '';
// Check type is set
if (empty($data['type'])) {
$data['type'] = 'text';
}
// Switch attribute types
switch ($data['type']) {
// Select
case 'select':
$value = implode(', ', array_keys($data['values']));
break;
// Slider and number
// Slider and number
case 'slider':
case 'number':
$value = $data['min'] . '…' . $data['max'];
break;
// Bool
// Bool
case 'bool':
$value = 'yes | no';
break;
// Icon
// Icon
case 'icon':
$value = $icons;
break;
// Color
// Color
case 'color':
$value = __('#RGB and rgba() colors');
break;
// Default value
// Default value
default:
$value = $data['default'];
break;
}
// Check empty value
if ($value === '') {
$value = __('Any text value', 'shortcodes-ultimate');
}
// Extra CSS class
if ($id === 'class') {
$value = __('Any custom CSS classes', 'shortcodes-ultimate');
}
// Add attribute
$attributes[] = '<div class="su-shortcode-attribute"><strong>' . $data['name'] . ' <em>– ' . $id . '</em></strong><p><em>' . __('Possible values', 'shortcodes-ultimate') . ':</em> ' . $value . '</p>' . $default . '</div>';
// Add attribute to the example code
$example[] = $id . '="' . $data['default'] . '"';
}
}
// Prepare example code
$example = '[%prefix_' . $name . ' ' . implode(' ', $example) . ']';
// Prepare content value
if (empty($shortcode['content'])) {
$shortcode['content'] = '';
}
// Add wrapping code
if ($shortcode['type'] === 'wrap') {
$example .= esc_textarea($shortcode['content']) . '[/%prefix_' . $name . ']';
}
// Change compatibility prefix
$example = str_replace(array('%prefix_', '__'), su_cmpt(), $example);
// Shortcode
$table[] = '<td>' . '<span class="su-shortcode-icon">' . Su_Tools::icon($icon) . '</span>' . $shortcode['name'] . '<br/><em class="su-shortcode-desc">' . $shortcode['desc'] . '</em></td>';
// Attributes
$table[] = '<td>' . implode('', $attributes) . '</td>';
// Example code
$table[] = '<td><code contenteditable="true">' . $example . '</code></td></tr>';
}
// Table end
$table[] = '</table>';
// Query assets
su_query_asset('css', array('font-awesome', 'su-cheatsheet'));
su_query_asset('js', array('jquery', 'su-options-page'));
// Return output
return '<div id="su-cheatsheet-screen">' . $print . implode('', $table) . '</div>';
}
开发者ID:virendrayadav,项目名称:bigperlus,代码行数:99,代码来源:admin-views.php
示例5: settings
/**
* Process AJAX request
*/
public static function settings()
{
self::access();
// Param check
if (empty($_REQUEST['shortcode'])) {
wp_die(__('Shortcode not specified', 'su'));
}
// Get cache
$output = get_transient('su/generator/settings/' . sanitize_text_field($_REQUEST['shortcode']));
if ($output && SU_ENABLE_CACHE) {
echo $output;
} else {
// Request queried shortcode
$shortcode = Su_Data::shortcodes(sanitize_key($_REQUEST['shortcode']));
// Prepare skip-if-default option
$skip = get_option('su_option_skip') === 'on' ? ' su-generator-skip' : ' su-generator-skip';
// Prepare actions
$actions = apply_filters('su/generator/actions', array('insert' => '<a href="javascript:void(0);" class="button button-primary button-large su-generator-insert"><i class="fa fa-check"></i> ' . __('Insert shortcode', 'su') . '</a>', 'preview' => '<a href="javascript:void(0);" class="button button-large su-generator-toggle-preview"><i class="fa fa-eye"></i> ' . __('Live preview', 'su') . '</a>'));
// Shortcode header
$return = '<div id="su-generator-breadcrumbs">';
$return .= apply_filters('su/generator/breadcrumbs', '<a href="javascript:void(0);" class="su-generator-home" title="' . __('Click to return to the shortcodes list', 'su') . '">' . __('All shortcodes', 'su') . '</a> → <span>' . $shortcode['name'] . '</span> <small class="alignright">' . $shortcode['desc'] . '</small><div class="su-generator-clear"></div>');
$return .= '</div>';
// Shortcode has atts
if (count($shortcode['atts']) && $shortcode['atts']) {
// Loop through shortcode parameters
foreach ($shortcode['atts'] as $attr_name => $attr_info) {
// Prepare default value
$default = (string) isset($attr_info['default']) ? $attr_info['default'] : '';
$attr_info['name'] = isset($attr_info['name']) ? $attr_info['name'] : $attr_name;
$return .= '<div class="su-generator-attr-container' . $skip . '" data-default="' . esc_attr($default) . '">';
$return .= '<h5>' . $attr_info['name'] . '</h5>';
// Create field types
if (!isset($attr_info['type']) && isset($attr_info['values']) && is_array($attr_info['values']) && count($attr_info['values'])) {
$attr_info['type'] = 'select';
} elseif (!isset($attr_info['type'])) {
$attr_info['type'] = 'text';
}
if (is_callable(array('Su_Generator_Views', $attr_info['type']))) {
$return .= call_user_func(array('Su_Generator_Views', $attr_info['type']), $attr_name, $attr_info);
} elseif (isset($attr_info['callback']) && is_callable($attr_info['callback'])) {
$return .= call_user_func($attr_info['callback'], $attr_name, $attr_info);
}
if (isset($attr_info['desc'])) {
$return .= '<div class="su-generator-attr-desc">' . str_replace('<b%value>', '<b class="su-generator-set-value" title="' . __('Click to set this value', 'su') . '">', $attr_info['desc']) . '</div>';
}
$return .= '</div>';
}
}
// Single shortcode (not closed)
if ($shortcode['type'] == 'single') {
$return .= '<input type="hidden" name="su-generator-content" id="su-generator-content" value="false" />';
} else {
$return .= '<div class="su-generator-attr-container"><h5>' . __('Content', 'su') . '</h5><textarea name="su-generator-content" id="su-generator-content" rows="3">' . esc_attr(str_replace('%prefix_', su_cmpt(), $shortcode['content'])) . '</textarea></div>';
}
$return .= '<div id="su-generator-preview"></div>';
$return .= '<div class="su-generator-actions su-generator-clearfix">' . implode(' ', array_values($actions)) . '</div>';
set_transient('su/generator/settings/' . sanitize_text_field($_REQUEST['shortcode']), $return, 2 * DAY_IN_SECONDS);
echo $return;
}
exit;
}
开发者ID:Air-Craft,项目名称:air-craft-www,代码行数:64,代码来源:generator.php
示例6: 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
示例7: icons
public static function icons()
{
$icons = array();
if (is_callable(array('Su_Data', 'icons'))) {
foreach ((array) Su_Data::icons() as $icon) {
$icons[] = '<i class="fa fa-' . $icon . '" title="' . $icon . '"></i>';
}
}
return implode('', $icons);
}
开发者ID:Air-Craft,项目名称:air-craft-www,代码行数:10,代码来源:tools.php
示例8: get_config
static function get_config()
{
return array('name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CONTENT_SLIDER'), 'type' => 'wrap', 'group' => 'extra gallery', 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CONTENT_SLIDER_DESC'), 'icon' => 'desktop', 'function' => array('Shortcodes_Ultimate_Extra_Shortcodes', 'content_slider'), 'atts' => array('style' => array('type' => 'select', 'default' => 'default', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_STYLE'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_STYLE_DESC'), 'values' => array('default' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DEFAULT'), 'dark' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DARK'), 'light' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHT'))), 'transitionin' => array('type' => 'select', 'values' => array_combine(Su_Data::animations_in(), Su_Data::animations_in()), 'default' => 'fadeIn', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TRANSITION_IN'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TRANSITION_IN_DESC'), 'child' => array('transitionout' => array('type' => 'select', 'values' => array_combine(Su_Data::animations_out(), Su_Data::animations_out()), 'default' => 'fadeOut', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TRANSITION_OUT'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TRANSITION_OUT_DESC')))), 'margin' => array('type' => 'slider', 'min' => 0, 'max' => 80, 'step' => 5, 'default' => 10, 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_MARGIN'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CAROUSEL_MARGIN_DESC')), 'arrows' => array('type' => 'bool', 'default' => 'yes', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ARROWS'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ARROWS_DESC'), 'child' => array('arrow_position' => array('type' => 'select', 'values' => array('arrow-default' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DEFAULT'), 'arrow-top-left' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TOP_LEFT'), 'arrow-top-right' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TOP_RIGHT'), 'arrow-bottom-left' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BOTTOM_LEFT'), 'arrow-bottom-right' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BOTTOM_RIGHT')), 'default' => 'arrow-default', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ARROW_POSITION'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ARROW_POSITION_DESC')))), 'pagination' => array('type' => 'bool', 'default' => 'no', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PAGINATION'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PAGINATION_DESC'), 'child' => array('autoplay' => array('type' => 'bool', 'default' => 'yes', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_AUTOPLAY'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_AUTOPLAY_DESC')), 'autoheight' => array('type' => 'bool', 'default' => 'no', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_AUTOHEIGHT'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_AUTOHEIGHT_DESC')))), 'hoverpause' => array('type' => 'bool', 'default' => 'yes', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_HOVERPAUSE'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_HOVERPAUSE_DESC'), 'child' => array('lazyload' => array('type' => 'bool', 'default' => 'no', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LAZYLOAD'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LAZYLOAD_DESC')), 'loop' => array('type' => 'bool', 'default' => 'yes', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LOOP'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LOOP_DESC')))), 'speed' => array('type' => 'slider', 'min' => 0.1, 'max' => 15, 'step' => 0.2, 'default' => 0.6, 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPEED'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPEED_DESC'), 'child' => array('delay' => array('type' => 'slider', 'min' => 1, 'max' => 10, 'step' => 1, 'default' => 4, 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DELAY'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DELAY_DESC')))), 'scroll_reveal' => array('default' => '', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL_DESC')), 'class' => array('default' => '', 'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS'), 'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS_DESC'))), 'content' => sprintf('[__content_slide] %1$s1 [/__content_slide]%2$s[__content_slide] %1$s2 [/__content_slide]%2$s[__content_slide] %1$s3 [/__content_slide]', 'Slide content', "\n"));
}
开发者ID:jhener79,项目名称:vlakc,代码行数:4,代码来源:config.php
示例9: 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
示例10: foreach
</div>
<div id="su-generator-filter">
<strong><?php
echo JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FILTER_DESC');
?>
</strong>
<?php
foreach ((array) Su_Data::groups() as $group => $label) {
echo '<a href="#" data-filter="' . $group . '">' . $label . '</a>';
}
?>
</div>
<div id="su-generator-choices" class="su-generator-clearfix">
<?php
// Choices loop
foreach ((array) Su_Data::shortcodes() as $name => $shortcode) {
$icon = isset($shortcode['icon']) ? $shortcode['icon'] : 'puzzle-piece';
$badge = isset($shortcode['badge']) ? '<strong class="sug-badge badge-' . strtolower($shortcode['badge']) . '">' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODE_' . $shortcode['badge']) . '</strong>' : '';
$shortcode['name'] = isset($shortcode['name']) ? $shortcode['name'] : $name;
$visible = isset($shortcode['visible']) ? $shortcode['visible'] : true;
if ($visible == true) {
echo '<span data-name="' . $shortcode['name'] . '" data-shortcode="' . $name . '" title="' . $shortcode['desc'] . '" data-desc="' . $shortcode['desc'] . '" data-group="' . $shortcode['group'] . '">' . Su_Tools::icon($icon) . $shortcode['name'] . $badge . '</span>' . "\n";
}
}
?>
</div>
</div>
<input type="hidden" name="su-generator-selected" id="su-generator-selected" value="" />
<input type="hidden" name="su-generator-url" id="su-generator-url" value="" />
<input type="hidden" name="su-compatibility-mode-prefix" id="su-compatibility-mode-prefix" value="<?php
echo su_compatibility_mode_prefix();
开发者ID:jhener79,项目名称:vlakc,代码行数:31,代码来源:default.php
示例11:
function __construct()
{
parent::__construct();
}
开发者ID:jhener79,项目名称:vlakc,代码行数:4,代码来源:config.php
注:本文中的Su_Data类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论