本文整理汇总了PHP中FusionCore_Plugin类的典型用法代码示例。如果您正苦于以下问题:PHP FusionCore_Plugin类的具体用法?PHP FusionCore_Plugin怎么用?PHP FusionCore_Plugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FusionCore_Plugin类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: attr
function attr()
{
$attr = array();
$attr['class'] = 'fusion-reading-box-container reading-box-container-' . $this->tagline_box_counter;
if (self::$args['animation_type']) {
$animations = FusionCore_Plugin::animations(array('type' => self::$args['animation_type'], 'direction' => self::$args['animation_direction'], 'speed' => self::$args['animation_speed'], 'offset' => self::$args['animation_offset']));
$attr = array_merge($attr, $animations);
$attr['class'] .= ' ' . $attr['animation_class'];
unset($attr['animation_class']);
}
$attr['style'] = '';
if (self::$args['margin_top'] || self::$args['margin_top'] === '0') {
$attr['style'] .= sprintf('margin-top:%s;', Avada_Sanitize::get_value_with_unit(self::$args['margin_top']));
}
if (self::$args['margin_bottom'] || self::$args['margin_bottom'] === '0') {
$attr['style'] .= sprintf('margin-bottom:%s;', Avada_Sanitize::get_value_with_unit(self::$args['margin_bottom']));
}
if (self::$args['class']) {
$attr['class'] .= ' ' . self::$args['class'];
}
if (self::$args['id']) {
$attr['id'] = self::$args['id'];
}
return $attr;
}
开发者ID:agiper,项目名称:wordpress,代码行数:25,代码来源:class-tagline.php
示例2: icon_attr
function icon_attr()
{
$attr = array();
$attr['class'] = sprintf('section-separator-icon icon fa %s', FusionCore_Plugin::font_awesome_name_handler(self::$args['icon']));
$attr['style'] = sprintf('color:%s;', self::$args['icon_color']);
return $attr;
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:7,代码来源:class-section-separator.php
示例3: render
/**
* Render the shortcode
*
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
*
* @return string HTML output
*/
public function render($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'background_color' => Avada()->settings->get('countdown_background_color'), 'background_image' => Avada()->settings->get('countdown_background_image'), 'background_position' => Avada()->settings->get('countdown_background_position'), 'background_repeat' => Avada()->settings->get('countdown_background_repeat'), 'border_radius' => Avada()->settings->get('countdown_border_radius'), 'counter_box_color' => Avada()->settings->get('countdown_counter_box_color'), 'counter_text_color' => Avada()->settings->get('countdown_counter_text_color'), 'countdown_end' => '2000-01-01 00:00:00', 'dash_titles' => 'short', 'heading_text' => '', 'heading_text_color' => Avada()->settings->get('countdown_heading_text_color'), 'link_text' => '', 'link_text_color' => Avada()->settings->get('countdown_link_text_color'), 'link_target' => Avada()->settings->get('countdown_link_target'), 'link_url' => '', 'show_weeks' => Avada()->settings->get('countdown_show_weeks'), 'subheading_text' => '', 'subheading_text_color' => Avada()->settings->get('countdown_subheading_text_color')), $args);
extract($defaults);
self::$args = $defaults;
$html = sprintf('<div %s>', FusionCore_Plugin::attributes('countdown-shortcode'));
$html .= self::get_styles();
$html .= sprintf('<div %s>', FusionCore_Plugin::attributes('fusion-countdown-heading-wrapper'));
$html .= sprintf('<div %s>%s</div>', FusionCore_Plugin::attributes('fusion-countdown-subheading'), $subheading_text);
$html .= sprintf('<div %s>%s</div>', FusionCore_Plugin::attributes('fusion-countdown-heading'), $heading_text);
$html .= '</div>';
$html .= sprintf('<div %s>', FusionCore_Plugin::attributes('countdown-shortcode-counter-wrapper'));
$dashes = array(array('show' => $show_weeks, 'class' => 'weeks', 'shortname' => __('Weeks', 'fusion-core'), 'longname' => __('Weeks', 'fusion-core')), array('show' => 'yes', 'class' => 'days', 'shortname' => __('Days', 'fusion-core'), 'longname' => __('Days', 'fusion-core')), array('show' => 'yes', 'class' => 'hours', 'shortname' => __('Hrs', 'fusion-core'), 'longname' => __('Hours', 'fusion-core')), array('show' => 'yes', 'class' => 'minutes', 'shortname' => __('Min', 'fusion-core'), 'longname' => __('Minutes', 'fusion-core')), array('show' => 'yes', 'class' => 'seconds', 'shortname' => __('Sec', 'fusion-core'), 'longname' => __('Seconds', 'fusion-core')));
$dash_class = '';
if (!self::$args['counter_box_color'] || self::$args['counter_box_color'] == 'transparent') {
$dash_class = ' fusion-no-bg';
}
for ($i = 0; $i < count($dashes); $i++) {
if ($dashes[$i]['show'] == 'yes') {
$html .= sprintf('<div class="fusion-dash-wrapper %s"><div class="fusion-dash fusion-dash-%s">%s<div class="fusion-digit">0</div><div class="fusion-digit">0</div><div class="fusion-dash-title">%s</div></div></div>', $dash_class, $dashes[$i]['class'], $dashes[$i]['class'] == 'days' ? '<div class="fusion-first-digit fusion-digit">0</div>' : '', $dashes[$i][$dash_titles . 'name']);
}
}
$html .= '</div>';
$html .= sprintf('<div %s>', FusionCore_Plugin::attributes('fusion-countdown-link-wrapper'));
$html .= sprintf('<a %s>%s</a>', FusionCore_Plugin::attributes('countdown-shortcode-link'), $link_text);
$html .= '</div>';
$html .= do_shortcode($content);
$html .= '</div>';
$this->countdown_counter++;
return $html;
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:39,代码来源:class-countdown.php
示例4: wrapper_attr
function wrapper_attr()
{
$attr = array();
$attr['class'] = 'fusion-column-wrapper';
$attr['style'] = '';
if (self::$args['background_image']) {
$attr['style'] .= sprintf('background:url(%s) %s %s %s;', self::$args['background_image'], self::$args['background_position'], self::$args['background_repeat'], self::$args['background_color']);
if (self::$args['background_repeat'] == 'no-repeat') {
$attr['style'] .= '-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;';
}
} elseif (self::$args['background_color']) {
$attr['style'] .= sprintf('background-color:%s;', self::$args['background_color']);
}
if (self::$args['border_color'] && self::$args['border_size'] && self::$args['border_style']) {
if (FusionCore_Plugin::is_transparent_color(self::$args['border_color'])) {
$attr['style'] .= sprintf('outline:%s %s %s;', self::$args['border_size'], self::$args['border_style'], self::$args['border_color']);
$attr['style'] .= sprintf('outline-offset: -%s;', self::$args['border_size']);
} else {
$attr['style'] .= sprintf('border:%s %s %s;', self::$args['border_size'], self::$args['border_style'], self::$args['border_color']);
}
}
if (self::$args['padding']) {
$attr['style'] .= sprintf('padding:%s;', self::$args['padding']);
}
return $attr;
}
开发者ID:jolay,项目名称:maga2.0,代码行数:26,代码来源:class-one-half.php
示例5: attr
function attr()
{
$attr = array();
$attr['class'] = 'fusion-highlight';
$brightness_level = FusionCore_Plugin::calc_color_brightness(self::$args['color']);
if ($brightness_level > 140) {
$attr['class'] .= ' light';
} else {
$attr['class'] .= ' dark';
}
if (self::$args['class']) {
$attr['class'] .= ' ' . self::$args['class'];
}
if (self::$args['rounded'] == 'yes') {
$attr['class'] .= ' rounded';
}
if (self::$args['id']) {
$attr['id'] = self::$args['id'];
}
if (self::$args['color'] == 'black') {
$attr['class'] .= ' highlight2';
} else {
$attr['class'] .= ' highlight1';
}
$attr['style'] = sprintf('background-color:%s;', self::$args['color']);
return $attr;
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:27,代码来源:class-highlight.php
示例6: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
global $smof_data;
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'content_align' => 'left', 'margin_top' => '', 'margin_bottom' => '', 'sep_color' => '', 'size' => 1, 'style_tag' => '', 'style_type' => $smof_data['title_style_type']), $args);
if (!$defaults['margin_top'] && isset($smof_data['title_top_margin']) && $smof_data['title_top_margin']) {
$defaults['margin_top'] = $smof_data['title_top_margin'];
}
if (!$defaults['margin_bottom'] && isset($smof_data['title_bottom_margin']) && $smof_data['title_bottom_margin']) {
$defaults['margin_bottom'] = $smof_data['title_bottom_margin'];
}
extract($defaults);
self::$args = $defaults;
if (!$style_type || $style_type == 'default') {
self::$args['style_type'] = $style_type = $smof_data['title_style_type'];
}
if (strpos($style_type, 'underline') !== FALSE || strpos($style_type, 'none') !== FALSE) {
$html = sprintf('<div %s><h%s %s>%s</h%s></div>', FusionCore_Plugin::attributes('title-shortcode'), $size, FusionCore_Plugin::attributes('title-shortcode-heading'), do_shortcode($content), $size);
} else {
if (self::$args['content_align'] == 'right') {
$html = sprintf('<div %s><div %s><div %s></div></div><h%s %s>%s</h%s></div>', FusionCore_Plugin::attributes('title-shortcode'), FusionCore_Plugin::attributes('title-sep-container'), FusionCore_Plugin::attributes('title-shortcode-sep'), $size, FusionCore_Plugin::attributes('title-shortcode-heading'), do_shortcode($content), $size);
} elseif (self::$args['content_align'] == 'center') {
$html = sprintf('<div %s><div %s><div %s></div></div><h%s %s>%s</h%s><div %s><div %s></div></div></div>', FusionCore_Plugin::attributes('title-shortcode'), FusionCore_Plugin::attributes('title-sep-container title-sep-container-left'), FusionCore_Plugin::attributes('title-shortcode-sep'), $size, FusionCore_Plugin::attributes('title-shortcode-heading'), do_shortcode($content), $size, FusionCore_Plugin::attributes('title-sep-container title-sep-container-right'), FusionCore_Plugin::attributes('title-shortcode-sep'));
} else {
$html = sprintf('<div %s><h%s %s>%s</h%s><div %s><div %s></div></div></div>', FusionCore_Plugin::attributes('title-shortcode'), $size, FusionCore_Plugin::attributes('title-shortcode-heading'), do_shortcode($content), $size, FusionCore_Plugin::attributes('title-sep-container'), FusionCore_Plugin::attributes('title-shortcode-sep'));
}
}
return $html;
}
开发者ID:agiper,项目名称:wordpress,代码行数:34,代码来源:class-title.php
示例7: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
$defaults = shortcode_atts(array('class' => 'fusion-lightbox', 'id' => '', 'caption' => '', 'content_type' => 'image', 'lightbox_height' => '', 'lightbox_width' => '', 'src' => '', 'thumbnail' => '', 'title' => ''), $args);
extract($defaults);
self::$args = $defaults;
$html = sprintf('<a %s>%s</a>', FusionCore_Plugin::attributes('lightbox-shortcode'), do_shortcode($content));
return $html;
}
开发者ID:ftopolovec,项目名称:proart,代码行数:14,代码来源:class-lightbox.php
示例8: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'animation' => false, 'delay' => 0, 'placement' => 'top', 'title' => 'none', 'trigger' => 'hover'), $args);
extract($defaults);
self::$args = $defaults;
$html = sprintf('<span %s>%s</span>', FusionCore_Plugin::attributes('tooltip-shortcode'), do_shortcode($content));
return $html;
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:14,代码来源:class-tooltip.php
示例9: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'link' => ''), $args);
extract($defaults);
self::$args = $defaults;
$html = sprintf('<a %s>%s</a>', FusionCore_Plugin::attributes('one-page-text-link-shortcode'), do_shortcode($content));
return $html;
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:14,代码来源:class-one-page-link.php
示例10: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
$defaults = shortcode_atts(array('class' => '', 'name' => ''), $args);
extract($defaults);
self::$args = $defaults;
$html = sprintf('<div %s></div>', FusionCore_Plugin::attributes('menu-anchor-shortcode'));
return $html;
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:14,代码来源:class-menu-anchor.php
示例11: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
global $smof_data;
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'boxed' => '', 'boxed_radius' => '', 'color' => strtolower($smof_data['dropcap_color'])), $args);
extract($defaults);
self::$args = $defaults;
$html = sprintf('<span %s>%s</span>', FusionCore_Plugin::attributes('dropcap-shortcode'), do_shortcode($content));
return $html;
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:15,代码来源:class-dropcap.php
示例12: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
global $woocommerce, $smof_data;
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'cat_slug' => '', 'number_posts' => 10, 'show_cats' => 'yes', 'show_price' => 'yes', 'show_buttons' => 'yes', 'picture_size' => 'fixed'), $args);
extract($defaults);
self::$args = $defaults;
$html = '';
$buttons = '';
if (class_exists('Woocommerce')) {
$number_posts = (int) $number_posts;
$args = array('post_type' => 'product', 'posts_per_page' => $number_posts, 'meta_query' => array(array('key' => '_thumbnail_id', 'compare' => '!=', 'value' => null)));
if ($cat_slug) {
$cat_id = explode(',', $cat_slug);
$args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $cat_id));
}
$css_class = 'simple-products-slider';
if ($picture_size != 'fixed') {
$css_class = 'simple-products-slider-variable';
}
$products = new WP_Query($args);
$products_wrapper = $product = '';
if ($products->have_posts()) {
while ($products->have_posts()) {
$products->the_post();
$image = $price_tag = $terms = '';
if (has_post_thumbnail()) {
if ($smof_data['image_rollover']) {
$image = get_the_post_thumbnail(get_the_ID(), 'shop_catalog');
} else {
$image = sprintf('<a href="%s">%s</a>', get_permalink(get_the_ID()), get_the_post_thumbnail(get_the_ID(), 'shop_catalog'));
}
if ($show_cats == 'yes') {
$terms = get_the_term_list(get_the_ID(), 'product_cat', sprintf('<span %s>', FusionCore_Plugin::attributes('cats')), ', ', '</span>');
}
ob_start();
woocommerce_get_template('loop/price.php');
$price = ob_get_contents();
ob_end_clean();
if ($price && $show_price == 'yes') {
$price_tag = $price;
}
if ($show_buttons == 'yes') {
ob_start();
woocommerce_get_template('loop/add-to-cart.php');
$cart_button = ob_get_contents();
ob_end_clean();
$buttons = sprintf('<div %s>%s<a href="%s" %s>%s</a></div>', FusionCore_Plugin::attributes('product-buttons'), $cart_button, get_permalink(), FusionCore_Plugin::attributes('show-details-button'), __('Details', 'Avada'));
}
$product .= sprintf('<li><div %s aria-haspopup="true">%s<div %s><div %s><h2><a href="%s">%s</a></h2>%s%s%s</div></div></div></li>', FusionCore_Plugin::attributes('woo-product-slider-shortcode-img-div'), $image, FusionCore_Plugin::attributes('image-extras'), FusionCore_Plugin::attributes('image-extras-content'), get_permalink(), get_the_title(), $terms, $price_tag, $buttons);
}
}
$products_wrapper = sprintf('<ul>%s</ul>', $product);
}
$html = sprintf('<div %s><div %s><div %s><div %s>%s</div><div %s><span %s></span><span %s></span></div></div></div><div class="fusion-clearfix"></div></div>', FusionCore_Plugin::attributes('woo-product-slider-shortcode'), FusionCore_Plugin::attributes($css_class . ' simple-products-slider'), FusionCore_Plugin::attributes('es-carousel-wrapper fusion-carousel-large'), FusionCore_Plugin::attributes('es-carousel'), $products_wrapper, FusionCore_Plugin::attributes('es-nav'), FusionCore_Plugin::attributes('es-nav-prev'), FusionCore_Plugin::attributes('es-nav-next'));
}
return $html;
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:63,代码来源:class-woo-product-slider.php
示例13: render
/**
* Render the shortcode
*
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
global $smof_data;
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'backgroundattachment' => 'scroll', 'backgroundcolor' => $smof_data['full_width_bg_color'], 'backgroundimage' => '', 'backgroundposition' => 'left top', 'backgroundrepeat' => 'no-repeat', 'bordercolor' => $smof_data['full_width_border_color'], 'bordersize' => $smof_data['full_width_border_size'], 'borderstyle' => 'solid', 'equal_height_columns' => 'no', 'fade' => 'no', 'hundred_percent' => 'no', 'menu_anchor' => '', 'overlay_color' => '', 'overlay_opacity' => '0.5', 'paddingbottom' => '20px', 'paddingleft' => '0px', 'paddingright' => '0px', 'paddingtop' => '20px', 'paddingBottom' => '', 'paddingTop' => '', 'video_loop' => 'yes', 'video_mp4' => '', 'video_mute' => 'yes', 'video_ogv' => '', 'video_preview_image' => '', 'video_webm' => ''), $args);
if ($defaults['hundred_percent'] == 'yes') {
$defaults['paddingleft'] = '0px';
$defaults['paddingright'] = '0px';
}
extract($defaults);
self::$args = $defaults;
$this->depracted_args();
$outer_html = '';
self::$bg_type = 'image';
if ($video_mp4 || $video_ogv || $video_webm) {
self::$bg_type = 'video';
}
if ($fade == 'yes') {
self::$bg_type = 'faded';
$outer_html .= sprintf('<div %s></div>', FusionCore_Plugin::attributes('fullwidth-faded'));
}
if (self::$bg_type == 'video') {
$video_attributes = 'preload="auto" autoplay';
$video_src = '';
if ($video_loop == 'yes') {
$video_attributes .= ' loop';
}
if ($video_mute == 'yes') {
$video_attributes .= ' muted';
}
if ($video_mp4) {
$video_src .= sprintf('<source src="%s" type="video/mp4">', $video_mp4);
}
if ($video_ogv) {
$video_src .= sprintf('<source src="%s" type="video/ogg">', $video_ogg);
}
if ($video_webm) {
$video_src .= sprintf('<source src="%s" type="video/webm">', $video_webm);
}
if ($overlay_color) {
$outer_html .= sprintf('<div %s></div>', FusionCore_Plugin::attributes('fullwidth-overlay'));
}
$outer_html .= sprintf('<div class="%s"><video %s>%s</video></div>', 'fullwidth-video', $video_attributes, $video_src);
if ($video_preview_image) {
$video_preview_image_style = sprintf('background-image:url(%s);', $video_preview_image);
$outer_html .= sprintf('<div class="%s" style="%s"></div>', 'fullwidth-video-image', $video_preview_image_style);
}
}
if ($defaults['menu_anchor']) {
$html = sprintf('<div id="%s"><div %s>%s<div %s>%s</div></div></div>', $defaults['menu_anchor'], FusionCore_Plugin::attributes('fullwidth-shortcode'), $outer_html, FusionCore_Plugin::attributes('avada-row'), do_shortcode($content));
} else {
$html = sprintf('<div %s>%s<div %s>%s</div></div>', FusionCore_Plugin::attributes('fullwidth-shortcode'), $outer_html, FusionCore_Plugin::attributes('avada-row'), do_shortcode($content));
}
return $html;
}
开发者ID:jolay,项目名称:maga2.0,代码行数:61,代码来源:class-fullwidth.php
示例14: render
/**
* Render the shortcode
*
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
$defaults = shortcode_atts(array('class' => '', 'id' => '', 'last' => 'no'), $args);
extract($defaults);
self::$args = $defaults;
$clearfix = '';
if (self::$args['last'] == 'yes') {
$clearfix = sprintf('<div %s></div>', FusionCore_Plugin::attributes('fusion-clearfix'));
}
$html = sprintf('<div %s>%s</div>%s', FusionCore_Plugin::attributes('one-third-shortcode'), do_shortcode($content), $clearfix);
return $html;
}
开发者ID:ftopolovec,项目名称:proart,代码行数:19,代码来源:class-one-third.php
示例15: render_child
/**
* Render the child shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render_child($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('alt' => '', 'image' => '', 'link' => '', 'linktarget' => '_self'), $args);
extract($defaults);
self::$child_args = $defaults;
$output = sprintf('<img src="%s" alt="%s" />', $image, $alt);
if ($link) {
$output = sprintf('<a href="%s" target="%s">%s</a>', $link, $linktarget, $output);
}
$html = sprintf('<li><div %s>%s</div></li>', FusionCore_Plugin::attributes('image'), $output);
return $html;
}
开发者ID:ftopolovec,项目名称:proart,代码行数:18,代码来源:class-clients.php
示例16: render_child
/**
* Render the child shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render_child($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('open' => 'no', 'title' => ''), $args);
extract($defaults);
self::$child_args = $defaults;
self::$child_args['toggle_class'] = '';
if ($open == 'yes') {
self::$child_args['toggle_class'] = 'in';
}
$this->collaps_id = uniqid('collapse-');
$html = sprintf('<div %s><div %s><h4 %s><a %s><i %s></i>%s</a></h4></div><div %s><div %s>%s</div></div></div>', FusionCore_Plugin::attributes('fusion-panel panel-default'), FusionCore_Plugin::attributes('panel-heading'), FusionCore_Plugin::attributes('panel-title toggle'), FusionCore_Plugin::attributes('toggle-shortcode-data-toggle'), FusionCore_Plugin::attributes('toggle-shortcode-fa-icon'), $title, FusionCore_Plugin::attributes('toggle-shortcode-collapse'), FusionCore_Plugin::attributes('panel-body toggle-content'), do_shortcode($content));
return $html;
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:19,代码来源:class-toggle.php
示例17: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'api_params' => '', 'autoplay' => "false", 'center' => 'no', 'height' => 360, 'id' => '', 'width' => 600), $args);
extract($defaults);
self::$args = $defaults;
if ($autoplay == 'true' || $autoplay == 'yes') {
$autoplay = '&autoplay=1';
} else {
$autoplay = '';
}
$html = sprintf('<div %s><div %s><iframe title="YouTube video player" src="http://www.youtube.com/embed/%s?wmode=transparent%s%s" width="%s" height="%s" frameborder="0" allowfullscreen></iframe></div></div>', FusionCore_Plugin::attributes('youtube-shortcode'), FusionCore_Plugin::attributes('youtube-shortcode-video-sc'), $id, $autoplay, $api_params, $width, $height);
return $html;
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:19,代码来源:class-youtube.php
示例18: render_child
/**
* Render the child shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render_child($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('open' => 'no', 'title' => ' '), $args);
extract($defaults);
self::$child_args = $defaults;
self::$child_args['toggle_class'] = '';
if ($open == 'yes') {
self::$child_args['toggle_class'] = 'in';
}
$this->collapse_id = substr(md5(sprintf('collapse-%s-%s-%s', get_the_ID(), $this->accordian_counter, $this->collapse_counter)), 15);
$html = sprintf('<div %s><div %s><h4 %s><a %s><i %s></i><div %s>%s</div></a></h4></div><div %s><div %s>%s</div></div></div>', FusionCore_Plugin::attributes('fusion-panel panel-default'), FusionCore_Plugin::attributes('panel-heading'), FusionCore_Plugin::attributes('panel-title toggle'), FusionCore_Plugin::attributes('toggle-shortcode-data-toggle'), FusionCore_Plugin::attributes('toggle-shortcode-fa-icon'), FusionCore_Plugin::attributes('fusion-toggle-heading'), $title, FusionCore_Plugin::attributes('toggle-shortcode-collapse'), FusionCore_Plugin::attributes('panel-body toggle-content'), do_shortcode($content));
$this->collapse_counter++;
return $html;
}
开发者ID:mathewdenis,项目名称:avada,代码行数:20,代码来源:class-toggle.php
示例19: render
/**
* Render the shortcode
*
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
global $smof_data;
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'id' => '', 'backgroundattachment' => 'scroll', 'backgroundcolor' => $smof_data['full_width_bg_color'], 'backgroundimage' => '', 'backgroundposition' => 'left top', 'backgroundrepeat' => 'no-repeat', 'bordercolor' => $smof_data['full_width_border_color'], 'bordersize' => $smof_data['full_width_border_size'], 'borderstyle' => 'solid', 'menu_anchor' => '', 'paddingbottom' => '20px', 'paddingtop' => '20px', 'paddingBottom' => '', 'paddingTop' => ''), $args);
extract($defaults);
self::$args = $defaults;
$this->depracted_args();
if ($defaults['menu_anchor']) {
$html = sprintf('<div id="%s"><div %s><div %s>%s</div></div></div>', $defaults['menu_anchor'], FusionCore_Plugin::attributes('fullwidth-shortcode'), FusionCore_Plugin::attributes('avada-row'), do_shortcode($content));
} else {
$html = sprintf('<div %s><div %s>%s</div></div>', FusionCore_Plugin::attributes('fullwidth-shortcode'), FusionCore_Plugin::attributes('avada-row'), do_shortcode($content));
}
return $html;
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:21,代码来源:class-fullwidth.php
示例20: render
/**
* Render the shortcode
* @param array $args Shortcode paramters
* @param string $content Content between shortcode
* @return string HTML output
*/
function render($args, $content = '')
{
$defaults = FusionCore_Plugin::set_shortcode_defaults(array('class' => '', 'api_params' => '', 'autoplay' => 'no', 'center' => 'no', 'height' => 360, 'id' => '', 'width' => 600), $args);
extract($defaults);
self::$args = $defaults;
$protocol = is_ssl() ? 's' : '';
if ($autoplay == 'true' || $autoplay == 'yes') {
$autoplay = '?autoplay=1';
} else {
$autoplay = '?autoplay=0';
}
$html = sprintf('<div %s><div %s><iframe src="http%s://player.vimeo.com/video/%s%s%s" width="%s" height="%s" frameborder="0"></iframe></div></div>', FusionCore_Plugin::attributes('vimeo-shortcode'), FusionCore_Plugin::attributes('vimeo-shortcode-video-sc'), $protocol, $id, $autoplay, $api_params, $width, $height);
return $html;
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:20,代码来源:class-vimeo.php
注:本文中的FusionCore_Plugin类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论