本文整理汇总了PHP中html_helper::baseURL方法的典型用法代码示例。如果您正苦于以下问题:PHP html_helper::baseURL方法的具体用法?PHP html_helper::baseURL怎么用?PHP html_helper::baseURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类html_helper
的用法示例。
在下文中一共展示了html_helper::baseURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showBanner
public static function showBanner($group, $banner = '')
{
if (!config::item('plugins', 'core', 'banners') || !session::permission('banners_show', 'banners')) {
return '';
}
loader::model('banners/banners');
$banner = codebreeder::instance()->banners_model->getBanner($banner, $group);
if (!$banner || input::protocol() == 'https' && !$banner['secure_mode']) {
return '';
}
if ($banner['count_views']) {
codebreeder::instance()->banners_model->updateViews($banner['banner_id']);
}
if ($banner['count_clicks']) {
$banner['code'] = '<div style="display:block" onclick="$(\'#banner_id_' . $banner['banner_id'] . '\').attr(\'src\',\'' . html_helper::siteURL('banners/click/' . $banner['banner_id']) . '\');return true;">' . $banner['code'] . '<img src="' . html_helper::baseURL('assets/images/banners/blank.gif') . '" border="0" style="width:0px;height:0px;" alt="" id="banner_id_' . $banner['banner_id'] . '" /></div>';
}
return $banner['code'];
}
示例2: function
if ($limit == 1) {
?>
multi_selection : false,
<?php
}
?>
url : '<?php
echo html_helper::siteURL($action);
?>
?ajax=true',
flash_swf_url : '<?php
echo html_helper::baseURL();
?>
externals/plupload/plupload.flash.swf',
silverlight_xap_url : '<?php
echo html_helper::baseURL();
?>
externals/plupload/plupload.silverlight.xap',
filters : [
{title : "Files", extensions : "<?php
echo $extensions;
?>
"}
],
preinit : {
Init: function(up, params) {
//$('#uploader-container .error').html("Current runtime: " + params.runtime);
$('#uploader-submit').click(function(e) {
uploader.start();
示例3:
</div><!--END OF CONTENT-->
<div id="footer">
<div class="foot-wrap clearfix">
<ul class="foot-links clearfix">
<li><a title="link1" href="#">Site Map</a></li>
<li>|</li>
<li><a title="link2" href="#">Privacy Policy</a></li>
<li>|</li>
<li><a title="link3" href="#">Terms of Membership</a></li>
<li>|</li>
<li><a title="link4" href="#">Terms & Conditions</a></li>
<li>|</li>
<li><a title="link4" href="#">Contact Us</a></li>
</ul>
<p>Copyright © TutorNavi All rights reserved.</p>
<a class="foot-logo" title="Logo" href="#"><img alt="Logo" src="<?php
echo html_helper::baseURL('assets/images/tutor_front/logo2.png');
?>
" /></a>
</div>
<div class="shadow"></div>
</div><!--END OF FOOTER-->
</div>
<!--END OF PAGE CONTENT-->
</div><!--END OF WRAPPER-->
</body>
</html>