• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wpo_makeid函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wpo_makeid函数的典型用法代码示例。如果您正苦于以下问题:PHP wpo_makeid函数的具体用法?PHP wpo_makeid怎么用?PHP wpo_makeid使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wpo_makeid函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: extract

<?php

/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <[email protected], [email protected]>
 * @copyright  Copyright (C) 2014 wpopal.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http://www.wpopal.com
 * @support  http://www.wpopal.com/support/forum.html
 */
extract(shortcode_atts(array('title' => '', 'number' => -1, 'icon' => '', 'el_class' => ''), $atts));
$_id = wpo_makeid();
$args = array('post_type' => 'brands', 'posts_per_page' => $number);
$loop = new WP_Query($args);
if ($loop->have_posts()) {
    $_count = 1;
    $columns_count = 6;
    switch ($columns_count) {
        case '6':
            $class_column = 'col-sm-2 col-md-2';
            break;
        case '4':
            $class_column = 'col-sm-6 col-md-3';
            break;
        case '3':
            $class_column = 'col-sm-4';
            break;
开发者ID:k2jysy,项目名称:mergeshop,代码行数:31,代码来源:wpo_brands.php


示例2: wpo_campaign_contribute_options_custom

/**
 * Contribute now list options
 * @return void
**/
function wpo_campaign_contribute_options_custom($prices, $type, $download_id)
{
    $campaign = atcf_get_campaign($download_id);
    $uid = wpo_makeid();
    ?>
	<div class="edd_price_options <?php 
    echo $campaign->is_active() ? 'active' : 'expired';
    ?>
" <?php 
    echo $campaign->is_donations_only() ? 'style="display: none"' : null;
    ?>
>
		<ul>
			<?php 
    foreach ($prices as $key => $price) {
        ?>
				<?php 
        $amount = $price['amount'];
        $limit = isset($price['limit']) ? $price['limit'] : '';
        $bought = isset($price['bought']) ? $price['bought'] : 0;
        $allgone = false;
        if ($bought == absint($limit) && '' != $limit) {
            $allgone = true;
        }
        if (edd_use_taxes() && edd_taxes_on_prices()) {
            $amount += edd_calculate_tax($amount);
        }
        ?>
				<li class="atcf-price-option pledge-level <?php 
        echo $allgone ? 'inactive' : null;
        ?>
"  data-pri="<?php 
        echo edd_sanitize_amount($amount);
        ?>
"  data-price="<?php 
        echo edd_sanitize_amount($amount);
        ?>
-<?php 
        echo esc_attr($key);
        ?>
">
					<div class="clear">
						<h3><label><!-- <label for="<?php 
        echo esc_attr('edd_price_option_' . $download_id . '_' . $key);
        ?>
"> -->
							<?php 
        if ($campaign->is_active()) {
            if (!$allgone) {
                printf('<input type="radio" name="edd_options[price_id][]" id="%1$s" class="%2$s edd_price_options_input" value="%3$s"/>', esc_attr('edd_price_option_' . $download_id . '_' . $key . '_' . $uid), esc_attr('edd_price_option_' . $download_id), esc_attr($key));
            }
        }
        ?>
  
							<?php 
        echo edd_currency_filter(edd_format_amount($amount));
        ?>
						</label></h3>
						
						<div class="backers hidden">
							<div class="backer-count">
								<i class="icon-user"></i> <?php 
        printf(_n('1 Backer', '%1$s Backers', $bought, 'atcf'), $bought);
        ?>
							</div>
							<?php 
        if ('' != $limit && !$allgone) {
            ?>
								<small class="limit"><?php 
            printf(__('Limit of %d &mdash; %d remaining', 'atcf'), $limit, $limit - $bought);
            ?>
</small>
							<?php 
        } elseif ($allgone) {
            ?>
								<small class="gone"><?php 
            _e('All gone!', 'atcf');
            ?>
</small>
							<?php 
        }
        ?>
						</div>

					</div>
					<?php 
        //echo wpautop( wp_kses_data( $price[ 'name' ] ) );
        ?>
				</li>

			<?php 
    }
    ?>
			<li class="price-custom">
				<div class="campaign-price-input">
					<div class="price-wrapper"><span class="title"><?php 
//.........这里部分代码省略.........
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:101,代码来源:campaign.php


示例3: ATCF_Campaign

<?php

$campaign = new ATCF_Campaign(get_the_ID());
$uid = wpo_makeid();
?>
<div class="item-campaign row item-layout-3">
	<div class="col-xs-12">
		<div class="campaign-title"><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></div>
		<div class="campaign-des"><?php 
echo wpo_excerpt(30, '...');
?>
	</div>
	</div>	

	<div class="col-xs-12">
		<div class="campaign-main-style-3">
			<ul class="campaign-status text-center">		
				<li class="campaign-raised">
					<span class="label"><?php 
_e('Current', TEXTDOMAIN);
?>
</span>	
					<span class="text"><?php 
echo esc_html($campaign->current_amount());
?>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:layout-item-3.php


示例4: array

$output = $title = $interval = $el_class = $collapsible = $active_tab = '';
global $wpo_accordion_item;
$wpo_accordion_item = array();
//
extract(shortcode_atts(array('title' => '', 'interval' => 0, 'el_class' => '', 'collapsible' => 'no', 'active_tab' => '1'), $atts));
$id = wpo_makeid();
wpb_js_remove_wpautop($content);
// var_dump($wpo_accordion_item);
?>
<div class="panel-group" id="accordion-<?php 
echo $id;
?>
">
	<?php 
foreach ($wpo_accordion_item as $key => $acc) {
    $itemid = wpo_makeid();
    ?>
	<div class="panel panel-default">
		<div class="panel-heading" data-toggle="collapse" data-parent="#accordion-<?php 
    echo $id;
    ?>
" href="#collapse-<?php 
    echo $itemid;
    ?>
">
			<h4 class="panel-title">
				<?php 
    echo $acc['title'];
    ?>
			</h4>
		</div>
开发者ID:k2jysy,项目名称:mergeshop,代码行数:31,代码来源:vc_accordion.php



注:本文中的wpo_makeid函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wpo_theme_options函数代码示例发布时间:2022-05-23
下一篇:
PHP wpo_excerpt函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap