本文整理汇总了PHP中plugin::add_stylesheet方法的典型用法代码示例。如果您正苦于以下问题:PHP plugin::add_stylesheet方法的具体用法?PHP plugin::add_stylesheet怎么用?PHP plugin::add_stylesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plugin
的用法示例。
在下文中一共展示了plugin::add_stylesheet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
// Add a Sub-Nav Link
Event::add('ushahidi_action.nav_admin_reports', array($this, '_report_link'));
// Only add the events if we are on that controller
if (Router::$current_uri == "admin/reports") {
plugin::add_stylesheet('analysis/views/css/buttons');
// Add Buttons to the report List
Event::add('ushahidi_action.report_extra_admin', array($this, '_reports_list_buttons'));
} elseif (Router::$controller == 'analysis') {
plugin::add_javascript('analysis/views/js/ui.dialog');
plugin::add_javascript('analysis/views/js/ui.draggable');
plugin::add_javascript('analysis/views/js/ui.resizable');
plugin::add_stylesheet('analysis/views/css/main');
} elseif (strripos(Router::$current_uri, "admin/reports/edit") !== false) {
plugin::add_stylesheet('analysis/views/css/report');
plugin::add_javascript('analysis/views/js/jquery.copy.min');
Event::add('ushahidi_action.report_pre_form_admin', array($this, '_reports_list_analysis'));
Event::add('ushahidi_action.header_scripts_admin', array($this, '_save_analysis_js'));
Event::add('ushahidi_action.report_edit', array($this, '_save_analysis'));
} elseif (strripos(Router::$current_uri, "reports/submit") !== false) {
//Add dropdown fields to the submit form
Event::add('ushahidi_action.report_form', array($this, '_submit_form'));
//Save the contents of the dropdown
Event::add('ushahidi_action.report_submit', array($this, '_handle_post_data'));
Event::add('ushahidi_action.report_add', array($this, '_save_submit_form'));
}
}
示例2: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
// Only add the events if we are on that controller
if (Router::$controller == 'reports') {
switch (Router::$method) {
// Hook into the Report Add/Edit Form in Admin
case 'edit':
// Hook into the form itself
Event::add('ushahidi_action.report_form_admin', array($this, '_report_form'));
// Hook into the report_submit_admin (post_POST) event right before saving
// Event::add('ushahidi_action.report_submit_admin', array($this, '_report_validate'));
// Hook into the report_edit (post_SAVE) event
Event::add('ushahidi_action.report_edit', array($this, '_report_form_submit'));
break;
// Hook into the Report view (front end)
// Hook into the Report view (front end)
case 'view':
plugin::add_stylesheet('actionable/views/css/actionable');
Event::add('ushahidi_action.report_meta', array($this, '_report_view'));
break;
}
} elseif (Router::$controller == 'feed') {
// Add Actionable Tag to RSS Feed
Event::add('ushahidi_action.feed_rss_item', array($this, '_feed_rss'));
}
}
示例3: __construct
public function __construct()
{
parent::__construct();
// Set Table Prefix
$this->table_prefix = Kohana::config('database.default.table_prefix');
// Load Header & Footer
$this->template->header = new View('keitai/header');
$this->template->footer = new View('keitai/footer');
$this->template->header->site_name = Kohana::config('settings.site_name');
$this->template->header->site_tagline = Kohana::config('settings.site_tagline');
plugin::add_javascript('keitai/views/js/jquery');
plugin::add_javascript('keitai/views/js/jquery.treeview');
plugin::add_javascript('keitai/views/js/expand');
plugin::add_stylesheet('keitai/views/css/styles');
plugin::add_stylesheet('keitai/views/css/jquery.treeview');
$this->template->header->show_map = FALSE;
$this->template->header->js = "";
$this->template->header->breadcrumbs = "";
// Google Analytics
$google_analytics = Kohana::config('settings.google_analytics');
$this->template->footer->google_analytics = $this->_google_analytics($google_analytics);
$this->template->header->latlong = (isset($_GET['latlong'])) ? $_GET['latlong'] : "";
$this->template->footer->latlong = (isset($_GET['latlong'])) ? $_GET['latlong'] : "";
}
示例4: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
// Only add the events if we are on that controller
if (Router::$controller == 'reports' and (Router::$method == 'view' or Router::$method == 'index')) {
plugin::add_stylesheet('printreport/css/print');
}
}
示例5: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
// Add a Sub-Nav Link
Event::add('ushahidi_action.nav_admin_settings', array($this, '_settings_link'));
Event::add('ushahidi_action.nav_main_top', array($this, '_top_nav_link'));
// Only add the events if we are on the main controller
if (Router::$controller == 'main') {
switch (Router::$method) {
// Hook into the main dashboard
case 'index':
plugin::add_stylesheet('flickrwijit/media/css/style');
plugin::add_stylesheet('../media/css/picbox/picbox');
plugin::add_javascript('../media/js/picbox');
Event::add('ushahidi_action.main_sidebar', array($this, '_display_flickrwiji'));
break;
}
} elseif (Router::$controller == 'flickrwijit') {
// Add Flickrwijit to settings page
switch (Router::$method) {
case 'index':
//Hook js and css files into flickrwijit page
plugin::add_stylesheet('flickrwijit/media/css/style');
plugin::add_stylesheet('../media/css/picbox/picbox');
plugin::add_javascript('../media/js/picbox');
break;
}
}
}
示例6: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
if (Router::$controller == 'main') {
// Add stylesheet
plugin::add_stylesheet('categorycloud/views/css/categorycloud');
Event::add('ushahidi_action.main_sidebar', array($this, '_generate_cloud'));
}
}
示例7: add
/**
* Adds all other events for the plugin framework to the application
*/
public function add()
{
// Add the nexmo plugin to the list of SMS providers
plugin::add_sms_provider('nexmo');
// Add Nexmo CSS
plugin::add_stylesheet('nexmo/views/css/nexmo');
// Add event callbacks
Event::add('nexmo_action.update_message_log', array($this, 'update_message_log'));
}
示例8: add
public function add()
{
switch (Router::$current_uri) {
case "reports/download":
plugin::add_stylesheet('downloadreports/views/css/download_reports');
Event::add('ushahidi_action.header_scripts', array($this, '_add_scripts'));
break;
}
}
示例9: setup_adminmap
public static function setup_adminmap($map_controller, $map_view = "adminmap/mapview", $map_css = "adminmap/css/adminmap")
{
//set the CSS for this
plugin::add_stylesheet($map_css);
plugin::add_javascript("adminmap/js/jquery.flot");
plugin::add_javascript("adminmap/js/excanvas.min");
plugin::add_javascript("adminmap/js/timeline");
$map_controller->template->content = new View($map_view);
// Get Default Color
$map_controller->template->content->default_map_all = Kohana::config('settings.default_map_all');
}
示例10: add
public function add()
{
// Add an Admin Sub-Nav Link
Event::add('ushahidi_action.nav_admin_settings', array($this, '_settings_link'));
// Add the events on the main controller only
if (Router::$controller == 'crowdflower_settings') {
switch (Router::$method) {
// Hook into the main dashboard
case 'index':
plugin::add_stylesheet('crowdflower/media/css/crowdflower');
break;
}
}
}
示例11: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
// Only add the events if we are on that controller
if (Router::$controller == 'main')
{
plugin::add_javascript('fullscreenmap/views/js/jquery.colorbox');
#plugin::add_javascript('fullscreenmap/views/js/ui.draggable');
plugin::add_stylesheet('fullscreenmap/views/css/fullscreenmap');
plugin::add_stylesheet('fullscreenmap/views/css/colorbox');
Event::add('ushahidi_action.header_scripts', array($this, '_main_js'));
Event::add('ushahidi_action.map_main_filters', array($this, '_button'));
}
}
示例12: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
if (Router::$controller == "main" || Router::$controller == "bigmap" || Router::$method == "groupmap") {
Event::add('ushahidi_action.header_scripts', array($this, '_add_js'));
plugin::add_stylesheet("densitymap/css/densitymap");
}
if (Router::$controller == "reports") {
Event::add('ushahidi_filter.fetch_incidents_set_params', array($this, '_add_incident_filter'));
Event::add('ushahidi_action.report_filters_ui', array($this, '_add_report_filter_ui'));
Event::add('ushahidi_action.header_scripts', array($this, '_add_report_filter_js'));
}
if (Router::$controller == "json" || Router::$controller == "densitymap") {
Event::add('ushahidi_filter.fetch_incidents_set_params', array($this, '_add_incident_filter'));
}
}
示例13: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
if (Router::$controller == 'reports' and (Router::$method == 'view' or Router::$method == 'edit')) {
Event::add('ushahidi_action.report_extra', array($this, 'show_ivr_history'));
Event::add('ushahidi_action.report_form_admin', array($this, 'show_ivr_history'));
plugin::add_stylesheet('ivr_api/css/ivr_api');
Event::add('ushahidi_action.header_scripts', array($this, 'add_js'));
Event::add('ushahidi_action.header_scripts_admin', array($this, 'add_js_admin'));
}
//get the export link up on the reports page
Event::add('ushahidi_action.nav_admin_reports', array($this, 'reports_menu_link'));
if (Router::$controller == "reports") {
Event::add('ushahidi_filter.fetch_incidents_set_params', array($this, '_add_ivr_comment_filter'));
Event::add('ushahidi_action.report_filters_ui', array($this, '_add_report_filter_ui'));
Event::add('ushahidi_action.header_scripts', array($this, '_add_report_filter_js'));
}
}
示例14: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
//Just in case we need this
Event::add('ushahidi_action.nav_main_top', array($this, '_add_big_map_tab'));
//adds the big map tab
Event::add('ushahidi_action.nav_admin_main_top', array($this, '_admin_nav_tab'));
//adds the admin map tab
if (Router::$controller == "main") {
Event::add('ushahidi_action.map_main_filters', array($this, '_add_big_map_main_button'));
//adds the big map tab
//use sneaky JS
plugin::add_javascript("adminmap/js/embedd_setup");
plugin::add_stylesheet("adminmap/css/embedd_setup");
Event::add('ushahidi_action.main_sidebar', array($this, '_add_embedd'));
}
//if dealing with the
if (Router::$controller == "reports") {
Event::add('ushahidi_filter.fetch_incidents_set_params', array($this, '_add_logical_operator_filter'));
Event::add('ushahidi_action.report_filters_ui', array($this, '_add_report_filter_ui'));
Event::add('ushahidi_action.header_scripts', array($this, '_add_report_filter_js'));
}
}
示例15: add
/**
* Adds all the events to the main Ushahidi application
*/
public function add()
{
// Only add the events if we are on that controller
if (Router::$controller == 'reports') {
switch (Router::$method) {
// Hook into the Report Add/Edit Form in Admin
case 'edit':
plugin::add_stylesheet('locationhighlightlite/media/css/locationhighlightlite');
plugin::add_javascript('locationhighlightlite/media/js/locationhighlightlite');
break;
//Hook into frontend Submit View
//Hook into frontend Submit View
case 'submit':
plugin::add_stylesheet('locationhighlightlite/media/css/locationhighlightlite');
plugin::add_javascript('locationhighlightlite/media/js/locationhighlightlite');
break;
default:
break;
}
//end of switch
}
//end of if reports
}