if (elgg_view_exists("settings/{$plugin_id}/edit")) {
$item = array(
'text' => $info['manifest']['name'],
- 'href' => "{$CONFIG->url}pg/admin/plugin_settings/$plugin_id",
+ 'href' => "pg/admin/plugin_settings/$plugin_id",
'parent_id' => 'admin:plugin_settings'
);
// in the admin section parents never have links
if ($parent_id) {
- $href = "{$CONFIG->url}pg/admin/$parent_id/$section_id";
+ $href = "pg/admin/$parent_id/$section_id";
} elseif ($section_id == 'overview') {
- $href = "{$CONFIG->url}pg/admin/$section_id";
+ $href = "pg/admin/$section_id";
} else {
$href = NULL;
$form .= elgg_view('input/form', array(
'body' => $form_body,
- 'action' => $CONFIG->site->url . 'action/user/passwordreset'
+ 'action' => 'action/user/passwordreset'
));
$title = elgg_echo('resetpassword');
if (isloggedin()) {
if ($page_owner instanceof ElggGroup && get_context() == 'groups') {
if ($page_owner->bookmarks_enable != "no") {
- //add_submenu_item(sprintf(elgg_echo("bookmarks:group"),$page_owner->name), elgg_get_site_url() . "pg/bookmarks/" . $page_owner->username . '/items');
+ //add_submenu_item(sprintf(elgg_echo("bookmarks:group"),$page_owner->name), "pg/bookmarks/" . $page_owner->username . '/items');
}
}
}
{
if (get_context() == 'admin' && isadminloggedin()) {
global $CONFIG;
- add_submenu_item(elgg_echo('diagnostics'), elgg_get_site_url() . 'pg/diagnostics/');
+ add_submenu_item(elgg_echo('diagnostics'), 'pg/diagnostics/');
}
}
$form_body .= elgg_view('input/submit', array('internalname' => 'execute', 'value' => elgg_echo('diagnostics:test:executeall')));
- echo elgg_view('input/form', array('action' => elgg_get_site_url() . "pg/diagnostics/tests/all", 'body' => $form_body));
+ echo elgg_view('input/form', array('action' => "pg/diagnostics/tests/all", 'body' => $form_body));
?>
\ No newline at end of file
echo elgg_view('input/form', array(
'body' => $form_body,
'internalid' => 'file_embed_upload',
- 'action' => elgg_get_site_url() . 'action/file/upload',
+ 'action' => 'action/file/upload',
));
?>
add_submenu_item(elgg_echo('groups:membershiprequests'), $url, 'groupsactions1');
}
} else {
- add_submenu_item(elgg_echo('groups:all'), elgg_get_site_url()."pg/groups/world/", 'groupslinks1');
+ add_submenu_item(elgg_echo('groups:all'), "pg/groups/world/", 'groupslinks1');
if ($user = get_loggedin_user()) {
- add_submenu_item(elgg_echo('groups:owned'), elgg_get_site_url()."pg/groups/owned/$user->username", 'groupslinks1');
- add_submenu_item(elgg_echo('groups:yours'), elgg_get_site_url()."pg/groups/member/$user->username", 'groupslinks1');
- add_submenu_item(elgg_echo('groups:invitations'), elgg_get_site_url()."pg/groups/invitations/$user->username", 'groupslinks1');
+ add_submenu_item(elgg_echo('groups:owned'), "pg/groups/owned/$user->username", 'groupslinks1');
+ add_submenu_item(elgg_echo('groups:yours'), "pg/groups/member/$user->username", 'groupslinks1');
+ add_submenu_item(elgg_echo('groups:invitations'), "pg/groups/invitations/$user->username", 'groupslinks1');
}
}
}
if (get_context() == "friends" ||
get_context() == "friendsof" ||
get_context() == "collections") {
- add_submenu_item(elgg_echo('friends:invite'),elgg_get_site_url()."mod/invitefriends/",'invite');
+ add_submenu_item(elgg_echo('friends:invite'), "mod/invitefriends/",'invite');
}
}
*/
echo elgg_view('input/form', array(
- 'action' => elgg_get_site_url() . 'action/invitefriends/invite',
+ 'action' => 'action/invitefriends/invite',
'body' => elgg_view('invitefriends/formitems'),
'method' => 'post'
)
$wrappedform = elgg_view('input/form', array(
'body' => $form,
'method' => 'get',
- 'action' => elgg_get_site_url()."pg/admin/logbrowser",
+ 'action' => "pg/admin/logbrowser",
));
?>
//add submenu options
if (get_context() == "messages") {
- add_submenu_item(elgg_echo('messages:inbox'), elgg_get_site_url() . "pg/messages/" . get_loggedin_user()->username);
- add_submenu_item(elgg_echo('messages:sentmessages'), elgg_get_site_url() . "mod/messages/sent.php");
+ add_submenu_item(elgg_echo('messages:inbox'), "pg/messages/" . get_loggedin_user()->username);
+ add_submenu_item(elgg_echo('messages:sentmessages'), "mod/messages/sent.php");
}
// Extend system CSS with our own styles, which are defined in the shouts/css view
$body .= '<input class="cancel_button" type="button" onclick="javascript:$(\'input[type=checkbox]\').click();" value="'.elgg_echo('messages:toggle').'" />';
$body .= '</div>';
-echo elgg_view('input/form',array('body' => $body, 'action' => elgg_get_site_url() . 'action/messages/delete', 'method' => 'post', 'internalid' => 'messages_list_form'));
\ No newline at end of file
+echo elgg_view('input/form',array('body' => $body, 'action' => 'action/messages/delete', 'method' => 'post', 'internalid' => 'messages_list_form'));
\ No newline at end of file
$body = elgg_view('input/form',array(
'body' => $form_body,
'method' => 'post',
- 'action' => elgg_get_site_url() . 'action/notificationsettings/groupsave'
+ 'action' => 'action/notificationsettings/groupsave'
));
// Insert it into the correct canvas layout
function notifications_plugin_pagesetup() {
global $CONFIG;
if (get_context() == 'settings') {
- add_submenu_item(elgg_echo('notifications:subscriptions:changesettings'), elgg_get_site_url() . "pg/notifications/personal");
+ add_submenu_item(elgg_echo('notifications:subscriptions:changesettings'), "pg/notifications/personal");
if (is_plugin_enabled('groups')) {
- add_submenu_item(elgg_echo('notifications:subscriptions:changesettings:groups'), elgg_get_site_url() . "pg/notifications/group");
+ add_submenu_item(elgg_echo('notifications:subscriptions:changesettings:groups'), "pg/notifications/group");
}
}
}
elgg_view('notifications/subscriptions/collections') .
elgg_view('notifications/subscriptions/forminternals'),
'method' => 'post',
- 'action' => elgg_get_site_url() . 'action/notificationsettings/save',
+ 'action' => 'action/notificationsettings/save',
));
?>
// Add menus
$owner = elgg_get_page_owner();
if (!($owner instanceof ElggGroup)) {
- add_submenu_item(sprintf(elgg_echo("pages:user"), elgg_get_page_owner()->name), $CONFIG->url . "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
- add_submenu_item(elgg_echo('pages:all'),elgg_get_site_url()."mod/pages/world.php", 'pageslinksgeneral');
+ add_submenu_item(sprintf(elgg_echo("pages:user"), elgg_get_page_owner()->name), "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
+ add_submenu_item(elgg_echo('pages:all'), "mod/pages/world.php", 'pageslinksgeneral');
}
if (($owner instanceof ElggEntity) && (can_write_to_container(0,$owner->guid))){
- add_submenu_item(elgg_echo('pages:new'), $CONFIG->url . "pg/pages/new/?container_guid=" . elgg_get_page_owner_guid(), 'pagesactions');
- add_submenu_item(elgg_echo('pages:welcome'), $CONFIG->url . "pg/pages/welcome/" . $owner->username, 'pagesactions');
+ add_submenu_item(elgg_echo('pages:new'), "pg/pages/new/?container_guid=" . elgg_get_page_owner_guid(), 'pagesactions');
+ add_submenu_item(elgg_echo('pages:welcome'), "pg/pages/welcome/" . $owner->username, 'pagesactions');
}
// access check for closed groups
// Group submenu option
if ($page_owner instanceof ElggGroup && get_context() == 'groups') {
if($page_owner->pages_enable != "no"){
- add_submenu_item(sprintf(elgg_echo("pages:group"),$page_owner->name), elgg_get_site_url() . "pg/pages/owned/" . $page_owner->username);
+ add_submenu_item(sprintf(elgg_echo("pages:group"),$page_owner->name), "pg/pages/owned/" . $page_owner->username);
}
}
}
// add_submenu_item(sprintf(elgg_echo("pages:user"), elgg_get_page_owner()->name), $CONFIG->url . "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
if ($pages->canEdit()) {
- add_submenu_item(elgg_echo('pages:newchild'),elgg_get_site_url()."pg/pages/new/?parent_guid={$pages->getGUID()}&container_guid=" . elgg_get_page_owner_guid(), 'pagesactions');
- $delete_url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/pages/delete?page={$pages->getGUID()}");
+ add_submenu_item(elgg_echo('pages:newchild'), "pg/pages/new/?parent_guid={$pages->getGUID()}&container_guid=" . elgg_get_page_owner_guid(), 'pagesactions');
+ $delete_url = elgg_add_action_tokens_to_url($CONFIG->url . "action/pages/delete?page={$pages->getGUID()}");
add_submenu_item(elgg_echo('pages:delete'), $delete_url, 'pagesactions', true);
}
}
if (($page_owner instanceof ElggEntity) && ($page_owner->canWriteToContainer())){
- add_submenu_item(elgg_echo('pages:new'), $CONFIG->url . "pg/pages/new/", 'pagesactions');
+ add_submenu_item(elgg_echo('pages:new'), "pg/pages/new/", 'pagesactions');
}
if(isloggedin()) {
- add_submenu_item(sprintf(elgg_echo("pages:user"), elgg_get_page_owner()->name), $CONFIG->url . "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
+ add_submenu_item(sprintf(elgg_echo("pages:user"), elgg_get_page_owner()->name), "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
}
-add_submenu_item(elgg_echo('pages:all'),elgg_get_site_url()."mod/pages/world.php", 'pageslinksgeneral');
+add_submenu_item(elgg_echo('pages:all'), "mod/pages/world.php", 'pageslinksgeneral');
$limit = get_input("limit", 10);
$offset = get_input("offset", 0);
if (get_context() == "profile") {
$page_owner = elgg_get_page_owner();
if ($page_owner && $page_owner->canEdit()) {
- add_submenu_item(elgg_echo('profile:editdetails'), elgg_get_site_url() . "pg/profile/{$page_owner->username}/edit/details");
- add_submenu_item(elgg_echo('profile:editicon'), elgg_get_site_url() . "pg/profile/{$page_owner->username}/edit/icon");
+ add_submenu_item(elgg_echo('profile:editdetails'), "pg/profile/{$page_owner->username}/edit/details");
+ add_submenu_item(elgg_echo('profile:editicon'), "pg/profile/{$page_owner->username}/edit/icon");
}
}
}
$resetlisting = elgg_view('input/form',
array (
'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'), 'class' => 'action_button disabled')),
- 'action' => elgg_get_site_url() . 'action/profile/editdefault/reset'
+ 'action' => 'action/profile/editdefault/reset'
)
);
END;
echo "<p class='margin_top'>" . elgg_echo('profile:explainchangefields') . "</p>";
-echo elgg_view('input/form', array('body' => $formbody, 'action' => elgg_get_site_url() . 'action/profile/editdefault'));
+echo elgg_view('input/form', array('body' => $formbody, 'action' => 'action/profile/editdefault'));
$form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("Comment")));
$form_body .= "</div>";
- echo elgg_view('input/form', array('body' => $form_body, 'action' => elgg_get_site_url()."action/comments/add"));
+ echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/comments/add"));
}
\ No newline at end of file
EOT;
//display the form
- echo elgg_view('input/form', array('action' => elgg_get_site_url()."action/$action", 'body' => $form_body));
+ echo elgg_view('input/form', array('action' => "action/$action", 'body' => $form_body));
}//end of admin if statement
</div>
EOT;
//display the form
- echo elgg_view('input/form', array('action' => elgg_get_site_url()."action/$action", 'body' => $form_body));
+ echo elgg_view('input/form', array('action' => "action/$action", 'body' => $form_body));
}//end of admin check
}//end of main if
$form_body .= '<br />' . elgg_view('input/button', array('value' => elgg_echo('submit')));
echo elgg_view('input/form', array(
- 'action' => elgg_get_site_url() . 'action/uservalidationbyemail/bulk_action',
+ 'action' => 'action/uservalidationbyemail/bulk_action',
'body' => $form_body
));
\ No newline at end of file
$form_body .= "<p>" . elgg_view('input/submit', array('value' => elgg_echo('request'))) . "</p>";
echo elgg_view('input/form', array(
- 'action' => elgg_get_site_url()."action/user/requestnewpassword",
+ 'action' => "action/user/requestnewpassword",
'body' => $form_body,
'class' => "margin_top"
));
<h2><?php echo elgg_echo('user:password:lost'); ?></h2>
<?php
echo elgg_view('input/form', array(
- 'action' => elgg_get_site_url()."action/user/requestnewpassword",
+ 'action' => "action/user/requestnewpassword",
'body' => $lostpassword_form_body
));
?>
$form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register'));
$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "</p>";
-echo elgg_view('input/form', array('action' => elgg_get_site_url()."action/register", 'body' => $form_body, 'class' => "margin_top"));
+echo elgg_view('input/form', array('action' => "action/register", 'body' => $form_body, 'class' => "margin_top"));
?>
<script type="text/javascript">
<div class="admin_settings add_user">
<h3><?php echo elgg_echo('adduser'); ?></h3>
- <?php echo elgg_view('input/form', array('action' => elgg_get_site_url()."action/useradd", 'body' => $form_body)) ?>
+ <?php echo elgg_view('input/form', array('action' => "action/useradd", 'body' => $form_body)) ?>
</div>
\ No newline at end of file
echo elgg_view('input/form', array(
'body' => $form_body,
- 'action' => elgg_get_site_url()."action/admin/menu_items"
+ 'action' => "action/admin/menu_items"
));
echo "</div>";
\ No newline at end of file
echo elgg_view_title($plugin_info['name']);
-echo elgg_view('input/form', array('body' => $form_body, 'internalid' => 'plugin_settings', 'action' => elgg_get_site_url()."action/plugins/settings/save"));
\ No newline at end of file
+echo elgg_view('input/form', array('body' => $form_body, 'internalid' => 'plugin_settings', 'action' => "action/plugins/settings/save"));
\ No newline at end of file
$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'action_button disabled'));
echo elgg_view('input/form', array(
- 'action' => elgg_get_site_url()."action/admin/plugins/simple_update_states",
+ 'action' => "action/admin/plugins/simple_update_states",
'body' => $form_body,
'class' => 'admin_plugins_simpleview'
));
\ No newline at end of file
$form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("generic_comments:post"))) . "</div>";
- echo elgg_view('input/form', array('body' => $form_body, 'action' => elgg_get_site_url()."action/comments/add"));
+ echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/comments/add"));
}
$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
$form_body .= "</p></div>";
-echo elgg_view('input/form', array('body' => $form_body, 'action' => elgg_get_site_url()."action/$action"));
\ No newline at end of file
+echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/$action"));
\ No newline at end of file
?>
<div>
- <?php echo elgg_view('input/form', array('body' => $form_body, 'action' => elgg_get_site_url()."action/plugins/{$prefix}settings/save")); ?>
+ <?php echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/plugins/{$prefix}settings/save")); ?>
</div>
\ No newline at end of file
$form_body = elgg_view("usersettings/user");
$form_body .= "<div class='divider'></div>".elgg_view('input/submit', array('value' => elgg_echo('save'), 'class' => 'submit_button usersettings_save'));
-echo elgg_view('input/form', array('action' => elgg_get_site_url()."action/usersettings/save", 'body' => $form_body));
\ No newline at end of file
+echo elgg_view('input/form', array('action' => "action/usersettings/save", 'body' => $form_body));
\ No newline at end of file
$form_body .= "<p><label>" . elgg_echo('access') . ": " . elgg_view('input/access', array('internalname' => 'params[access_id]','value' => $vars['entity']->access_id)) . "</label></p>";
$form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $guid)) . elgg_view('input/hidden', array('internalname' => 'noforward', 'value' => 'true')) . elgg_view('input/submit', array('internalname' => "submit$guid", 'value' => elgg_echo('save'))) . "</p>";
-echo elgg_view('input/form', array('internalid' => "widgetform$guid", 'body' => $form_body, 'action' => elgg_get_site_url()."action/widgets/save"))
+echo elgg_view('input/form', array('internalid' => "widgetform$guid", 'body' => $form_body, 'action' => "action/widgets/save"))
?>
<script type="text/javascript">
$(document).ready(function() {