本文整理汇总了PHP中qoolinfo函数的典型用法代码示例。如果您正苦于以下问题:PHP qoolinfo函数的具体用法?PHP qoolinfo怎么用?PHP qoolinfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了qoolinfo函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: halcyonic_favicon
function halcyonic_favicon()
{
$settings = theme_settings();
if (strstr("http", $settings['favicon'])) {
?>
<link rel="shortcut icon" href="<?php
echo $settings['favicon'];
?>
" />
<?php
} else {
?>
<link rel="shortcut icon" href="<?php
qoolinfo('home');
?>
/<?php
template_path();
?>
/<?php
echo $settings['favicon'];
?>
" />
<?php
}
}
示例2: t
?>
'><i class=" icon-edit"> </i><?php
t("Edit");
?>
</a></td>
<td ><a class="btn btn-danger warnme" title="<?php
t('Delete');
?>
" rel="<?php
t('Please revise your action. Are you sure you want to do this?');
?>
" href='<?php
qoolinfo('home');
?>
/admin/del<?php
qoolinfo('theaction');
?>
?id=<?php
echo $v['id'];
?>
'><i class=" icon-remove"> </i><?php
t("Delete");
?>
</a></td>
</tr>
<?php
}
?>
</table>
</div>
</div><!--/span-->
示例3: qoolinfo
// Drop lists for link/image/media/template dialogs
//template_external_list_url : "<?php
qoolinfo('home');
?>
/admin/ajaxgeteditortemplates",
external_link_list_url : "<?php
qoolinfo('home');
?>
/admin/ajaxgeteditorlinks",
external_image_list_url : "<?php
qoolinfo('home');
?>
/admin/ajaxgeteditorimages",
//media_external_list_url : "<?php
qoolinfo('home');
?>
/admin/ajaxgeteditormedia",
setup : function(ed) {
// Add all custom buttons
<?php
foreach ($btns = get_array('editorBtns') as $k => $v) {
?>
ed.addButton('<?php
echo $v['name'];
?>
', {
title : '<?php
echo $v['title'];
?>
',
示例4: list_content
function list_content($args = array('echo' => 1))
{
try {
$qool =& get_array('qool');
$content = $qool->getContentList(10);
foreach ($content as $k => $v) {
$id = $qool->getAllBySlug($v['slug']);
$list .= "<li><a href='" . qoolinfo('home', 0) . "/" . $qool->getFullSlugById($id['id']) . "'>{$v['title']}</a></li>";
}
if (!0 == $args['echo']) {
return $list;
}
echo $list;
} catch (Exception $e) {
echo "No content";
}
}
示例5: plugins_url
function plugins_url($path = '', $plugin = '')
{
$url = qoolinfo('home', 0) . "/";
return apply_filters('plugins_url', $url, $path, $plugin);
}