本文整理汇总了PHP中ts_get_animation_data_class函数的典型用法代码示例。如果您正苦于以下问题:PHP ts_get_animation_data_class函数的具体用法?PHP ts_get_animation_data_class怎么用?PHP ts_get_animation_data_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ts_get_animation_data_class函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: ts_livicon_func
function ts_livicon_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'style' => '', 'livicon' => '', 'icon_animation' => '', 'event' => '', 'loop' => 'no', 'shadow' => 'no', 'color' => '', 'hover_color' => '', 'size' => '', 'title' => ''), $atts));
$html = null;
$attr = 'class="livicon ' . ts_get_animation_class($animation);
if ($shadow == 1) {
$attr .= ' shadowed2';
}
$attr .= '"';
$attr .= 'data-n="' . esc_attr($livicon) . '" ';
$attr .= 'data-s="' . esc_attr($size) . '" ';
$attr .= 'data-op="0" data-c="' . esc_attr($color) . '" ';
$attr .= 'data-hc="' . esc_attr($hover_color) . '" ';
$attr .= 'title="' . esc_attr($title) . '" ';
$attr .= ts_get_animation_data_class($animation_delay, $animation_iteration) . ' ';
if ($icon_animation == 'no') {
$attr .= 'data-a="0" ';
}
if ($event == 'click') {
$attr .= 'data-et="click" ';
}
if ($loop == 'yes') {
$attr .= 'data-l="1" ';
} else {
if (intval($loop) > 1) {
$attr .= 'data-i="' . esc_attr(intval($loop)) . '" ';
}
}
$html = '<div ' . $attr . '></div>';
if ($style == 'outlined') {
$html = '<div class="icon liviconslist-item">' . $html . '</div>';
}
return $html;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:34,代码来源:livicon.php
示例2: ts_text_func
function ts_text_func($atts)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'pfont' => '12px', 'content' => ''), $atts));
$style = '';
$style = 'style="font-size:' . esc_attr($pfont) . '"';
return '<div ' . ts_get_animation_class($animation, true) . ' ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . ' ' . $style . ' >' . $content . '</div>';
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:7,代码来源:text.php
示例3: ts_skills_circular_func
function ts_skills_circular_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'title' => 'Honesty', 'percent' => '75', 'animation' => '', 'color' => ''), $atts));
$output = " \n\t\t<div class='progress-circular bottom-padding bottom-padding-mini " . ts_get_animation_class($animation) . "' " . ts_get_animation_data_class($animation_delay, $animation_iteration) . ">\n <input type='text' class='knob' value='0' rel='" . esc_attr($percent) . "' data-linecap='round' data-width='200' data-bgcolor='#f2f2f2' data-fgcolor='" . esc_attr($color) . "' data-thickness='.15' data-readonly='true' disabled=''>\n <p class='white'>{$title}</p>\n </div>";
wp_enqueue_script('knob');
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:7,代码来源:skills_circular.php
示例4: ts_button_outlined_func
function ts_button_outlined_func($atts, $content = null)
{
$oArgs = ThemeArguments::getInstance('ts_button_outlined_func');
$button_id = (int) $oArgs->get('button_id') + 1;
$oArgs->set('button_id', $button_id);
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', "icon" => '', "color" => '', "hover_color" => '', "background_color" => '', "background_hover_color" => '', "size" => '', "url" => '', 'target' => '_self', 'align' => ''), $atts));
$button_class = 'button btn btn-border ' . $size;
if (empty($url)) {
$url = '#';
}
$button_styles = '';
$button_data = '';
if (!empty($color)) {
$button_styles .= "color:{$color}; border-color: {$color};";
$button_data .= 'data-color="' . esc_attr($color) . '"';
}
if (!empty($hover_color)) {
$button_data .= 'data-hover-color="' . esc_attr($hover_color) . '"';
}
if (!empty($background_color)) {
$button_styles .= "background-color:{$background_color};";
$button_data .= 'data-background-color="' . esc_attr($background_color) . '"';
}
if (!empty($background_hover_color)) {
$button_data .= 'data-background-hover-color="' . esc_attr($background_hover_color) . '"';
}
$icon_html = '';
if ($icon && $icon != 'no') {
$icon_html = '<i class="icons ' . esc_attr($icon) . '"></i>';
}
return '<div class="xbtn ' . sanitize_html_classes($align) . '"><a id="button-' . esc_attr($button_id) . '" ' . esc_attr($button_data) . ' class="' . esc_attr($button_class) . ' ' . ts_get_animation_class($animation) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . ' href="' . esc_url($url) . '" target="' . esc_attr($target) . '" style="' . $button_styles . '">' . $icon_html . $content . '</a></div>';
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:32,代码来源:button_outlined.php
示例5: ts_container_func
function ts_container_func($atts)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'content_box' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore libero autem tempora cumque officiis sapiente maxime sit facere assumenda quisquam amet consequatur ad delectus accusantium quia saepe quas repellendus optio distinctio nobis consequuntur culpa eligendi quibusdam nesciunt maiores alias ex.', 'style' => '1', 'icon' => '', 'icon_color' => ''), $atts));
$class_wrapper = null;
switch ($style) {
case '1':
$classes = 'content-block bottom-padding frame';
break;
case '2':
$classes = 'content-block bottom-padding frame border-radius';
break;
case '3':
$classes = 'content-block bottom-padding frame-shadow-lifted';
break;
case '4':
$classes = 'content-block bottom-padding frame frame-shadow-lifted';
break;
case '5':
$classes = 'content-block bottom-padding frame-shadow-lifted bg';
break;
case '6':
$classes = 'content-block bottom-padding frame-shadow-raised text-center';
break;
case '7':
$classes = 'content-block bottom-padding frame frame-shadow-curved';
break;
case '8':
$classes = 'content-block bottom-padding frame frame-shadow-lifted';
break;
case '9':
$classes = 'content-block bottom-padding frame frame-shadow-curved border-radius';
break;
case '10':
$classes = 'bottom-padding frame-shadow-lifted bg';
break;
case '11':
$class_wrapper = 'rotated-box';
$classes = 'content-block bottom-padding frame frame-shadow-lifted';
break;
case '12':
$class_wrapper = 'rotated-right-box';
$classes = 'content-block bottom-padding frame frame-shadow-curved border-radius';
break;
case '13':
$classes = 'content-block text-center frame-shadow bottom-padding';
break;
default:
$classes = 'bottom-padding frame-shadow-lifted bg';
break;
}
$icon_html = '';
if (!empty($icon)) {
$icon_html = '<span class="icon bg circle icon-60 pull-left"><i class="' . sanitize_html_class($icon) . '" ' . (!empty($icon_color) ? 'style="color: ' . esc_attr($icon_color) . '"' : '') . '></i></span>';
}
$output = "\n\t\t<div class='" . sanitize_html_classes($classes) . " " . ts_get_animation_class($animation) . "' " . ts_get_animation_data_class($animation_delay, $animation_iteration) . ">\n\t\t\t{$icon_html}\n\t\t\t<span class='lead'>{$content_box}</span>\n\t\t</div>";
if (!empty($class_wrapper)) {
return "<div class='" . sanitize_html_classes($class_wrapper) . "'>{$output}</div>";
}
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:60,代码来源:containers.php
示例6: ts_portfolio_item_func
function ts_portfolio_item_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'id' => 0), $atts));
global $post;
$html = '';
$new_post = null;
if (!empty($id)) {
$new_post = get_post($id);
}
if ($new_post) {
$post = $new_post;
setup_postdata($post);
$image = '';
$slider = '';
$portfolio_slider = ts_get_post_opt('portfolio_slider');
if (is_array($portfolio_slider) && count($portfolio_slider) > 0) {
foreach ($portfolio_slider as $slide) {
if (!empty($slide['image'])) {
$image = theme_thumb($slide['image'], 370, 270, 'c');
}
$slider .= '
<div class="col-sm-12 col-md-12">
<img src="' . esc_url($image) . '" alt="" title="">
</div>';
}
}
if (!empty($slider)) {
$gallery = '
<div class="carousel-box load" data-carousel-pagination="true" data-carousel-nav="false" data-carousel-one="true">
<div class="row">
<div class="carousel">' . $slider . '</div>
</div>
<div class="clearfix"></div>
<div class="pagination switches"></div>
</div>';
} else {
$gallery = '<img src="' . esc_url(get_xv_thumbnail(370, 270)) . '" class="single-image" />';
}
$html = '
<div class="work-single row ' . ts_get_animation_class($animation) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . '>
<div class="images-box col-sm-5 col-md-4">
' . $gallery . '
</div>
<div class="work-description col-sm-7 col-md-8">
<h3 class="title">' . get_the_title() . '</h3>
<div class="type">' . xv_get_field('client') . '</div>
<div>
' . apply_filters('the_content', get_the_content()) . '
<div class="tags"><b>' . __('Categories', 'progressive') . ': </b>' . strip_tags(get_the_term_list($post->ID, 'portfolio_category', '', ', ')) . '</div>
</div>
</div>
<div class="clearfix"></div>
</div>';
wp_reset_postdata();
}
return $html;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:59,代码来源:portfolio_item.php
示例7: ts_container_func
function ts_container_func($atts)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'content_box' => '', 'style' => '1'), $atts));
ob_start();
$output = "\n\t\t<div class='content-block bottom-padding frame-shadow-lifted bg " . ts_get_animation_class($animation) . "' " . ts_get_animation_data_class($animation_delay, $animation_iteration) . ">\n\t\t\t<span class='lead'>" . wp_kses_post($content_box) . "</span>\n\t\t</div>";
ob_end_clean();
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:8,代码来源:container.php
示例8: ts_sitemap_func
function ts_sitemap_func($atts)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'sitemap' => ''), $atts));
$html = '';
ob_start();
?>
<ul class="sitemap <?php
echo ts_get_animation_class($animation);
?>
" <?php
echo ts_get_animation_data_class($animation_delay, $animation_iteration);
?>
>
<?php
switch ($sitemap) {
case 'pages':
wp_list_pages("title_li=");
break;
case 'posts':
$archive_query = new WP_Query('showposts=1000&cat=-8');
while ($archive_query->have_posts()) {
$archive_query->the_post();
?>
<li>
<a href="<?php
echo esc_url(get_the_permalink());
?>
" rel="bookmark" title="<?php
echo esc_attr(get_the_title());
?>
"><?php
the_title();
?>
</a>
</li>
<?php
}
break;
case 'categories':
wp_list_categories('sort_column=name&optioncount=1&hierarchical=0&feed=RSS');
break;
case 'archives':
wp_get_archives('type=monthly&show_post_count=true');
break;
default:
wp_list_pages("title_li=");
break;
}
?>
</ul>
<?php
$output = ob_get_contents();
ob_end_clean();
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:56,代码来源:sitemap.php
示例9: ts_banner_carousel_func
function ts_banner_carousel_func($atts, $content = null)
{
global $post;
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_delay_item' => '', 'animation_iteration' => '', 'carousel_style' => '', 'full_width_lines' => '', 'category' => '', 'limit' => 10), $atts));
// Reset and setup variables
$output = '';
$temp_title = '';
$temp_link = '';
$carousel_classes = '';
if ($carousel_style == 'mini') {
$width = 127;
$height = 79;
$carousel_classes = 'banner-set-mini banner-set-no-pagination';
} else {
$width = 253;
$height = 158;
}
if ($full_width_lines == 'enabled') {
$carousel_classes .= ' banner-border-shop';
}
$output .= "<div class='banner-set load " . sanitize_html_classes($carousel_classes) . "'>\n <div class='container'>\n <div class='banners'>";
$args = array('post_type' => 'banner', 'posts_per_page' => $limit);
if (!empty($category)) {
$args['tax_query'] = array(array('taxonomy' => 'banner-cat', 'field' => 'id', 'terms' => $category));
}
$current_animation_delay = $animation_delay;
query_posts($args);
// the loop
if (have_posts()) {
while (have_posts()) {
the_post();
$temp_title = get_the_title($post->ID);
$url = xv_get_field('url');
$temp_link = '#';
if ($url) {
$temp_link = $url;
}
$excerpt = get_xv_excerpt(250);
// output all findings - CUSTOMIZE TO YOUR LIKING
$output .= "<a class='banner " . ts_get_animation_class($animation) . "' href='" . esc_url($temp_link) . "' " . ts_get_animation_data_class($current_animation_delay, $animation_iteration) . ">";
$thumb = get_xv_thumbnail($width, $height);
$output .= '<img src="' . esc_url($thumb) . '" alt="' . the_title_attribute('echo=0') . '" />';
$output .= "<h2 class='title'>{$temp_title}</h2>";
if ($carousel_style != 'mini') {
$output .= "<div class='description'>{$excerpt}</div>";
}
$output .= "</a>";
$current_animation_delay += $animation_delay_item;
}
}
wp_reset_query();
$output .= "</div>\n <div class='clearfix'></div>\n </div>\n <div class='nav-box " . ts_get_animation_class($animation) . "' " . ts_get_animation_data_class($current_animation_delay, $animation_iteration) . ">\n <div class='container'>\n <a class='prev' href='#'><span class='icon-left'></span></a>\n <div class='pagination switches'></div>\n <a class='next' href='#'><span class='icon-right'></span></a> \n </div>\n </div>\n </div>\n <div class='clearfix'></div>";
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:54,代码来源:banner_carousel.php
示例10: ts_progressive_menu_func
function ts_progressive_menu_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'title' => '', 'nav_menu' => ''), $atts));
$output = '';
$output .= '<aside class="sidebar ' . ts_get_animation_class($animation, true) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . '>';
ob_start();
$args = array();
the_widget('WP_Progressive_Menu_Widget', $atts, $args);
$output .= ob_get_clean();
$output .= '</aside>';
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:12,代码来源:progressive_menu.php
示例11: ts_modal_func
function ts_modal_func($atts)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'title' => '', 'message' => 'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat.', 'button_text' => ''), $atts));
ob_start();
?>
<div <?php
echo ts_get_animation_class($animation, true);
?>
<?php
echo ts_get_animation_data_class($animation_delay, $animation_iteration);
?>
>
<div class="button-list">
<button data-target="#modal-1" data-toggle="modal" class="btn push-top push-bottom btn-default">
<?php
echo wp_kses_post($button_text);
?>
</button>
</div>
<div class="modal fade" id="modal-1" tabindex="-1" role="dialog" aria-labelledby="modalLabel-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<a aria-hidden="true" data-dismiss="modal" class="close" href="#">×</a>
<?php
if (!empty($title)) {
echo '<div class="title-box"><h4 class="title">' . esc_html($title) . '</h4></div>';
}
?>
</div>
<div class="modal-body">
<?php
echo wp_kses_post($message);
?>
</div>
<div class="modal-footer">
<button data-dismiss="modal" class="btn btn-default" type="button"><?php
_e('Close', 'progressive');
?>
</button>
</div>
</div>
</div>
</div>
</div>
<?php
$output = ob_get_contents();
wp_enqueue_script('raphael');
// wp_enqueue_script( 'liviv', get_template_directory_uri() . '/js/livicons-1.3.min.js', array ('jquery'), null, true );
ob_end_clean();
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:53,代码来源:modal.php
示例12: ts_another_call_to_action_func
function ts_another_call_to_action_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', "btn1_text" => '', "btn2_text" => '', "btn1_url" => '', "btn2_url" => ''), $atts));
$output = "<div class='content-block frame text-center bottom-padding " . ts_get_animation_class($animation) . "' " . ts_get_animation_data_class($animation_delay, $animation_iteration) . ">\n <p class='lead'>{$content}</p>";
if (!empty($btn1_text)) {
$output .= "<a href='" . esc_url($btn1_url) . "' data-animation='bounceIn' class='btn btn-default appear-animation bounceIn appear-animation-visible'>{$btn1_text}</a>";
}
if (!empty($btn2_text)) {
$output .= "<a href='" . esc_url($btn2_url) . "' data-animation='bounceIn' class='btn btn-default appear-animation bounceIn appear-animation-visible'>{$btn2_text}</a>";
}
$output .= "</div>";
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:13,代码来源:another_call_to_action.php
示例13: ts_steps_func
/**
* Visual Composer Eelement: Steps
*
*/
function ts_steps_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'step' => '', 'style' => '', 'align' => ''), $atts));
$align_class = '';
return '
<div class="steps progress-steps ' . ts_get_animation_class($animation) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . '>
<div class="step ' . sanitize_html_classes($style) . ' ' . sanitize_html_classes($align) . '">
<div class="step-wrapper">
<div class="number">' . $step . '</div>
' . do_shortcode($content) . '
</div>
</div>
</div>';
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:18,代码来源:steps.php
示例14: ts_hr_func
function ts_hr_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'color' => '', 'style' => ''), $atts));
$html = null;
$divider_style = array();
if (!empty($color)) {
$divider_style[] = 'border-color:' . esc_attr($color);
}
$divider_style_html = null;
if (is_array($divider_style)) {
$divider_style_html = 'style="' . implode(';', $divider_style) . '"';
}
$html .= '<hr class="divider ' . sanitize_html_classes($style) . ' ' . ts_get_animation_class($animation) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . ' ' . $divider_style_html . ' >';
return $html;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:15,代码来源:divider.php
示例15: ts_heading_func
/**
* Visual Composer Eelement: Heading
*
*/
function ts_heading_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'color' => '', 'type' => 1, 'align' => '', 'style' => '', 'id' => ''), $atts));
if (intval($type) < 1 || intval($type) > 6) {
$type = 1;
}
if (!empty($color)) {
$color = 'style="color:' . esc_attr($color) . '"';
}
$id_attr = '';
if (!empty($id)) {
$id_attr = 'id="' . esc_attr($id) . '"';
}
return "<div " . $id_attr . " class='" . sanitize_html_classes($style) . " " . sanitize_html_class($align) . " " . ts_get_animation_class($animation) . "' " . ts_get_animation_data_class($animation_delay, $animation_iteration) . "><h" . esc_attr($type) . " class='title' " . $color . ">" . do_shortcode($content) . "</h" . esc_attr($type) . "></div>";
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:19,代码来源:headers.php
示例16: ts_map_container_func
function ts_map_container_func($atts, $content = null)
{
extract(shortcode_atts(array('title' => '', 'height' => '300', 'zoom' => '6', 'lat' => '40.748441', 'lng' => '73.985664', 'marker_title' => '', 'marker_content' => '', 'style' => '', 'color' => '', 'area_1_title' => '', 'area_1_content' => '', 'area_2_title' => '', 'area_2_content' => '', 'area_3_title' => '', 'area_3_content' => ''), $atts));
$class = '';
$path = get_template_directory_uri();
$output = '';
if (!empty($title)) {
$output = '<div class="title-box">
<h2 class="title">' . $title . '</h2>
</div>';
}
$overlay = '';
if (!empty($area_1_title) || !empty($area_1_content) || !empty($area_2_title) || !empty($area_2_content) || !empty($area_3_title) || !empty($area_3_content)) {
$overlay = '
<div class="contact-info col-sm-6 col-md-6 ' . ts_get_animation_class('fadeInLeftBig') . '" ' . ts_get_animation_data_class(1500, 0) . '>
<address>
<div class="title">' . $area_1_title . '</div>
' . ts_emailize($area_1_content) . '
</address>
<div class="row">
<address class="col-sm-6 col-md-6">
<div class="title">' . $area_2_title . '</div>
' . ts_emailize($area_2_content) . '
</address>
<address class="col-sm-6 col-md-6">
<div class="title">' . $area_3_title . '</div>
' . ts_emailize($area_3_content) . '
</address>
</div>
</div>';
}
$output .= '
<div class="map-box">
' . $overlay . '
<div
class="map-canvas"
style="height: ' . esc_attr($height) . 'px;"
data-zoom="' . esc_attr($zoom) . '"
data-lat="' . esc_attr($lat) . '"
data-lng="' . esc_attr($lng) . '"
data-title="' . esc_attr($marker_title) . '"
data-content="' . esc_attr($marker_content) . '"
data-pin="' . esc_url($path) . '/img/svg/map-marker.svg"
data-type="' . esc_attr($style) . '"></div>
</div>';
wp_enqueue_script('google-map-api');
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:48,代码来源:map_container.php
示例17: ts_alert_func
function ts_alert_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'style' => 'info', 'icon' => '', 'hide_icon' => 'yes', 'close_btn' => 'yes', 'message' => ''), $atts));
$html = '';
if ($icon != '' && $hide_icon != 'yes') {
$icon = '<div class="alert-icon ' . sanitize_html_class($icon) . '"></div>';
} else {
$icon = '';
}
$html .= '<div class="alert alert-' . sanitize_html_class($style) . ts_get_animation_class($animation) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . '>' . $icon . '<p>' . $message . '</p>';
if ($close_btn == 'yes') {
$html .= '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>';
}
$html .= '</div>';
return $html;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:16,代码来源:alerts.php
示例18: ts_button_func
function ts_button_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', "icon" => '', "livicon" => '', "animate_on" => 'button', "background" => '', "color" => '', "hover" => '', "border" => '', "size" => '', "url" => '', 'target' => '_self', 'align' => ''), $atts));
$button_class = 'button btn ' . $size;
if (empty($url)) {
$url = '#';
}
$button_styles = '';
if (!empty($color)) {
$button_styles .= "color:{$color};";
}
if (!empty($background)) {
$button_styles .= "background-color:{$background};";
}
if (!empty($hover)) {
$button_styles .= "background-color:{$background};";
}
$button_styles .= "border-color:{$border};";
$icon_html = '';
if ($livicon != '') {
$animate_attr = 'data-hc="0"';
if ($animate_on == 'icon') {
$animate_attr = 'data-op="0"';
}
$icon_html = '<i class="livicon" data-n="' . esc_attr($livicon) . '" data-s="24" data-c="' . esc_attr($color) . '" data-hc="' . esc_attr($color) . '" ' . $animate_attr . '></i>';
$icon_metro = '<span class="livicon metro-bg" data-n="' . esc_attr($livicon) . '" data-s="32" data-c="' . esc_attr($color) . '" data-hc="' . esc_attr($color) . '" data-op="1" style=' . esc_attr($button_styles) . '></span>';
} else {
if ($icon && $icon != 'no') {
$icon_html = '<i class="icons ' . esc_attr($icon) . '"></i>';
$icon_metro = '<span class="metro-bg" style=' . esc_attr($button_styles) . '>' . $icon_html . '</span>';
}
}
if ($size == 'metro') {
$html = '<a title="' . esc_attr($content) . '" class="' . ts_get_animation_class($animation) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . ' href="' . esc_url($url) . '" target="' . esc_attr($target) . '">' . $icon_metro . '</a>';
} else {
$html = '<a class="' . esc_attr($button_class) . ' ' . ts_get_animation_class($animation) . '" ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . ' href="' . esc_url($url) . '" target="' . esc_attr($target) . '" style=' . esc_attr($button_styles) . '>' . $icon_html . $content . '</a>';
}
if (!empty($align) && $align != 'none') {
$html = '<div class="xbtn ' . esc_attr($align) . '">' . $html . '</div>';
}
return $html;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:42,代码来源:button.php
示例19: ts_newsletter_func
function ts_newsletter_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'id' => '1'), $atts));
ob_start();
?>
<div class="sidebar vc_newsletter <?php
echo ts_get_animation_class($animation);
?>
" <?php
echo ts_get_animation_data_class($animation_delay, $animation_iteration);
?>
>
<div class="newsletter">
<?php
echo apply_filters('vc_wysija__shortcode', do_shortcode('[wysija_form id="' . $id . '"]'));
?>
</div>
</div>
<?php
$output = ob_get_contents();
ob_end_clean();
return $output;
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:23,代码来源:newsletter.php
示例20: ts_image_func
function ts_image_func($atts, $content = null)
{
extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'img_url' => '', 'caption' => '', 'img_link' => '', 'style' => '', 'width' => '', 'height' => '', 'align' => '', 'output' => '', 'hover_border' => '', 'hover_opacity' => '', 'frame' => ''), $atts));
$attachment_id = $img_url;
$image_attributes = wp_get_attachment_image_src($attachment_id, 'full');
// returns an array
if (isset($image_attributes[0])) {
$img_url = $image_attributes[0];
}
//$output .= $img_url;
$img_url = get_xv_resizer($img_url, $width, $height);
if (!empty($img_link)) {
$output .= "<a class='frame-hover " . esc_attr($hover_border) . "' href='" . esc_url($img_link) . "' >";
}
$output .= "<div class='" . sanitize_html_classes($frame) . " " . esc_attr($style) . " " . esc_attr($align) . " " . esc_attr($hover_opacity) . "'>\n\t\t\t\t\t<img alt='" . esc_attr($caption) . "' src='" . esc_url($img_url) . "'>\n\t\t\t\t</div>";
if (!empty($img_link)) {
$output .= "</a>";
}
if (!empty($caption)) {
$output .= "<div class='caption'>{$caption}</div>";
}
return '<div ' . ts_get_animation_class($animation, true) . ' ' . ts_get_animation_data_class($animation_delay, $animation_iteration) . '>' . $output . '</div>';
}
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:23,代码来源:image.php
注:本文中的ts_get_animation_data_class函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论