本文整理汇总了PHP中Plugin::addCss方法的典型用法代码示例。如果您正苦于以下问题:PHP Plugin::addCss方法的具体用法?PHP Plugin::addCss怎么用?PHP Plugin::addCss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plugin
的用法示例。
在下文中一共展示了Plugin::addCss方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FS_toggleEventContent_PreTest
function FS_toggleEventContent_PreTest()
{
$toggle = FS_toggleEventContent_getDefault();
if ($toggle == 1) {
Plugin::addCss('/css/toggle-event-content.css');
}
}
示例2: foreach
foreach ($_['story']['effects'] as $effect) {
$current = new Effect();
$current->type = $effect['type'];
$current->setValues($effect);
$current->sort = $i;
$current->union = $cause['union'];
$current->story = $story->id;
$current->save();
$i++;
}
}, array());
break;
}
}
function story_vocal_command(&$response, $actionUrl)
{
global $conf;
require_once dirname(__FILE__) . '/Cause.class.php';
$causeManager = new Cause();
$vocals = $causeManager->loadAll(array('type' => 'listen'));
foreach ($vocals as $vocal) {
$response['commands'][] = array('command' => $conf->get('VOCAL_ENTITY_NAME') . ' ' . $vocal->value, 'url' => $actionUrl . '?action=plugin_story_check&type=talk&event=' . $vocal->id, 'confidence' => '0.90' + $conf->get('VOCAL_SENSITIVITY'));
}
}
Plugin::addCss("/css/main.css");
Plugin::addJs("/js/main.js");
Plugin::addHook("menubar_pre_home", "story_plugin_menu");
Plugin::addHook("home", "story_plugin_page");
Plugin::addHook("action_post_case", "story_plugin_action");
Plugin::addHook("vocal_command", "story_vocal_command");
Plugin::addHook("cron", "plugin_story_check");
示例3: isset
$right_toverify = isset($_['id']) ? 'u' : 'c';
if ($myUser->can('room', $right_toverify)) {
$room = new Room();
if ($right_toverify == "u") {
$room = $room->load(array("id" => $_['id']));
}
$room->setName($_['nameRoom']);
$room->setDescription($_['descriptionRoom']);
$room->save();
header('location:setting.php?section=room');
} else {
header('location:setting.php?section=room&error=Vous n\'avez pas le droit de faire ça!');
}
break;
case 'room_delete_room':
if ($myUser->can('room', 'd')) {
$roomManager = new Room();
$roomManager->delete(array('id' => $_['id']));
header('location:setting.php?section=room');
} else {
header('location:setting.php?section=room&error=Vous n\'avez pas le droit de faire ça!');
}
break;
}
}
Plugin::addCss("/css/style.css");
Plugin::addHook("setting_menu", "room_plugin_setting_menu");
Plugin::addHook("setting_bloc", "room_plugin_setting_page");
Plugin::addHook("action_post_case", "room_action_room");
Plugin::addHook("menubar_pre_home", "room_plugin_menu");
Plugin::addHook("home", "room_plugin_page");
示例4:
.driver_content .driver_properties li .driver_property_label{
width: 35%;
}
.driver_content .driver_properties li .driver_property_value{
min-width: 60%;
}
</style>
<div class="driver_content">
<div class="driver_image">
<i class="fa fa-sun">image</i>
</div>
<div class="driver_view">
19°
</div>
<label class="driver_properties_title">Propriétés</label>
<ul class="driver_properties">
<li>
<div class="driver_property_label">Label</div><div class="driver_property_value">Valeur html</div>
</li>
</ul>
</div>
</body>
</html>
*/
Plugin::addCss('/css/style.css', true);
Plugin::addJs('/js/main.js', true);
Plugin::addHook("widgets", "dash_monitoring_plugin_menu");
Plugin::addHook("action_post_case", "dash_monitoring_plugin_actions");
示例5: FileUploaded
<?php
/*
@name Fichier
@author Valentin CARRUESCO <idleman@idleman.fr>
@link http://blog.idleman.fr
@licence CC by nc sa
@version 1.0.0
@description Gestion des fichiers et medias
@type component
*/
//Check et creation de la table si non existente
require_once 'FileUploaded.class.php';
$fileManager = new FileUploaded();
$fileManager->checkTable(true);
Plugin::addCss("/css/style.css", true);
Plugin::addJs("/js/dropzone.min.js", true);
Plugin::addJs("/js/main.js", true);
示例6:
<?php
}
?>
<tr>
<td colspan="3"><div class="btn" onclick="plugin_vocalinfo_save();">Enregistrer</div></td>
</tr>
</table>
</div>
<?php
} else {
?>
<div id="main" class="wrapper clearfix">
<article>
<h3>Vous devez être connecté</h3>
</article>
</div>
<?php
}
}
}
Plugin::addJs('/js/jquery.dashboard.js', true);
Plugin::addJs('/js/main.js', true);
Plugin::addCss('/css/jquery.dashboard.css', true);
Plugin::addHook("home", "dashboard_plugin_home");
Plugin::addHook("action_post_case", "dashboard_plugin_actions");
Plugin::addHook("preference_menu", "dashboard_plugin_preference_menu");
Plugin::addHook("preference_content", "dashboard_plugin_preference_page");
示例7: visuelle
<?php
/*
@name Wysiwyg
@author Valentin CARRUESCO <idleman@idleman.fr>
@link http://blog.idleman.fr
@licence CC by nc sa
@version 1.0.0
@description Gestion de l'edition visuelle (wysiwyg)
@type component
*/
Plugin::addCss("/css/trumbowyg.css", true);
Plugin::addJs("/js/trumbowyg.min.js", true);
Plugin::addJs("/js/main.js", true);
示例8: isset
$cssTab[] = $cssFile;
}
}
isset($cssTab) ? sort($cssTab) : ($cssTab = false);
return $cssTab;
}
function zcssleedmaker_plugin_update($_)
{
if ($_['action'] == 'zcssleedmaker_update') {
$configurationManager = new Configuration();
$configurationManager->getAll();
$configurationManager->put('plugin_cssLeedMaker_css', $_['plugin_cssLeedMaker_css']);
$configurationManager->put('plugin_cssLeedMaker_addcss', rawurlencode($_['plugin_cssLeedMaker_addcss']));
$_SESSION['configuration'] = null;
header('location: settings.php#CSSLeedMaker');
}
}
// Ajout de la fonction au Hook situé avant l'affichage des évenements
$configurationManager = new Configuration();
$configurationManager->getAll();
$cssfile = $configurationManager->get('plugin_cssLeedMaker_css');
if ($cssfile != 'none') {
Plugin::addCss('/cssmaker/' . $cssfile);
}
Plugin::addCss('/style.php');
$myUser = isset($_SESSION['currentUser']) ? unserialize($_SESSION['currentUser']) : false;
if ($myUser != false) {
Plugin::addHook('setting_post_link', 'zcssleedmaker_plugin_setting_link');
Plugin::addHook('setting_post_section', 'zcssleedmaker_plugin_setting_bloc');
Plugin::addHook("action_post_case", "zcssleedmaker_plugin_update");
}