function FS_toggleEventContent_PreTest()
{
    $toggle = FS_toggleEventContent_getDefault();
    if ($toggle == 1) {
        Plugin::addCss('/css/toggle-event-content.css');
    }
}
Beispiel #2
0
                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");
            $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");
.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");
Beispiel #5
0
<?php

/*
@name Fichier
@author Valentin CARRUESCO <*****@*****.**>
@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);
	<?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");
Beispiel #7
0
<?php

/*
@name Wysiwyg
@author Valentin CARRUESCO <*****@*****.**>
@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);
            $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");
}