本文整理汇总了PHP中get_javascript_url函数的典型用法代码示例。如果您正苦于以下问题:PHP get_javascript_url函数的具体用法?PHP get_javascript_url怎么用?PHP get_javascript_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_javascript_url函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: addScript
function addScript($url, $plugin)
{
if (!isset($this->scripts)) {
$this->scripts = array();
}
$this->scripts[] = is_valid_url($url) ? $url : get_javascript_url($url, $plugin, true);
}
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:7,代码来源:AjaxResponse.class.php
示例2: use_widget
/**
* Use widget
*
* @access public
* @param string $widget_name
* @return void
*/
function use_widget($widget_name)
{
if (function_exists('add_javascript_to_page') && function_exists('add_stylesheet_to_page')) {
add_javascript_to_page("widgets/{$widget_name}/widget.js");
add_stylesheet_to_page(get_javascript_url("widgets/{$widget_name}/widget.css"));
}
// if
}
开发者ID:abhinay100,项目名称:feng_app,代码行数:15,代码来源:common.php
示例3: smarty_function_add_javascript
/**
* Add javascript link to the page
*
* @param array $params
* @param Smarty $smarty
* @return string
*/
function smarty_function_add_javascript($params, &$smarty)
{
$name = array_var($params, 'name');
if (empty($name)) {
return new InvalidParamError('name', $name, "'name' parameter is required for 'add_javascript' helper", true);
}
// if
$module = array_var($params, 'module');
if (!isset($params['type'])) {
$params['type'] = 'text/javascript';
}
// if
unset($params['name']);
if (isset($params['module'])) {
unset($params['module']);
}
// if
PageConstruction::addScript(get_javascript_url($name, $module), false, $params);
return '';
}
开发者ID:NaszvadiG,项目名称:activecollab_loc,代码行数:27,代码来源:function.add_javascript.php
示例4: function
?>
")
.jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
<?php
echo $extension;
?>
: "<?php
echo externalUrl($file->getDownloadUrl() . '&inline=1');
?>
",
});
},
swfPath: "<?php
echo externalUrl(get_javascript_url('jplayer'));
?>
",
supplied: "<?php
echo $extension;
?>
"
})
.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid both jPlayers playing together.
$(this).jPlayer("pauseOthers");
});
});
</script>
<div class="jp-video jp-video-270p">
<div class="jp-type-single">
<div id="jplayer_<?php
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:video_player.php
示例5: javascript_tag
/**
* Generate javascript tag
*
* @access public
* @param string $src Path to external file
* @param string $content Tag content
* @return string
*/
function javascript_tag($src = null, $content = null) {
// Content formatting
if ($content) {
$content = "\n" . $content . "\n";
}
// Prepare attributes
$attributes = array('type' => 'text/javascript');
if (!is_null($src)) {
$attributes['src'] = is_valid_url($src) ? $src : get_javascript_url($src);
} // if
// Generate
return open_html_tag('script', $attributes) . $content . close_html_tag('script');
} // javascript_tag
开发者ID:rjv,项目名称:Project-Pier,代码行数:25,代码来源:page.php
示例6: get_javascript_url
var editor = CKEDITOR.replace('<?php
echo $genid;
?>
ckeditor', {
height: (h-200) + 'px',
allowedContent: true,
enterMode: CKEDITOR.ENTER_DIV,
shiftEnterMode: CKEDITOR.ENTER_BR,
disableNativeSpellChecker: false,
language: '<?php
echo $loc;
?>
',
customConfig: '',
contentsCss: ['<?php
echo get_javascript_url('ckeditor/contents.css') . '?rev=' . product_version_revision();
?>
', '<?php
echo get_stylesheet_url('og/ckeditor_override.css') . '?rev=' . product_version_revision();
?>
'],
toolbar: [
[ 'Source','-','Font','FontSize','-','Bold','Italic','Underline','-', 'SpellChecker', 'Scayt','-',
'Link','Unlink','-',
'TextColor','BGColor','RemoveFormat','-',
'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'
]
],
on: {
instanceReady: function(ev) {
og.adjustCkEditorArea('<?php
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:31,代码来源:add_account.php
示例7: set_page_title
<?php
set_page_title(lang('attach files'));
project_tabbed_navigation(PROJECT_TAB_FILES);
project_crumbs(array(array(lang('files'), get_url('files')), array(lang('attach files'))));
add_stylesheet_to_page('project/attach_files.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/attachToObjectForm.js');
?>
"></script>
<form action="<?php
echo $attach_to_object->getAttachFilesUrl();
?>
" method="post" enctype="multipart/form-data">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div class="hint"><?php
echo lang('attach files to object desc', $attach_to_object->getObjectUrl(), clean($attach_to_object->getObjectName()));
?>
</div>
<div>
<?php
echo radio_field('attach[what]', array_var($attach_data, 'what') == 'existing_file', array('value' => 'existing_file', 'id' => 'attachFormExistingFile', 'onclick' => 'App.modules.attachToObjectForm.toggleAttachForms()'));
?>
<label for="attachFormExistingFile" class="checkbox"><?php
echo lang('attach existing file');
?>
</label>
</div>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:attach_to_object.php
示例8: set_page_title
<?php
set_page_title($task_list->getName());
project_tabbed_navigation(PROJECT_TAB_TASKS);
project_crumbs(array(array(lang('tasks'), get_url('task')), array($task_list->getName())));
if (ProjectTaskList::canAdd(logged_user(), active_project())) {
add_page_action(lang('add task list'), get_url('task', 'add_list'));
}
// if
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/addTaskForm.js');
?>
"></script>
<?php
$this->assign('on_list_page', true);
$this->includeTemplate(get_template_path('task/task_list'));
?>
<script type="text/javascript">
App.modules.addTaskForm.hideAllAddTaskForms();
</script>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:21,代码来源:view_list.php
示例9: smarty_function_javascript_url
/**
* Return script URL
*
* Parameters:
*
* - name - script filename
* - module - name of the module, if not present global data is used
*
* @param array $params
* @param Smarty $smarty
* @return string
*/
function smarty_function_javascript_url($params, &$smarty)
{
$name = array_var($params, 'name');
return get_javascript_url($name, array_var($params, 'module'));
}
开发者ID:NaszvadiG,项目名称:activecollab_loc,代码行数:17,代码来源:function.javascript_url.php
示例10: set_page_title
<?php
set_page_title(lang('add contact'));
project_tabbed_navigation();
project_crumbs(array(array(lang('people'), get_url('project', 'people')), lang('add contact')));
add_stylesheet_to_page('project/people.css');
add_stylesheet_to_page('project/attachments.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/addContactToProjectForm.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/addContactForm.js');
?>
"></script>
<form action="<?php
echo $project_init ? $project->getAddContactUrl(array('project_init' => '1')) : $project->getAddContactUrl();
?>
" method="post" enctype="multipart/form-data">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div>
<?php
echo radio_field('contact[what]', array_var($contact_data, 'what', 'existing') == 'existing', array('value' => 'existing', 'id' => 'contactFormExistingContact'));
?>
<?php
echo label_tag(lang('attach existing contact'), 'contactFormExistingContact', false, array('class' => 'checkbox'));
?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:add_contact.php
示例11: add_stylesheet_to_page
<?php
if (!$attach_files_js_included) {
add_stylesheet_to_page('project/attach_files.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/attachFiles.js');
?>
"></script>
<?php
}
// if
?>
<fieldset id="attachFiles_<?php
echo $attach_files_id;
?>
" class="attachFiles">
<legend><?php
echo lang('attach files');
?>
</legend>
<div id="attachFilesControls_<?php
echo $attach_files_id;
?>
">
<div id="attachFiles_<?php
echo $attach_files_id;
?>
_1"><?php
echo file_field($attach_files_prefix . '1');
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:attach_files.php
示例12: get_javascript_url
language: '<?php echo $loc ?>',
customConfig: '',
toolbar: [
['Source','-','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt','-',
'Undo','Redo','-','Find','Replace','-','SelectAll', '-',
'Format','Font','FontSize'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript','-',
'NumberedList','BulletedList','-','Outdent','Indent','Blockquote','-',
'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-',
'Link','Unlink', 'Anchor', '-','Maximize','-',
'Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','-',
'TextColor','BGColor','RemoveFormat']
],
skin: 'kama',
contentsCss: '<?php echo get_javascript_url("ckeditor/contents.css")."?rev=".product_version_revision()?>',
keystrokes: [
[ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ],
[ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ],
[ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ],
[ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ],
[ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ],
[ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ],
[ CKEDITOR.CTRL + 76 /*L*/, 'link' ],
[ CKEDITOR.CTRL + 66 /*B*/, 'bold' ],
[ CKEDITOR.CTRL + 73 /*I*/, 'italic' ],
[ CKEDITOR.CTRL + 85 /*U*/, 'underline' ],
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:add_document.php
示例13: set_page_title
<?php
set_page_title($project_form->isNew() ? lang('add form') : lang('edit form'));
project_tabbed_navigation(PROJECT_TAB_FORMS);
project_crumbs(array(array(lang('forms'), get_url('form')), array($project_form->isNew() ? lang('add form') : lang('edit form'))));
add_stylesheet_to_page('project/forms.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/addProjectForm.js');
?>
"></script>
<?php
if ($project_form->isNew()) {
?>
<form action="<?php
echo get_url('form', 'add');
?>
" method="post">
<?php
} else {
?>
<form action="<?php
echo $project_form->getEditUrl();
?>
" method="post">
<?php
}
// if
?>
<?php
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:add_project_form.php
示例14: set_page_title
set_page_title($file->isNew() ? lang('add file') : lang('edit file'));
project_tabbed_navigation(PROJECT_TAB_FILES);
project_crumbs(array(array(lang('files'), get_url('files')), array($file->isNew() ? lang('add file') : lang('edit file'))));
if (ProjectFile::canAdd(logged_user(), active_project())) {
add_page_action(lang('add file'), get_url('files', 'add_file'));
}
// if
if (ProjectFolder::canAdd(logged_user(), active_project())) {
add_page_action(lang('add folder'), get_url('files', 'add_folder'));
}
// if
add_stylesheet_to_page('project/files.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/addFileForm.js');
?>
"></script>
<?php
if ($file->isNew()) {
?>
<form action="<?php
echo get_url('files', 'add_file');
?>
" method="post" enctype="multipart/form-data">
<?php
} else {
?>
<form action="<?php
echo $file->getEditUrl();
?>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:30,代码来源:add_file.php
示例15: add_page_action
add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl(), lang('update avatar') => $user->getUpdateAvatarUrl()));
}
// if
if ($user->canUpdatePermissions(logged_user())) {
add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl()));
}
// if
add_stylesheet_to_page('admin/user_permissions.css');
$quoted_permissions = array();
foreach ($permissions as $permission_id => $permission_text) {
$quoted_permissions[] = "'{$permission_id}'";
}
// foreach
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/updateUserPermissions.js');
?>
"></script>
<script type="text/javascript">
App.modules.updateUserPermissions.project_permissions = new Array(<?php
echo implode(', ', $quoted_permissions);
?>
);
</script>
<?php
if (isset($projects) && is_array($projects) && count($projects)) {
?>
<div id="userPermissions">
<form action="<?php
echo $user->getUpdatePermissionsUrl($redirect_to);
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:update_permissions.php
示例16: set_page_title
set_page_title(lang('radio'));
add_stylesheet_to_page('radio.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('/nativeradio/swfobject.js');
?>
"></script>
<div id="flashcontent1">No flash, no radio<br />
<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Download Flash</a>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("<?php
echo get_javascript_url('nativeradio/nativeradio2small.swf');
?>
", "nativeradio2small", "200", "50", "10", "#cccccc");
so.addParam("scale", "noscale");
so.addVariable("swfcolor", "333333");
so.addVariable("swfwidth", "200");
so.addVariable("swfradiochannel", "TrackFM.nl");
so.addVariable("swfstreamurl", "http://stream.trackfm.nl:8000/medium");
so.addVariable("swfpause", "0");
so.write("flashcontent1");
if (document.all) {
self.resizeTo(215+12, 145+35);
} else {
self.resizeTo(215, 145);
}
开发者ID:bklein01,项目名称:Project-Pier,代码行数:30,代码来源:radio.php
示例17: set_page_title
<?php
set_page_title($tool->getDisplayName());
administration_tabbed_navigation(ADMINISTRATION_TAB_TOOLS);
administration_crumbs(array(array(lang('administration tools'), get_url('administration', 'tools')), array($tool->getDisplayName())));
add_stylesheet_to_page('admin/massmailer.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/massmailerForm.js');
?>
"></script>
<div id="massMailer">
<form action="<?php
echo $tool->getToolUrl();
?>
" method="post">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div>
<?php
echo label_tag(lang('massmailer subject'), 'massmailerFormRecipient', true);
?>
<?php
echo text_field('massmailer[subject]', array_var($massmailer_data, 'subject'), array('id' => 'massmailerFormRecipient', 'class' => 'title'));
?>
</div>
<div>
<?php
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:tool_mass_mailer.php
示例18: set_page_title
<?php
set_page_title(lang('permissions'));
project_tabbed_navigation(PROJECT_TAB_PEOPLE);
project_crumbs(array(array(lang('people'), get_url('project', 'people')), array(lang('permissions'))));
add_stylesheet_to_page('project/permissions.css');
$quoted_permissions = array();
foreach ($permissions as $permission_id => $permission_text) {
$quoted_permissions[] = "'{$permission_id}'";
}
// foreach
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/updatePermissionsForm.js');
?>
"></script>
<script type="text/javascript">
App.modules.updatePermissionsForm.owner_company_id = <?php
echo owner_company()->getId();
?>
;
App.modules.updatePermissionsForm.project_permissions = new Array(<?php
echo implode(', ', $quoted_permissions);
?>
);
</script>
<?php
if (isset($companies) && is_array($companies) && count($companies)) {
?>
<form action="<?php
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:permissions.php
示例19: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('weekly schedule'));
dashboard_tabbed_navigation('weekly_schedule');
dashboard_crumbs(lang('weekly schedule'));
add_stylesheet_to_page('dashboard/weekly_schedule.css');
add_stylesheet_to_page('project/calendar.css');
add_stylesheet_to_page('project/tickets.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/calendar.js');
?>
"></script>
<?php
if (isset($upcoming_milestones) && is_array($upcoming_milestones) && count($upcoming_milestones) || isset($upcoming_tickets) && is_array($upcoming_tickets) && count($upcoming_tickets) || isset($late_milestones) && is_array($late_milestones) && count($late_milestones) || isset($late_tickets) && is_array($late_tickets) && count($late_tickets)) {
?>
<div id="viewToggle">
<a href="<?php
echo get_url('dashboard', 'weekly_schedule', array('view' => 'list'));
?>
"><img src="<?php
if ($view_type == "list") {
echo get_image_url("icons/list_on.png");
} else {
echo get_image_url("icons/list_off.png");
}
?>
" title="<?php
echo lang('list view');
?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:weekly_schedule.php
示例20: set_page_title
<?php
set_page_title($message->isNew() ? lang('add message') : lang('edit message'));
project_tabbed_navigation(PROJECT_TAB_MESSAGES);
project_crumbs(array(array(lang('messages'), get_url('message')), array($message->isNew() ? lang('add message') : lang('edit message'))));
add_stylesheet_to_page('project/messages.css');
//add_javascript_to_page('modules/addMessageForm.js');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/addMessageForm.js');
?>
"></script>
<?php
if ($message->isNew()) {
?>
<form action="<?php
echo get_url('message', 'add');
?>
" method="post" enctype="multipart/form-data">
<?php
} else {
?>
<form action="<?php
echo $message->getEditUrl();
?>
" method="post">
<?php
}
// if
?>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:30,代码来源:add_message.php
注:本文中的get_javascript_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论