本文整理匯總了PHP中siteorigin_widget_get_icon函數的典型用法代碼示例。如果您正苦於以下問題:PHP siteorigin_widget_get_icon函數的具體用法?PHP siteorigin_widget_get_icon怎麽用?PHP siteorigin_widget_get_icon使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了siteorigin_widget_get_icon函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: wpinked_so_person_social
function wpinked_so_person_social($profiles, $align, $target)
{
if ($profiles) {
?>
<p class="iw-so-person-profiles <?php
echo $align;
?>
">
<?php
$icon_styles = array();
foreach ($profiles as $index => $profile) {
?>
<a href="<?php
echo $profile['link'];
?>
" target="<?php
echo $target;
?>
"><?php
echo siteorigin_widget_get_icon($profile['icon'], $icon_styles);
?>
</a>
<?php
}
?>
</p>
<?php
}
}
示例2: wp_kses_post
}
?>
<?php
echo wp_kses_post($feature['more_text']);
?>
<?php
if (!empty($feature['more_url'])) {
echo '</a>';
}
?>
</p>
<?php
}
?>
</div>
</div>
<?php
}
?>
<?php
$callout_section = $instance['callout_section'];
if ($callout_section['cta_link']) {
$callout_styles = array();
$btn_position = $callout_section['cta_alignment'];
$icon = siteorigin_widget_get_icon($callout_section['cta_icon'], ['font-size: 18px', 'color: #fff']);
$callout_styles[] = "float: {$btn_position}";
printf('<a class="read-more" href="%1$s" style="%3$s">' . $icon . '%2$s</a>', sow_esc_url($callout_section['cta_link']), $callout_section['cta_text'], implode('; ', $callout_styles));
}
?>
</div>
示例3: siteorigin_widget_get_icon
?>
<div class="iw-so-article<?php
echo $cols;
?>
iw-cols" data-equalizer-watch>
<div class="iw-row iw-so-thumb-none">
<div class="iw-small-12 iw-cols iw-so-article-content">
<?php
if (get_post_format() && $instance['design']['format']) {
echo siteorigin_widget_get_icon($instance['icons'][get_post_format()], $icon_styles);
} elseif ($instance['design']['format']) {
echo siteorigin_widget_get_icon($instance['icons']['standard'], $icon_styles);
}
?>
<?php
if ($instance['design']['byline-above']) {
?>
<?php
$byline_above = apply_filters('wpinked_byline', $instance['design']['byline-above']);
?>
<p class="iw-so-article-byline-above <?php
echo $instance['styling']['align'];
?>
">
示例4: esc_attr
}
</style>
<div class="square-service">
<div class="widget">
<span class="icon-container <?php
echo esc_attr($style);
?>
color-blue<?php
echo $rand;
?>
wow fadeIn" >
<?php
if (empty($instance['image'])) {
?>
<?php
echo siteorigin_widget_get_icon($instance['icon'], '');
?>
<?php
if ($instance['number']) {
?>
<span class="bubble border-blue<?php
echo $rand;
?>
"><?php
echo esc_attr($instance['number']);
?>
</span><?php
}
?>
<?php
示例5: array
}
$vertical_class = '';
$vertical_styles = array('style7', 'style8', 'style9', 'style10');
if (in_array($style, $vertical_styles, true)) {
$vertical_class = 'lsow-vertical';
}
foreach ($tabs as $tab) {
$tab_id = sanitize_title_with_dashes($tab['title']) . '-' . uniqid();
$tab_title = '<a href="#' . $tab_id . '">';
if ($icon_type == 'icon_image') {
$tab_title .= '<span class="lsow-image-wrapper">';
$tab_title .= wp_get_attachment_image($tab['icon_image'], 'thumbnail', false, array('class' => 'lsow-image'));
$tab_title .= '</span>';
} elseif ($icon_type == 'icon') {
$tab_title .= '<span class="lsow-icon-wrapper">';
$tab_title .= siteorigin_widget_get_icon($tab['icon']);
$tab_title .= '</span>';
}
$tab_title .= '<span class="lsow-tab-title">';
$tab_title .= esc_html($tab['title']);
$tab_title .= '</span>';
$tab_title .= '</a>';
$tab_nav = '<div class="lsow-tab">' . $tab_title . '</div>';
$tab_content = '<div id="' . $tab_id . '" class="lsow-tab-pane">' . do_shortcode($tab['tab_content']) . '</div>';
$tab_elements[] = $tab_nav;
$tab_panes[] = $tab_content;
}
?>
<div class="lsow-tabs <?php
echo $vertical_class;
示例6: siteorigin_widget_get_icon
<a href="#<?php
echo $instance['settings']['id'] . '-' . $acc_no;
?>
" class="<?php
echo $instance['styling']['text'];
?>
">
<?php
echo $toggle['title'];
?>
<span class="iw-so-tgl-open"><?php
echo siteorigin_widget_get_icon($instance['settings']['icon-open'], $icon_styles);
?>
</span>
<span class="iw-so-tgl-close"><?php
echo siteorigin_widget_get_icon($instance['settings']['icon-close'], $icon_styles);
?>
</span>
</a>
<div id="<?php
echo $instance['settings']['id'] . '-' . $acc_no;
?>
" class="content<?php
echo $toggle['active'] == 1 ? ' active' : '';
?>
">
<?php
echo $toggle['content'];
?>
示例7: array
$classes[] = "sow-social-media-button";
$button_attributes = array('class' => esc_attr(implode(' ', $classes)));
if (!empty($instance['design']['new_window'])) {
$button_attributes['target'] = '_blank';
}
if (!empty($network['url'])) {
$button_attributes['href'] = esc_url($network['url']);
}
?>
<a <?php
foreach ($button_attributes as $name => $val) {
echo $name . '="' . $val . '" ';
}
?>
>
<span>
<!-- premium-<?php
echo $network['name'];
?>
-->
<?php
echo siteorigin_widget_get_icon($network['icon_name']);
?>
<!-- endpremium -->
</span>
</a>
<?php
}
?>
</div>
示例8: wp_get_attachment_image_src
echo $name . '="' . $val . '" ';
}
?>
>
<span>
<?php
if (!empty($instance['button_icon']['icon'])) {
$attachment = wp_get_attachment_image_src($instance['button_icon']['icon']);
if (!empty($attachment)) {
$icon_styles[] = 'background-image: url(' . sow_esc_url($attachment[0]) . ')';
?>
<div class="sow-icon-image" style="<?php
echo implode('; ', $icon_styles);
?>
"></div><?php
}
} else {
$icon_styles = array();
if (!empty($instance['button_icon']['icon_color'])) {
$icon_styles[] = 'color: ' . $instance['button_icon']['icon_color'];
}
echo siteorigin_widget_get_icon($instance['button_icon']['icon_selected'], $icon_styles);
}
?>
<?php
echo wp_kses_post($instance['text']);
?>
</span>
</a>
</div>
示例9: foreach
<?php
echo $detail_box;
?>
</div>
<?php
}
?>
<ul class="team_social">
<?php
foreach ($instance['team_social_repeater'] as $j => $team_social_repeater) {
?>
<li><a href="<?php
echo $team_social_repeater['team_social_url'];
?>
" target="_blank"><?php
echo siteorigin_widget_get_icon($team_social_repeater['team_social_icon']);
?>
</a></li>
<?php
}
?>
</ul>
</div>
示例10: wp_get_attachment_image
<div class="lsow-image-wrapper">
<?php
echo wp_get_attachment_image($service['icon_image'], 'full', false, array('class' => 'lsow-image full'));
?>
</div>
<?php
} else {
?>
<div class="lsow-icon-wrapper">
<?php
echo siteorigin_widget_get_icon($service['icon']);
?>
</div>
<?php
}
?>
<div class="lsow-service-text">
<h3 class="lsow-title"><?php
echo esc_html($service['title']);
?>
</h3>
示例11: foreach
echo $instance['styling']['orientation'] == 'vertical' ? ' vertical' : '';
?>
" data-tab>
<?php
foreach ($instance['tabs'] as $i => $tab) {
?>
<li class="tab-title<?php
echo $tab['active'] == 1 ? ' active' : '';
?>
"><a href="#<?php
echo $instance['id'] . '-' . $tab_no;
?>
" href="#">
<?php
echo siteorigin_widget_get_icon($tab['icon'], $icon_styles);
?>
<?php
echo $tab['title'];
?>
</a></li>
<?php
$tab_no++;
?>
<?php
}
?>
</ul>
<div class="tabs-content<?php
echo $instance['styling']['orientation'] == 'vertical' ? ' vertical' : '';
示例12: esc_attr
echo esc_attr(implode(' ', array_filter($wrapper_classes)));
?>
">
<div class="lrw-icon-element <?php
echo esc_attr(implode(' ', array_filter($icon_wrapper_classes)));
?>
">
<?php
if ($icon_type == 'type_icon') {
?>
<div class="icon-inner <?php
echo esc_attr(implode(' ', array_filter($icon_classes)));
?>
">
<?php
echo siteorigin_widget_get_icon($icon);
?>
</div>
<?php
} elseif ($icon_type == 'type_image') {
?>
<div class="image-wrapper <?php
echo esc_attr(implode(' ', array_filter($icon_classes)));
?>
">
<?php
$src = wp_get_attachment_image($image, $image_size);
?>
<?php
echo $src;
?>
示例13: wp_get_attachment_image
?>
<?php
if ($icon_type == 'icon_image') {
?>
<?php
$icon_html = '<span class="db-image-wrapper">' . wp_get_attachment_image($odometer['icon_image'], 'full', false, array('class' => 'db-image full')) . '</span>';
?>
<?php
} else {
?>
<?php
$icon_html = '<span class="db-icon-wrapper">' . siteorigin_widget_get_icon($odometer['icon']) . '</span>';
?>
<?php
}
?>
<div class="db-stats-title-wrap">
<div class="db-stats-title"><?php
echo $icon_html . esc_html($odometer['stats_title']);
?>
</div>
</div>
示例14: siteorigin_widget_get_icon
</div>
<?php
} else {
?>
<a class="lsow-icon-wrapper" href="<?php
echo $icon_url;
?>
" <?php
echo $target;
?>
>
<?php
echo siteorigin_widget_get_icon($icon_item['icon']);
?>
</a>
<?php
}
?>
<?php
}
?>
</div>
<?php
示例15: esc_attr
echo esc_attr(implode(' ', $sep_classes));
?>
">
<span class="lrw-sep-wrap lrw-sep-l"><span></span></span>
<?php
if ($instance['icon_active'] == 'yes') {
?>
<?php
if (!empty($instance['icon_options']['icon'])) {
?>
<div class="icon-wrapper <?php
echo esc_attr(implode(' ', $icon_classes));
?>
">
<?php
echo siteorigin_widget_get_icon($instance['icon_options']['icon']);
?>
</div>
<?php
}
?>
<?php
}
?>
<?php
if ($instance['title']) {
echo '<' . $instance['title_type'] . ' class="lrw-sep-text">' . $instance['title'] . '</' . $instance['title_type'] . '>';
}
?>
<span class="lrw-sep-wrap lrw-sep-r"><span></span></span>
</div>