本文整理汇总了PHP中zn_get_size函数的典型用法代码示例。如果您正苦于以下问题:PHP zn_get_size函数的具体用法?PHP zn_get_size怎么用?PHP zn_get_size使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zn_get_size函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _testimonial_slider2
function _testimonial_slider2($options)
{
$element_size = zn_get_size($options['_sizer']);
$new_size = $element_size['sizer'];
echo '<div class="' . $element_size['sizer'] . '">';
echo '<div class="testimonials-carousel">';
if (!empty($options['tf_title'])) {
echo '<h3 class="m_title">' . $options['tf_title'] . '</h3>';
}
echo '<div class="controls">';
echo '<a href="#" class="prev"><span class="icon-chevron-left"></span></a>';
echo '<a href="#" class="next"><span class="icon-chevron-right"></span></a>';
echo '</div>';
if (!empty($options['testimonials_slider_single']) && is_array($options['testimonials_slider_single'])) {
echo '<ul id="testimonials_carousel" class="zn_testimonials_carousel fixclear">';
foreach ($options['testimonials_slider_single'] as $test) {
if (!empty($test['tf_single_test'])) {
echo '<li>';
echo '<blockquote>' . do_shortcode($test['tf_single_test']) . '</blockquote>';
echo '<h5>' . $test['tf_single_author'] . '</h5>';
echo '</li>';
}
}
echo '</ul>';
}
echo '</div>';
echo '</div>';
$speed = 'auto: true,';
if (!empty($options['tf_speed'])) {
$speed = 'auto:{timeoutDuration:' . $options['tf_speed'] . '},';
}
$testimonial_slider2 = array('zn_testimonial_slider2' => "\n\t\t\t\tjQuery(window).load(function() {\n\t\t\t\t// ** Testimonials carousel\n\t\t\t\tjQuery('.zn_testimonials_carousel').carouFredSel({\n\t\t\t\t\tresponsive: true,\n\n\t\t\t\t\titems: {\n\t\t\t\t\t\twidth: 300\n\t\t\t\t\t},\n\t\t\t\t\t" . $speed . "\n\t\t\t\t\t\n\t\t\t\t\tprev\t: {\t\n\t\t\t\t\t\tbutton\t: function(){return jQuery(this).closest('.testimonials-carousel').find('.prev');},\n\t\t\t\t\t\tkey\t\t: \"left\"\n\t\t\t\t\t},\n\t\t\t\t\tnext\t: { \n\t\t\t\t\t\tbutton\t: function(){return jQuery(this).closest('.testimonials-carousel').find('.next');},\n\t\t\t\t\t\tkey\t\t: \"right\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// *** end testimonials carousel\n\t\t\t\t});\n\t\t");
zn_update_array($testimonial_slider2);
}
开发者ID:sumovska,项目名称:jodi,代码行数:34,代码来源:_testimonial_slider2.php
示例2: _image_gallery
function _image_gallery($options)
{
$element_size = zn_get_size('one-third');
if (!empty($options['ig_title'])) {
echo '<div class="span12">';
echo '<h4 class="smallm_title centered bigger"><span>' . $options['ig_title'] . '</span></h4>';
echo '</div>';
}
if (!empty($options['single_ig']) && is_array($options['single_ig'])) {
$count = count($options['single_ig']);
$i = 1;
foreach ($options['single_ig'] as $image_arr) {
if ($i % 3 == 1) {
echo '<div class="row-fluid zn_photo_gallery">';
}
if (!empty($image_arr['sig_image'])) {
$image = vt_resize('', $image_arr['sig_image'], $element_size['width'], '', true);
echo '<div class="span4">';
echo '<a href="' . $image_arr['sig_image'] . '" class="hoverBorder" rel="prettyPhoto"><img src="' . $image['url'] . '" width="' . $image['width'] . '" height="' . $image['height'] . '" alt=""></a>';
echo '</div>';
}
if ($i % 3 == 0 || $i == $count) {
echo '</div>';
}
$i++;
}
}
echo '<div class="clear"></div>';
}
开发者ID:sumovska,项目名称:jodi,代码行数:29,代码来源:_image_gallery.php
示例3: element
/**
* This method is used to display the output of the element.
*
* @return void
*/
function element()
{
$options = $this->data['options'];
$element_size = zn_get_size('one-third');
echo '<div class="th-image-gallery ' . $this->data['uid'] . ' ' . $this->opt('css_class', '') . '">';
if (!empty($options['ig_title'])) {
echo '<div class="row">';
echo '<div class="col-sm-12">';
echo '<h4 class="th-image-gallery-title text-custom"><span class="th-image-gallery-title-sp">' . $options['ig_title'] . '</span></h4>';
echo '</div>';
echo '</div>';
}
if (!empty($options['single_ig']) && is_array($options['single_ig'])) {
$count = count($options['single_ig']);
$i = 1;
foreach ($options['single_ig'] as $image_arr) {
if ($i % 3 == 1) {
echo '<div class="row">';
}
if (!empty($image_arr['sig_image'])) {
$image = vt_resize('', $image_arr['sig_image'], $element_size['width'], '', true);
echo '<div class="col-sm-4">';
echo '<a href="' . $image_arr['sig_image'] . '" class="hoverBorder" data-lightbox="image"><img src="' . $image['url'] . '" width="' . $image['width'] . '" height="' . $image['height'] . '" alt=""></a>';
echo '</div>';
}
if ($i % 3 == 0 || $i == $count) {
echo '</div>';
}
$i++;
}
}
echo '</div>';
}
开发者ID:rock1media,项目名称:wordpress,代码行数:38,代码来源:TH_ImageGallery.php
示例4: _stats_box
function _stats_box($options)
{
$element_size = zn_get_size($options['_sizer']);
echo '<div class="' . $element_size['sizer'] . ' zn_stats_box">';
echo '<div class="row-fluid zn_content_no_margin">';
echo '<div class="' . $element_size['sizer'] . ' zn_stats_box">';
echo '<h3 class="mb_title"><span class="' . $options['vts_tab_icon'] . ' icon-dark"></span> ' . $options['stb_title'] . '</h3>';
echo '</div>';
echo '</div>';
if (!empty($options['single_stats']) && is_array($options['single_stats'])) {
echo '<div class="row-fluid zn_content_no_margin">';
foreach ($options['single_stats'] as $stat) {
echo '<div class="span3">';
echo '<div class="statbox">';
if (!empty($stat['sb_icon'])) {
echo '<img src="' . $stat['sb_icon'] . '" alt="">';
}
echo '<h4>' . $stat['sb_title'] . '</h4>';
echo '<h6>' . $stat['sb_content'] . '</h6>';
echo '</div>';
echo '</div>';
}
echo '</div>';
}
echo '</div>';
}
开发者ID:sumovska,项目名称:jodi,代码行数:26,代码来源:_stats_box.php
示例5: _infobox
function _infobox($options)
{
$element_size = zn_get_size($options['_sizer']);
// LINK
$link = '';
if (!empty($options['ib_button_text']) && !empty($options['ib_button_link']['url'])) {
$link = '<a href="' . $options['ib_button_link']['url'] . '" target="' . $options['ib_button_link']['target'] . '" class="btn btn-large btn-inverse">' . $options['ib_button_text'] . '</a>';
}
echo '<div class="' . $element_size['sizer'] . '">';
echo '<div class="' . $options['ib_style'] . '">';
if ($options['ib_style'] == 'infobox2') {
echo $link;
}
// TITLE
if (!empty($options['ib_title'])) {
echo '<h3 class="m_title">' . $options['ib_title'] . '</h3>';
}
// SUBTITLE
if (!empty($options['ib_subtitle'])) {
if (preg_match('%(<p[^>]*>.*?</p>)%i', $options['ib_subtitle'], $regs)) {
echo $options['ib_subtitle'];
} else {
echo '<p>' . $options['ib_subtitle'] . '</p>';
}
}
if ($options['ib_style'] == 'infobox1') {
echo $link;
}
echo '</div>';
echo '</div>';
}
开发者ID:sumovska,项目名称:jodi,代码行数:31,代码来源:_infobox.php
示例6: _service_box
function _service_box($options)
{
$element_size = zn_get_size($options['_sizer']);
?>
<div class="<?php
echo $element_size['sizer'];
?>
services_box">
<div class="box fixclear">
<?php
// Image
if (!empty($options['service_box_image'])) {
echo '<div class="icon"><img src="' . $options['service_box_image'] . '" alt=""></div>';
}
// Title
if (!empty($options['service_box_title'])) {
echo '<h4 class="title">' . $options['service_box_title'] . '</h4>';
}
// FEATURES LIST
if (!empty($options['service_box_features'])) {
echo '<ul class="list-style1">';
$textAr = explode("\n", $options['service_box_features']);
foreach ($textAr as $index => $line) {
echo '<li>' . $line . '</li>';
}
echo '</ul>';
}
?>
</div><!-- end box -->
</div>
<?php
}
开发者ID:sumovska,项目名称:jodi,代码行数:34,代码来源:_service_box.php
示例7: _testimonial_slider
function _testimonial_slider($options)
{
$element_size = zn_get_size($options['_sizer']);
$new_size = $element_size['sizer'];
if (!empty($options['tf_title']) || !empty($options['tf_desc'])) {
preg_match('|\\d+|', $element_size['sizer'], $new_size);
$new_size = $new_size[0] - 3;
$new_size = 'span' . $new_size;
echo '<div class="span3 testimonials_fader">';
if (!empty($options['tf_title'])) {
echo '<h3 class="m_title">' . $options['tf_title'] . '</h3>';
}
if (!empty($options['tf_desc'])) {
echo '<p>' . $options['tf_desc'] . '</p>';
}
echo '</div>';
}
echo '<div class="' . $new_size . ' testimonials_fader">';
echo '<ul class="fixclear testimonials_fader_trigger">';
foreach ($options['testimonials_single'] as $test) {
echo '<li>';
echo '<blockquote>' . do_shortcode($test['tf_single_test']) . '</blockquote>';
echo '<h6>' . $test['tf_single_author'] . '</h6>';
echo '</li>';
}
echo '</ul>';
echo '</div>';
$speed = 'auto: {timeoutDuration: 5000},';
if (!empty($options['tf_speed'])) {
$speed = 'auto:{timeoutDuration:' . $options['tf_speed'] . '},';
}
$testimonial_slider = array('zn_testimonial_slider' => "\t\n\n\t\t\t\t\t// ** Testimonials fader\n\n\t\t\t\t\tjQuery('.testimonials_fader_trigger').carouFredSel({\n\n\t\t\t\t\t\tresponsive:true,\n\n\t\t\t\t\t\t" . $speed . "\n\n\t\t\t\t\t\tscroll: { fx: \"fade\", duration: \"1500\" }\n\n\t\t\t\t\t});\n\n\t\t\t\t\t// *** end testimonials fader\n\n\t\t\t\t;");
zn_update_array($testimonial_slider);
}
开发者ID:sumovska,项目名称:jodi,代码行数:34,代码来源:_testimonial_slider.php
示例8: _video_box
function _video_box($options)
{
$element_size = zn_get_size($options['_sizer']);
?>
<div class="<?php
echo $element_size['sizer'];
?>
">
<?php
if (!empty($options['vb_video_image']) && !empty($options['vb_video_url'])) {
echo '<div class="adbox video">';
$image = vt_resize('', $options['vb_video_image'], $element_size['width'], '', true);
echo '<img src="' . $image['url'] . '" alt="">';
echo '<div class="video_trigger_container">';
echo '<a class="playVideo" data-rel="prettyPhoto" href="' . $options['vb_video_url'] . '?width=80%&height=80%"></a>';
echo $options['vb_video_title'];
echo '</div>';
echo '</div>';
} else {
if (!empty($options['vb_video_url'])) {
if (!empty($options['vb_video_title'])) {
echo '<h4 class="m_title">' . $options['vb_video_title'] . '</h4>';
}
echo get_video_from_link($options['vb_video_url'], '', $element_size['width'], $element_size['height']);
}
}
?>
</div>
<?php
}
开发者ID:sumovska,项目名称:jodi,代码行数:32,代码来源:_video_box.php
示例9: _photo_gallery
function _photo_gallery($options)
{
$element_size = zn_get_size($options['_sizer']);
?>
<div class="<?php
echo $element_size['sizer'];
?>
">
<div class="row-fluid zn_image_gallery">
<?php
if (!empty($options['single_photo_gallery']) && is_array($options['single_photo_gallery'])) {
$i = 0;
$id = uniqid('pp_');
$count = count($options['single_photo_gallery']);
if (!empty($options['pg_num_cols'])) {
$num_cols = $options['pg_num_cols'];
} else {
$num_cols = 6;
}
$new_size = 12 / $num_cols;
$size = zn_get_size('span' . $new_size);
$height = $image_resized['height'];
if (isset($options['pg_img_height']) && !empty($options['pg_img_height'])) {
$height = $options['pg_img_height'];
}
foreach ($options['single_photo_gallery'] as $image) {
if ($i % $num_cols == 0) {
echo '<div class="row-fluid">';
}
//preg_match('|\d+|', 'span12' , $new_size);
echo '<div class="span' . $new_size . '">';
if (!empty($image['spg_image']) && !empty($image['spg_video'])) {
$image_resized = vt_resize('', $image['spg_image'], $size['width'], $height, true);
echo '<a rel="prettyPhoto[' . $id . ']" href="' . $image['spg_video'] . '" title="' . $image['spg_title'] . '" class="hoverBorder">';
echo '<img alt="" src="' . $image_resized['url'] . '" width="' . $image_resized['width'] . '" height="' . $image_resized['height'] . '">';
echo '</a>';
} elseif (!empty($image['spg_image'])) {
$image_resized = vt_resize('', $image['spg_image'], $size['width'], $height, true);
echo '<a rel="prettyPhoto[' . $id . ']" href="' . $image['spg_image'] . '" title="' . $image['spg_title'] . '" class="hoverBorder">';
echo '<img alt="" src="' . $image_resized['url'] . '" width="' . $image_resized['width'] . '" height="' . $image_resized['height'] . '">';
echo '</a>';
}
$i++;
if ($i % $num_cols == 0 || $count == $i) {
echo '</div>';
}
echo '</div>';
}
}
?>
</div>
</div>
<?php
}
开发者ID:sumovska,项目名称:jodi,代码行数:59,代码来源:_photo_gallery.php
示例10: _keyword
function _keyword($options)
{
$element_size = zn_get_size($options['_sizer']);
if (!empty($options['kw_content'])) {
echo '<div class="' . $element_size['sizer'] . '">';
echo '<div class="keywordbox">' . $options['kw_content'] . '</div>';
echo '</div>';
}
}
开发者ID:sumovska,项目名称:jodi,代码行数:9,代码来源:_keyword.php
示例11: _infobox2
function _infobox2($options)
{
$element_size = zn_get_size($options['_sizer']);
echo '<div class="' . $element_size['sizer'] . '">';
echo '<div class="info-text">';
echo $options['ib2_title'];
echo '</div>';
echo '</div>';
}
开发者ID:sumovska,项目名称:jodi,代码行数:9,代码来源:_infobox2.php
示例12: _portfolio_sortable
function _portfolio_sortable($options)
{
$element_size = zn_get_size($options['_sizer']);
global $post, $data;
$posts_per_page = isset($options['ports_per_page']) ? $options['ports_per_page'] : '4';
// how many posts
$query = array('post_type' => 'portfolio', 'tax_query' => array(array('taxonomy' => 'project_category', 'field' => 'id', 'terms' => $options['portfolio_categories'])), 'posts_per_page' => $posts_per_page);
// Start the query
query_posts($query);
include locate_template('template-helpers/loop-portfolio_sortable.php');
$zn_isotope = array('zn_isotope' => "\n\t\t\t\t(function(\$){ \n\t\t\t\t\t\$(window).load(function(){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// settings\n\t\t\t\t\t\tvar sortBy = '', \t\t\t// SORTING: date / name\n\t\t\t\t\t\t\tsortAscending = true, \t\t// SORTING ORDER: true = Ascending / false = Descending\n\t\t\t\t\t\t\ttheFilter = '';\t// DEFAULT FILTERING CATEGORY \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\$('#sortBy li a').each(function(index, element) {\n\t\t\t\t\t\t\tvar t = \$(this);\n\t\t\t\t\t\t\tif(t.attr('data-option-value') == sortBy)\n\t\t\t\t\t\t\t\tt.addClass('selected');\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\$('#sort-direction li a').each(function(index, element) {\n\t\t\t\t\t\t\tvar t = \$(this);\n\t\t\t\t\t\t\tif(t.attr('data-option-value') == sortAscending.toString())\n\t\t\t\t\t\t\t\tt.addClass('selected');\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\$('#portfolio-nav li a').each(function(index, element) {\n\t\t\t\t\t\t\tvar t = \$(this),\n\t\t\t\t\t\t\t\ttpar = t.parent();\n\t\t\t\t\t\t\tif(t.attr('data-filter') == theFilter) {\n\t\t\t\t\t\t\t\t\$('#portfolio-nav li a').parent().removeClass('current');\n\t\t\t\t\t\t\t\ttpar.addClass('current');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// don't edit below unless you know what you're doing\n\t\t\t\t\t\tif (\$(\"ul#thumbs\").length > 0){\n\t\t\t\t\t\t\tvar container = \$(\"ul#thumbs\");\n\t\t\t\t\t\t\tcontainer.isotope({\n\t\t\t\t\t\t\t itemSelector : \".item\",\n\t\t\t\t\t\t\t animationEngine : \"jquery\",\n\t\t\t\t\t\t\t animationOptions: {\n\t\t\t\t\t\t\t\t duration: 250,\n\t\t\t\t\t\t\t\t easing: \"easeOutExpo\",\n\t\t\t\t\t\t\t\t queue: false\n\t\t\t\t\t\t\t },\n\t\t\t\t\t\t\t filter: theFilter,\n\t\t\t\t\t\t\t sortAscending : sortAscending,\n\t\t\t\t\t\t\t getSortData : {\n\t\t\t\t\t\t\t\t name : function ( elem ) {\n\t\t\t\t\t\t\t\t\t return elem.find(\"span.name\").text();\n\t\t\t\t\t\t\t\t },\n\t\t\t\t\t\t\t\t date : function ( elem ) {\n\t\t\t\t\t\t\t\t\t return elem.attr(\"data-date\");\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t },\n\t\t\t\t\t\t\t sortBy: sortBy\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})(jQuery);\n\t\t\t\t");
zn_update_array($zn_isotope);
}
开发者ID:sumovska,项目名称:jodi,代码行数:13,代码来源:_portfolio_sortable.php
示例13: element
/**
* This method is used to display the output of the element.
*
* @return void
*/
function element()
{
$options = $this->data['options'];
$uid = $this->data['uid'];
$resize_method = $this->opt('ib2_resize_method', 'default');
echo '<div class="offer-banners ob--resize-' . $resize_method . ' ' . $uid . ' ' . $this->opt('css_class', '') . '">';
if (!empty($options['image_box_title'])) {
echo '<h3 class="m_title m_title_ext text-custom offer-banners-title">' . $options['image_box_title'] . '</h3>';
}
if (!empty($options['ib2_single']) && is_array($options['ib2_single'])) {
echo '<div class="row">';
foreach ($options['ib2_single'] as $simage) {
if ($slide_image = $simage['ib2_image']) {
$saved_alt = $saved_title = '';
if (is_array($slide_image)) {
// Get the saved image
$saved_image = $slide_image['image'];
if (!empty($slide_image['alt'])) {
$saved_alt = $slide_image['alt'];
}
if (!empty($slide_image['title'])) {
$saved_title = 'title="' . $slide_image['title'] . '"';
}
} else {
$saved_image = $slide_image;
}
$element_size = zn_get_size($simage['ib2_width']);
echo '<div class="' . $element_size['sizer'] . '">';
$ib2_link = zn_extract_link($simage['ib2_link'], 'offer-banners-link hoverBorder', false, false, false, '#');
echo $ib2_link['start'];
if ($resize_method == 'default') {
$image = vt_resize('', $saved_image, $element_size['width'], '', true);
echo '<img src="' . $image['url'] . '" height="' . $image['height'] . '" width="' . $image['width'] . '" alt="' . $saved_alt . '" ' . $saved_title . ' class="img-responsive offer-banners-img" />';
} else {
if ($resize_method == 'cover') {
$imgheight = isset($simage['ib2_image_height']) && !empty($simage['ib2_image_height']) ? $simage['ib2_image_height'] : 330;
echo '<div class="offer-banners-img hoverborder-img" style="background-image:url(' . $saved_image . '); height:' . $imgheight . 'px;"></div>';
} else {
if ($resize_method == 'no-resize') {
echo '<img src="' . $saved_image . '" alt="' . $saved_alt . '" ' . $saved_title . ' class="img-responsive offer-banners-img" />';
}
}
}
echo $ib2_link['end'];
echo '</div>';
}
}
echo '</div>';
}
echo "</div>";
}
开发者ID:rock1media,项目名称:wordpress,代码行数:56,代码来源:TH_ImageBox2.php
示例14: element
/**
* This method is used to display the output of the element.
* @return void
*/
function element()
{
$options = $this->data['options'];
?>
<div class="photo-gallery zn_image_gallery row <?php
echo $this->data['uid'];
?>
<?php
echo $this->opt('css_class', '');
?>
">
<?php
if (!empty($options['single_photo_gallery']) && is_array($options['single_photo_gallery'])) {
$id = uniqid('pp_');
$num_cols = 6;
if (!empty($options['pg_num_cols'])) {
$num_cols = $options['pg_num_cols'];
}
$new_size = 12 / $num_cols;
$size = zn_get_size('span' . $new_size);
global $image_resized;
$height = $image_resized['height'];
if (isset($options['pg_img_height']) && !empty($options['pg_img_height'])) {
$height = $options['pg_img_height'];
}
foreach ($options['single_photo_gallery'] as $image) {
echo '<div class="col-xs-6 col-sm-4 col-lg-' . $new_size . ' u-mb-20">';
echo '<div class="mfp-gallery mfp-gallery--misc">';
// If Video
// If Image
if (!empty($image['spg_image']) && !empty($image['spg_video'])) {
$image_resized = vt_resize('', $image['spg_image'], $size['width'], $height, true);
echo '<a data-lightbox="mfp" data-mfp="iframe" href="' . $image['spg_video'] . '?width=100%&height=100%" title="' . $image['spg_title'] . '" class="hoverBorder">';
echo '<img alt="" src="' . $image_resized['url'] . '" width="' . $image_resized['width'] . '" height="' . $image_resized['height'] . '">';
echo '</a>';
} elseif (!empty($image['spg_image'])) {
$image_resized = vt_resize('', $image['spg_image'], $size['width'], $height, true);
echo '<a data-lightbox="mfp" data-mfp="image" href="' . $image['spg_image'] . '" title="' . $image['spg_title'] . '" class="hoverBorder">';
echo '<img alt="" src="' . $image_resized['url'] . '" width="' . $image_resized['width'] . '" height="' . $image_resized['height'] . '">';
echo '</a>';
} elseif (!empty($image['spg_video'])) {
echo '<a class="playVideo" data-lightbox="mfp" data-mfp="iframe" href="' . $image['spg_video'] . '?width=100%&height=100%"></a>';
}
echo '</div>';
echo '</div>';
}
}
?>
</div>
<?php
}
开发者ID:rock1media,项目名称:wordpress,代码行数:55,代码来源:TH_PhotoGallery.php
示例15: _testimonial_box
function _testimonial_box($options)
{
$element_size = zn_get_size($options['_sizer']);
$style = 'light';
$align = "left";
if ($options['tb_style'] == 'style2') {
$style = 'dark';
$align = "top";
}
?>
<div class="<?php
echo $element_size['sizer'];
?>
" >
<div class="testimonial_box" data-align="<?php
echo $align;
?>
" data-theme="<?php
echo $style;
?>
">
<div class="details">
<?php
if (!empty($options['tb_author_logo'])) {
$image = vt_resize('', $options['tb_author_logo'], '60', '60', true);
echo '<img src="' . $image['url'] . '" width="' . $image['width'] . '" height="' . $image['height'] . '" alt="">';
}
if (!empty($options['tb_author']) || !empty($options['tb_author_com'])) {
echo '<h6>';
if (!empty($options['tb_author'])) {
echo '<strong>' . $options['tb_author'] . '</strong>';
}
if (!empty($options['tb_author_com'])) {
echo $options['tb_author_com'];
}
echo '</h6>';
}
?>
</div>
<?php
if (!empty($options['tb_author_quote'])) {
echo '<blockquote>' . $options['tb_author_quote'] . '</blockquote>';
}
?>
</div>
</div>
<?php
}
开发者ID:sumovska,项目名称:jodi,代码行数:49,代码来源:_testimonial_box.php
示例16: _vertical_tabs
function _vertical_tabs($options)
{
$element_size = zn_get_size($options['_sizer']);
echo '<div class="' . $element_size['sizer'] . '">';
echo '<div class="vertical_tabs">';
echo '<div class="tabbable">';
if (!empty($options['single_vertical_tab']) && is_array($options['single_vertical_tab'])) {
echo '<ul class="nav fixclear">';
$i = 1;
$content = '';
foreach ($options['single_vertical_tab'] as $tab) {
$cls = '';
$icon = '';
if ($i == 1) {
$cls = 'active';
}
$uniq_name = $i . uniqid();
// ICON CHECK
if (!empty($tab['vts_tab_icon'])) {
$icon = '<span><span class="' . $tab['vts_tab_icon'] . ' icon-white"></span></span>';
}
// Tab Handle
echo '<li class="' . $cls . '">';
echo '<a href="#tabs_v2-pane' . $uniq_name . '" data-toggle="tab">';
echo $icon;
echo $tab['vts_tab_title'];
echo '</a>';
echo '</li>';
// TAB CONTENT
$content .= '<div class="tab-pane ' . $cls . '" id="tabs_v2-pane' . $uniq_name . '">';
$content .= '<h4>' . $tab['vts_tab_c_title'] . '</h4>';
if (preg_match('%(<p[^>]*>.*?</p>)%i', $tab['vts_tab_c_content'], $regs)) {
$content .= $tab['vts_tab_c_content'];
} else {
$content .= '<p>' . $tab['vts_tab_c_content'] . '</p>';
}
$content .= '</div>';
$i++;
}
echo '</ul>';
echo '<div class="tab-content">';
echo do_shortcode($content);
echo '</div>';
}
echo '</div>';
echo '</div>';
echo '</div>';
}
开发者ID:sumovska,项目名称:jodi,代码行数:48,代码来源:_vertical_tabs.php
示例17: _accordion
function _accordion($options)
{
$element_size = zn_get_size($options['_sizer']);
?>
<div class="<?php
echo $element_size['sizer'];
?>
">
<?php
if (!empty($options['acc_title']) && $options['acc_style'] == 'default-style') {
echo '<h3 class="m_title">' . $options['acc_title'] . '</h3>';
} elseif (!empty($options['acc_title']) && ($options['acc_style'] == 'style2' || $options['acc_style'] == 'style3')) {
echo '<h3>' . $options['acc_title'] . '</h3>';
}
$acc_id = 1;
$uniq = uniqid();
if (isset($options['accordion_single']) && is_array($options['accordion_single'])) {
foreach ($options['accordion_single'] as $acc) {
$colapsed = '';
if (isset($acc['acc_colapsed']) && $acc['acc_colapsed'] == 'yes') {
$colapsed = 'in';
}
echo '<div class="acc-group ' . $options['acc_style'] . '">';
echo '<button data-toggle="collapse" data-target="#acc' . $uniq . '' . $acc_id . '" class="collapsed">' . $acc['acc_single_title'] . '</button>';
echo '<div id="acc' . $uniq . '' . $acc_id . '" class="collapse ' . $colapsed . '">';
echo '<div class="content">';
if (preg_match('%(<p[^>]*>.*?</p>)%i', $acc['acc_single_desc'], $regs)) {
echo do_shortcode($acc['acc_single_desc']);
} else {
echo '<p>' . do_shortcode($acc['acc_single_desc']) . '</p>';
}
echo '</div>';
echo '</div>';
echo '</div>';
$acc_id++;
}
}
?>
<!-- end // accordion texts -->
</div>
<?php
}
开发者ID:sumovska,项目名称:jodi,代码行数:45,代码来源:_accordion.php
示例18: _image_box2
function _image_box2($options)
{
if (!empty($options['image_box_title'])) {
echo '<div class="span12 offer-banners">';
echo '<h3 class="m_title">' . $options['image_box_title'] . '</h3>';
echo '</div>';
}
if (!empty($options['ib2_single']) && is_array($options['ib2_single'])) {
foreach ($options['ib2_single'] as $simage) {
if ($slide_image = $simage['ib2_image']) {
if (is_array($slide_image)) {
// Get the saved image
$saved_image = $slide_image['image'];
if (!empty($slide_image['alt'])) {
$saved_alt = 'alt="' . $slide_image['alt'] . '"';
} else {
$saved_alt = '';
}
if (!empty($slide_image['title'])) {
$saved_title = 'title="' . $slide_image['title'] . '"';
} else {
$saved_title = '';
}
} else {
$saved_image = $slide_image;
$saved_alt = '';
$saved_title = '';
}
echo '<div class="' . $simage['ib2_width'] . ' offer-banners">';
$element_size = zn_get_size($simage['ib2_width']);
$image = vt_resize('', $saved_image, $element_size['width'], '', true);
$link_start = '<a href="#" class="hoverBorder">';
$link_end = '</a>';
if (!empty($simage['ib2_link']['url'])) {
$link_start = '<a href="' . $simage['ib2_link']['url'] . '" target="' . $simage['ib2_link']['target'] . '" class="hoverBorder">';
$link_end = '</a>';
}
echo $link_start;
echo '<img src="' . $image['url'] . '" height="' . $image['height'] . '" width="' . $image['width'] . '" ' . $saved_alt . ' ' . $saved_title . ' />';
echo $link_end;
echo '</div>';
}
}
}
}
开发者ID:sumovska,项目名称:jodi,代码行数:45,代码来源:_image_box2.php
示例19: _text_box
function _text_box($options)
{
$element_size = zn_get_size($options['_sizer']);
echo '<div class="' . $element_size['sizer'] . '">';
if ($options['stb_style'] == 'style2' && !empty($options['stb_title'])) {
echo '<h3>' . $options['stb_title'] . '</h3>';
} elseif ($options['stb_style'] == 'style1' && !empty($options['stb_title'])) {
echo '<h4 class="m_title">' . $options['stb_title'] . '</h4>';
}
if (!empty($options['stb_content'])) {
if (preg_match('%(<[^>]*>.*?</)%i', $options['stb_content'], $regs)) {
echo do_shortcode($options['stb_content']);
} else {
echo '<p>' . do_shortcode($options['stb_content']) . '</p>';
}
}
echo '</div>';
}
开发者ID:sumovska,项目名称:jodi,代码行数:18,代码来源:_text_box.php
示例20: _hover_box
function _hover_box($options)
{
$element_size = zn_get_size($options['_sizer']);
$content = '';
$cls = 'margin-top:10px;';
echo '<div class="' . $element_size['sizer'] . '">';
echo '<a href="' . $options['hb_link']['url'] . '" target="' . $options['hb_link']['target'] . '" class="hover-box ' . $options['hb_align'] . ' fixclear">';
if (!empty($options['hb_icon'])) {
echo '<img src="' . $options['hb_icon'] . '" alt="">';
}
if (!empty($options['hb_desc'])) {
$content = '<p>' . $options['hb_desc'] . '</p>';
$cls = '';
}
echo '<h3 style="' . $cls . '">' . $options['hb_title'] . '</h3>';
echo '<h4>' . $options['hb_subtitle'] . '</h4>';
echo $content;
echo '</a>';
echo '</div>';
}
开发者ID:sumovska,项目名称:jodi,代码行数:20,代码来源:_hover_box.php
注:本文中的zn_get_size函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论