本文整理汇总了PHP中Plugins::get_icon_path方法的典型用法代码示例。如果您正苦于以下问题:PHP Plugins::get_icon_path方法的具体用法?PHP Plugins::get_icon_path怎么用?PHP Plugins::get_icon_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plugins
的用法示例。
在下文中一共展示了Plugins::get_icon_path方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayPlugins
function displayPlugins($location)
{
global $pluginForm;
$allPlugins = Plugins::get_plugins();
$pluginNames = array();
$pluginHandler = array();
$pluginHeadings = array("All Plugins");
foreach ($allPlugins as $id => $value) {
$curPlugin = new Plugins($id);
if ($curPlugin->get_location() == $location && $curPlugin->get_enabled() == true) {
if ($curPlugin->get_icon_path() != "NONE") {
$iconPath = str_replace(" ", "%20", $curPlugin->get_icon_path());
array_push($pluginNames, "<img class='plugIcon' src='" . $iconPath . "'></img>" . $curPlugin->get_name());
} else {
array_push($pluginNames, $curPlugin->get_name());
}
array_push($pluginHandler, "handleEvent('plugins.php?pluginaction=showPlugin&pluginID=" . $id . "&className=" . $curPlugin->get_class_name() . "')");
}
}
$pluginForm->setHeadings($pluginHeadings);
$pluginForm->setTableWidth("150px");
$pluginForm->setEventHandler($pluginHandler);
$pluginForm->setTitles($pluginNames);
$pluginForm->setSortable(true);
return $pluginForm->showAll();
}
示例2: checkAll
<script type='text/javascript' src='js/mouseClicks.js'></script>
<script type='text/javascript' src='js/Ajax.js'></script>
<script type='text/javascript'>
function checkAll(checkname, exby) {
for (i = 0; i < checkname.length; i++)
checkname[i].checked = exby.checked? true:false
}
</script>
<?php
include_once "classes/Plugins.php";
$allPlugins = Plugins::get_plugins();
echo "<style>";
foreach ($allPlugins as $id => $value) {
$curPlugin = new Plugins($id);
$iconPath = $curPlugin->get_icon_path();
$iconPath = str_replace(" ", "%20", $iconPath);
echo "[icon^=\"plugIcon" . $id . "\"]{\n\tbackground:transparent url(" . $iconPath . ") no-repeat center left;\n\t}";
}
echo "</style>";
?>
</head>
<body>
<div id="container">
<div id="banner">
<ul id="status">
<?php
if ($access == 100) {
echo "<li><a href='configurations.php'><u>Configurations</u></a></li>";