当前位置: 首页>>代码示例>>PHP>>正文


PHP Course::getSingleCategoryCount方法代码示例

本文整理汇总了PHP中Course::getSingleCategoryCount方法的典型用法代码示例。如果您正苦于以下问题:PHP Course::getSingleCategoryCount方法的具体用法?PHP Course::getSingleCategoryCount怎么用?PHP Course::getSingleCategoryCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Course的用法示例。


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

示例1: number_format

                                            <h4 class="post_title text-center">
                                                <a title="View Courses" href="<?php 
    echo SITE_URL . 'courses/category/' . $categoryObj->id . '/' . StringManipulator::slugify($categoryObj->name) . '/';
    ?>
"><?php 
    echo $categoryObj->name;
    ?>
</a>
                                            </h4>
                                            <div class="post_info">
                                                <span class="post_info_item post_info_posted">No of Courses: 
                                                    <a title="View Courses" href="<?php 
    echo SITE_URL . 'courses/category/' . $categoryObj->id . '/' . StringManipulator::slugify($categoryObj->name) . '/';
    ?>
" class="post_info_date"><?php 
    echo number_format(Course::getSingleCategoryCount($dbObj, $categoryObj->id));
    ?>
</a>
                                                </span>
                                            </div>
                                            <div class="post_descr">
                                                <p class="text-justify"><?php 
    echo StringManipulator::trimStringToFullWord(160, strip_tags($categoryObj->description));
    ?>
</p>
                                                <a title="View Courses" href="<?php 
    echo SITE_URL . 'courses/category/' . $categoryObj->id . '/' . StringManipulator::slugify($categoryObj->name) . '/';
    ?>
" class="sc_button sc_button_square sc_button_style_filled sc_button_bg_link sc_button_size_small">VIEW COURSES</a>					
                                            </div>
                                        </div>				<!-- /.post_content -->
开发者ID:Mojolagbe2014,项目名称:mojoimipakiti,代码行数:31,代码来源:course-categories.php

示例2: COURSE

    ?>
" style="width: 32.3333%;<?php 
    echo $addStyle;
    ?>
">
                                                            <div class="sc_price_block sc_price_block_style_<?php 
    echo $num;
    ?>
" style="width:100%;">
                                                                <div class="sc_price_block_title"><?php 
    echo $categoryObj->name;
    ?>
</div>
                                                                <div class="sc_price_block_money">
                                                                    <div class="sc_price"><span class="sc_price_money"><?php 
    echo Course::getSingleCategoryCount($dbObj, $categoryObj->id);
    ?>
</span></div> COURSE(S)
                                                                </div><div class="sc_price_block_description"><?php 
    echo StringManipulator::trimStringToFullWord(160, strip_tags($categoryObj->description));
    ?>
..</div><div class="sc_price_block_link"><a href="<?php 
    echo SITE_URL . 'courses/category/' . $categoryObj->id . '/' . StringManipulator::slugify($categoryObj->name) . '/';
    ?>
" class="sc_button sc_button_square sc_button_style_filled sc_button_bg_link sc_button_size_small">VIEW COURSES</a></div></div></div>
                                                        <?php 
    $num++;
}
?>
                                                    </div>
                                                </div>
开发者ID:Mojolagbe2014,项目名称:mojoimipakiti,代码行数:31,代码来源:index.php

示例3: Course

                                                                                    <a href="courses/" title="<?php 
    echo $category['name'];
    ?>
">
                                                                                        <img src="<?php 
    echo MEDIA_FILES_PATH1 . 'category/' . $category['image'];
    ?>
" width="500" height="500" title="<?php 
    echo $category['name'];
    ?>
" alt="<?php 
    echo $category['name'];
    ?>
">
                                                                                        <span class="thumbnail-overlay"><?php 
    echo Course::getSingleCategoryCount($dbObj, $category['id']);
    ?>
 Course(s) in <?php 
    echo $category['name'];
    ?>
</span>
                                                                                    </a>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-6 col-sm-12">
                                                                                <div class="content-pad">
                                                                                    <div class="item-content">
                                                                                        <h3 class="item-title"><a href="<?php 
    echo SITE_URL;
    ?>
开发者ID:Mojolagbe2014,项目名称:mojotiesiaigurupu,代码行数:31,代码来源:index.php

示例4: strtoupper

echo SITE_URL;
?>
courses/" class="btn btn-primary text-default">View Courses!!!</a></div>
                                        </div>
                                    </div>
                                    <div class="col-md-8 col-sm-7">
                                        <div class="content-pad single-event-detail">
                                            <div class="event-detail">
                                                <div class="event-speaker"></div><!--/event-speaker-->
                                                <div class="event-info row content-pad">
                                                    <div class="col-md-6 col-sm-6">
                                                        <a href="<?php 
echo SITE_URL;
?>
courses/" > <i class="fa fa-book"></i> Courses Available: <?php 
echo strtoupper(Number::convertToWords(Course::getSingleCategoryCount($dbObj, $categoryObj->id)));
?>
</a>
                                                        
                                                    </div>
                                                </div><!--/event-info-->
                                            </div><!--/event-detail-->
                                            <div class="event-content">
                                                <div class="content-dropcap">
                                                    <h3>Category Details</h3>
                                                    <?php 
echo $categoryObj->description;
?>
                                                </div>
                                               
                                                <div class="event-more-detail">
开发者ID:Mojolagbe2014,项目名称:mojotiesiaigurupu,代码行数:31,代码来源:category.php


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