本文整理汇总了PHP中module_url函数的典型用法代码示例。如果您正苦于以下问题:PHP module_url函数的具体用法?PHP module_url怎么用?PHP module_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了module_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: module_css
function module_css($module, $uri, $tag = false)
{
if ($tag) {
$media = false;
if (is_string($tag)) {
$media = 'media="' . $tag . '"';
}
return '<link href="' . module_url($module, 'assets/css/' . $uri) . '" type="text/css" rel="stylesheet" ' . $media . '/>';
}
return module_url($module, 'assets/css/' . $uri);
}
示例2: admin_context
public function admin_context()
{
$this->salaire_personnel = new PostType(array('namespace' => 'posts', 'label' => __('Posts')));
$this->salaire_personnel->run();
// Creating Menu 1.4
create_admin_menu('blogster', 'after', 'dashboard');
add_admin_menu('blogster', array('title' => __('Posts'), 'href' => module_url(array('index'), 'blogster')));
add_admin_menu('blogster', array('title' => __('Write a new post'), 'href' => module_url(array('publish'), 'blogster')));
add_admin_menu('blogster', array('title' => __('Create a new category'), 'href' => module_url(array('category', 'create'), 'blogster')));
add_admin_menu('blogster', array('title' => __('Categories'), 'href' => module_url(array('category'), 'blogster')));
add_admin_menu('blogster', array('title' => __('Comments'), 'href' => module_url(array('comments'), 'blogster')));
add_admin_menu('blogster', array('title' => __('Tags'), 'href' => module_url(array('tags'), 'blogster')));
add_admin_menu('blogster', array('title' => __('Settings'), 'href' => module_url(array('setting'), 'blogster')));
declare_admin_widget(array("module_namespace" => "blogster", "widget_namespace" => "articles_stats", "widget_title" => __('Blogster statistics'), "widget_content" => $this->load->view(MODULES_DIR . $this->module['encrypted_dir'] . '/views/widgets/articles_stats', null, true, true), "widget_description" => __('Displays blogster stats')));
declare_admin_widget(array("module_namespace" => "blogster", "widget_namespace" => "recents_commentaires", "widget_title" => __('Recents comments'), "widget_content" => $this->load->view(MODULES_DIR . $this->module['encrypted_dir'] . '/views/widgets/recents_comments', null, true, true), "widget_description" => __('Displays recents comments'), "action_control" => module_action('blogster', 'blogster_manage_comments')));
}
示例3: index
public function index($page = 1)
{
notice('push', tendoo_info(__('Page childs wont be available on frontend it that page is set as draft')));
if (isset($_POST['page_id']) && return_if_array_key_exists('action', $_POST) == 'delete') {
if (is_array($_POST['page_id'])) {
foreach ($_POST['page_id'] as $_page_id) {
$this->lib->delete_page($_page_id);
}
notice(fetch_notice_output('done'));
}
}
$totalPerPages = isset($_GET['limit']) ? $_GET['limit'] : 10;
set_core_vars('totalPages', $totalPages = count($this->lib->get_pages('all_available')));
$paginate = pagination_helper($totalPerPages, $totalPages, $page, module_url(array('index')), $RedirectUrl = array('error', 'code', 'page-404'));
set_core_vars('paginate', $paginate);
$get_pages = $this->lib->get_pages('all_limited', $paginate['start'], $paginate['end']);
set_core_vars('get_pages', $get_pages);
set_page('title', __('Page Creator'));
$this->load->view($this->opened_module['uri_path'] . 'views/main', $this->data, false, TRUE);
}
示例4: stop_process
}
function stop_process(){
openWait('Stopping process, please wait..');
clearInterval(interval_monitor);
clearInterval(interval_trace);
clearInterval(interval_timer);
$.ajax({
type: "POST",
url: "<?php
echo module_url('objectmanager') . 'ajax/stop_process.php';
?>
/",
data: {task_id: task_id},
dataType: 'json'
}).done(function(response) {
waitTitle("Reload page");
document.location.href=document.location.href;
});
}
function manage_task_monitor(obj){
if(obj.content != ""){
var monitor = jQuery.parseJSON(obj.content);
示例5: new_create
}
function new_create(){
document.location.href = '<?php
echo site_url('make/' . strtolower($label));
?>
';
}
function save_z_override(){
$.ajax({
type: "POST",
url : "<?php
echo module_url('maintenance') . 'ajax/override_probe_lenght.php';
?>
",
data : {over : z_override},
dataType: "json"
}).done(function( data ) {
$(".z-override-alert").slideUp('slow', function(){
$.smallBox({
title : "Z Height",
content : 'New value saved',
color : "#5384AF",
timeout : 10000,
icon : "fa fa-check"
});
示例6: function
',
"fnRowCallback": function ( row, data, index ){
$('td', row).eq(1).addClass('hidden-xs');
$('td', row).eq(2).addClass('hidden-xs');
$('td', row).eq(3).addClass('hidden-xs');
$('td', row).eq(4).addClass('text-right');
}
});
*/
oTable = $('#objects_table').dataTable({
"aaSorting": [],
"bProcessing": true,
"sAjaxSource": '<?php
echo module_url('objectmanager') . 'ajax/all_objects_for_table.php';
?>
',
"fnDrawCallback" : fnCallBack,
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null,
{"bSortable": false}]
});
$("[rel=tooltip]").tooltip();
示例7: site_url
echo site_url("updates");
?>
';
});
}
function start_update(){
IS_TASK_ON = true;
$.ajax({
url: "<?php
echo module_url('updates');
?>
ajax/update.php",
type: "POST",
dataType: 'json',
data: {type: type}
}).done(function( data ) {
json_uri = data.json_uri;
id_task = data.id_task;
$('.progress-container').show();
interval_monitor = setInterval(monitor, 1000);
$('#download-container').slideDown('slow', function() {});
});
示例8: module_url
var remote = $('#send-report').is(':checked') ? 1 : 0 ;
$(".console").html('');
trace_file = '';
monitor_file = '';
finished = false;
$("#start").addClass("disabled");
$("#send-report").attr("disabled", 'disabled');
$.ajax({
type: "POST",
url: "<?php
echo module_url("maintenance") . 'ajax/self_test.php';
?>
",
data: { remote : remote },
dataType: 'json'
}).done(function( response ) {
monitor_file = response.json_uri;
trace_file = response.trace_uri;
interval_monitor = setInterval(do_monitor, 250);
interval_trace = setInterval(do_trace, 250);
$(".console").slideDown('slow', function () {});
});
示例9: Date
$(".status").html(' <i class="fa fa-spin fa-spinner fa-2x"></i>');
$(".btn").addClass('disabled');
var timestamp = new Date().getTime();
/*ticker_url = 'http://<?php
echo $_SERVER['HTTP_HOST'];
?>
/temp/pre_jog_' + timestamp + '.trace';*/
ticker_url = 'http://<?php
echo $_SERVER['HTTP_HOST'];
?>
/temp/macro_trace';
$.ajax({
url : '<?php
echo module_url('jog') . 'ajax/pre_jog.php';
?>
',
dataType : 'json',
type: 'post',
data: {time : timestamp}
}).done(function(response) {
ticker_url = '';
refresh_temperature();
$(".btn").removeClass('disabled');
$(".status").html('');
});
}
示例10: encodeURIComponent
<?php
if (!$is_stl) {
?>
var file_content = encodeURIComponent($.trim(editor.getSession().getValue()));
<?php
}
?>
var note = encodeURIComponent($.trim($("#note").val()));
var name = encodeURIComponent($.trim($("#name").val()));
$.ajax({
type: "POST",
url: "<?php
echo module_url("objectmanager") . 'ajax/save_file.php';
?>
",
data: { <?php
if (!$is_stl) {
?>
file_content: file_content,<?php
}
?>
file_id: <?php
echo $_file->id;
?>
, file_path : '<?php
echo $_file->full_path;
?>
', note: note, name: name},
示例11: module_url
</div>
</div>
<div class="col-sm-12">
<div class="well">
<div class="row">
<div class="col-sm-6 text-center">
<img style="max-width: 25%; display: inline;" class="img-responsive" src="<?php
echo module_url('maintenance') . 'assets/img/spool/unload-filament.png';
?>
" />
</div>
<div class="col-sm-6 text-center">
<h1><span class="badge bg-color-blue txt-color-white">3</span></h1>
<h1 class="text-primary">Unload filament</h1>
<h2>Press start and assist the filament by gently pulling it out of the tube until the procedure has been completed</h2>
</div>
</div>
</div>
</div>
示例12: _e
echo $pseudo;
?>
<?php
_e('Says :');
?>
<a style="text-decoration:underline" href="<?php
echo module_url(array('comments_manage', $g['ID']));
?>
"><?php
echo word_limiter($g['CONTENT'], 10);
?>
</a> <?php
_e('On');
?>
<a style="text-decoration:underline" href="<?php
echo module_url(array('edit', $news_concerned[0]['ID']));
?>
"><?php
echo $news_concerned[0]['TITLE'];
?>
</a> </h5></td>
</tr>
<?php
}
}
} else {
?>
<tr>
<td colspan="5"><?php
_e('No comment available');
?>
示例13: module_redirect
function module_redirect($uri = '', $method = 'location', $http_response_code = 302)
{
if (!preg_match('#^https?://#i', $uri)) {
$uri = module_url($uri);
}
// call "parent"
redirect($uri, $method, $http_response_code);
}
示例14: pre_unload
});
}
function pre_unload(){
IS_MACRO_ON = true;
openWait("Plese wait");
$.ajax({
type:"POST",
url: "<?php
echo module_url("maintenance") . 'ajax/spool.php';
?>
",
data: {action: choice},
dataType: "json"
}).done(function(response){
choice = 'unload';
closeWait();
$(".pre_unload-choice").slideUp( "slow", function() {});
$( ".choice" ).slideUp( "slow", function() {});
$("." + choice + "-choice").slideDown('slow');
$(".re-choice").slideDown('slow');
示例15: do_calibration
function do_calibration(){
openWait('Calibration in process');
IS_MACRO_ON = true;
var now = jQuery.now();
ticker_url = '/temp/macro_trace';
$.ajax({
type: "POST",
url : "<?php
echo module_url('maintenance') . 'ajax/bed_calibration.php';
?>
",
data : {time: now, num_probes : num_probes, skip_homing: skip_homing},
dataType: "html"
}).done(function( data ) {
num_probes++;
skip_homing = 1;
closeWait();
ticker_url = '';
if($(".step-1").is(":visible") ){
$(".step-1").slideUp('fast', function(){