本文整理汇总了PHP中plugin::render方法的典型用法代码示例。如果您正苦于以下问题:PHP plugin::render方法的具体用法?PHP plugin::render怎么用?PHP plugin::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plugin
的用法示例。
在下文中一共展示了plugin::render方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo html::script(url::file_loc('js') . 'media/js/tinymce/tiny_mce', true);
}
// Table Row Sort
if ($tablerowsort_enabled) {
echo html::script(url::file_loc('js') . 'media/js/jquery.tablednd_0_5', true);
}
// JSON2 for IE+
if ($json2_enabled) {
echo html::script(url::file_loc('js') . 'media/js/json2', true);
}
// Turn on picbox
echo html::script(url::file_loc('js') . 'media/js/picbox', true);
echo html::stylesheet(url::file_loc('css') . 'media/css/picbox/picbox');
// Render CSS and Javascript Files from Plugins
echo plugin::render('stylesheet');
echo plugin::render('javascript');
// Action::header_scripts_admin - Additional Inline Scripts
Event::run('ushahidi_action.header_scripts_admin');
?>
<script type="text/javascript" charset="utf-8">
<?php
echo $js . "\n";
?>
function info_search(){
$("#info-search").submit();
}
function show_addedit(toggle){
if (toggle) {
$("#addedit").toggle(400);
$(':input','#addedit')
.not(':button, :submit, :reset, #action')
示例2: _header_js
/**
* Javascript Files and Inline JS
*/
private function _header_js()
{
$core_js = "";
if ($this->map_enabled) {
$core_js .= html::script($this->js_url . "media/js/OpenLayers", true);
$core_js .= "<script type=\"text/javascript\">OpenLayers.ImgPath = '" . $this->js_url . "media/img/openlayers/" . "';</script>";
}
$core_js .= html::script($this->js_url . "media/js/jquery", true);
$core_js .= html::script($this->js_url . "media/js/jquery.ui.min", true);
$core_js .= html::script($this->js_url . "media/js/jquery.pngFix", true);
$core_js .= html::script($this->js_url . "media/js/jquery.query-1.2.3", true);
if ($this->map_enabled) {
$core_js .= $this->api_url;
if ($this->main_page || $this->this_page == "alerts") {
$core_js .= html::script($this->js_url . "media/js/selectToUISlider.jQuery", true);
}
if ($this->main_page) {
$core_js .= html::script($this->js_url . "media/js/jquery.flot", true);
$core_js .= html::script($this->js_url . "media/js/timeline", true);
$core_js .= "<!--[if IE]>" . html::script($this->js_url . "media/js/excanvas.min", true) . "<![endif]-->";
}
}
if ($this->treeview_enabled) {
$core_js .= html::script($this->js_url . "media/js/jquery.treeview");
}
if ($this->validator_enabled) {
$core_js .= html::script($this->js_url . "media/js/jquery.validate.min");
}
if ($this->photoslider_enabled) {
$core_js .= html::script($this->js_url . "media/js/picbox", true);
}
if ($this->videoslider_enabled) {
$core_js .= html::script($this->js_url . "media/js/coda-slider.pack");
}
// Javascript files from plugins
$plugin_js = plugin::render('javascript');
// Inline Javascript
$inline_js = "<script type=\"text/javascript\">\n <!--//\n\t\t\t" . '$(document).ready(function(){$(document).pngFix();});' . $this->js . "//-->\n </script>";
return $core_js . $plugin_js . $inline_js;
}
示例3: _header_js
/**
* Javascript Files and Inline JS
*/
private function _header_js()
{
$core_js = "";
if ($this->map_enabled) {
$core_js .= html::script($this->js_url . "media/js/OpenLayers", true);
$core_js .= "<script type=\"text/javascript\">OpenLayers.ImgPath = '" . $this->js_url . "media/img/openlayers/" . "';</script>";
}
$core_js .= html::script($this->js_url . "media/js/jquery", true);
//$core_js .= html::script($this->js_url."media/js/jquery.ui.min", true);
$core_js .= html::script("https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js", true);
$core_js .= html::script($this->js_url . "media/js/jquery.pngFix.pack", true);
if ($this->map_enabled) {
$core_js .= $this->api_url;
if ($this->main_page || $this->this_page == "alerts") {
$core_js .= html::script($this->js_url . "media/js/selectToUISlider.jQuery", true);
}
if ($this->main_page) {
$core_js .= html::script($this->js_url . "media/js/jquery.flot", true);
$core_js .= html::script($this->js_url . "media/js/timeline", true);
$core_js .= "<!--[if IE]>" . html::script($this->js_url . "media/js/excanvas.min", true) . "<![endif]-->";
}
}
if ($this->treeview_enabled) {
$core_js .= html::script($this->js_url . "media/js/jquery.treeview");
}
if ($this->validator_enabled) {
$core_js .= html::script($this->js_url . "media/js/jquery.validate.min");
}
if ($this->photoslider_enabled) {
$core_js .= html::script($this->js_url . "media/js/picbox", true);
}
if ($this->offline_capability) {
$core_js .= html::script($this->js_url . "media/js/offlineform.jquery", true);
}
if ($this->videoslider_enabled) {
$core_js .= html::script($this->js_url . "media/js/coda-slider.pack");
}
if ($this->colorpicker_enabled) {
$core_js .= html::script($this->js_url . "media/js/colorpicker");
}
// Javascript files from plugins
$plugin_js = plugin::render('javascript');
// Javascript files from themes
foreach (Kohana::config("settings.site_style_js") as $theme_js) {
$core_js .= html::script($theme_js, "", true);
}
// Inline Javascript
$inline_js = "<script type=\"text/javascript\">\n <!--//\nfunction runScheduler(img){img.onload = null;img.src = '" . url::site() . 'scheduler' . "';}\n\t\t\t" . '$(document).ready(function(){$(document).pngFix(); $("#reportForm").offlineForm(); });' . $this->js . "//-->\n </script>";
return $core_js . $plugin_js . $inline_js;
}
示例4: _header_js
/**
* Javascript Files and Inline JS
*/
private function _header_js()
{
$core_js = "";
if ($this->map_enabled) {
$core_js .= html::script($this->js_url . "media/js/OpenLayers", TRUE);
$core_js .= "<script type=\"text/javascript\">OpenLayers.ImgPath = '" . $this->js_url . "media/img/openlayers/" . "';</script>";
$core_js .= html::script($this->js_url . "media/js/ushahidi", TRUE);
}
$core_js .= html::script($this->js_url . "media/js/jquery", TRUE);
//$core_js .= html::script($this->js_url."media/js/jquery.ui.min", TRUE);
$core_js .= html::script("https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js", TRUE);
$core_js .= html::script($this->js_url . "media/js/jquery.pngFix.pack", TRUE);
$core_js .= html::script($this->js_url . "media/js/jquery.timeago", TRUE);
if ($this->map_enabled) {
$core_js .= $this->api_url;
if ($this->main_page || $this->this_page == "alerts") {
$core_js .= html::script($this->js_url . "media/js/selectToUISlider.jQuery", TRUE);
}
if ($this->main_page) {
// Notes: E.Kala <emmanuel(at)ushahidi.com>
// TODO: Only include the jqplot JS when the timeline is enabled
$core_js .= html::script($this->js_url . "media/js/jquery.jqplot.min");
$core_js .= html::script($this->js_url . "media/js/jqplot.dateAxisRenderer.min");
$core_js .= "<!--[if IE]>" . html::script($this->js_url . "media/js/excanvas.min", TRUE) . "<![endif]-->";
}
}
if ($this->treeview_enabled) {
$core_js .= html::script($this->js_url . "media/js/jquery.treeview");
}
if ($this->validator_enabled) {
$core_js .= html::script($this->js_url . "media/js/jquery.validate.min");
}
if ($this->photoslider_enabled) {
$core_js .= html::script($this->js_url . "media/js/picbox", TRUE);
}
if ($this->videoslider_enabled) {
$core_js .= html::script($this->js_url . "media/js/coda-slider.pack");
}
if ($this->colorpicker_enabled) {
$core_js .= html::script($this->js_url . "media/js/colorpicker");
}
$core_js .= html::script($this->js_url . "media/js/global");
if ($this->editor_enabled) {
$core_js .= html::script($this->js_url . "media/js/jwysiwyg/jwysiwyg/jquery.wysiwyg.js");
}
// Javascript files from plugins
$plugin_js = plugin::render('javascript');
// Javascript files from themes
foreach (Kohana::config("settings.site_style_js") as $theme_js) {
$core_js .= html::script($theme_js, "", TRUE);
}
// Inline Javascript
$inline_js = "<script type=\"text/javascript\">\n <!--//\nfunction runScheduler(img){img.onload = null;img.src = '" . url::site() . 'scheduler' . "';}\n\t\t\t" . '$(document).ready(function(){$(document).pngFix();});' . $this->js . "//-->\n </script>";
// Filter::header_js - Modify Header Javascript
Event::run('ushahidi_filter.header_js', $inline_js);
return $core_js . $plugin_js . $inline_js;
}