aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-09-05 21:10:06 +0200
committerSem <sembrestels@riseup.net>2013-09-05 21:10:06 +0200
commitf657a9ebb297ecae181714bb4e05b607dbe5e5a5 (patch)
treedc585c4ffb5ec3735a913c0daef5d4b5f3f7e1b0 /views/default
parentda191e2432b0853bd33515fb2bc33a0fe50952f9 (diff)
downloadelgg-f657a9ebb297ecae181714bb4e05b607dbe5e5a5.tar.gz
elgg-f657a9ebb297ecae181714bb4e05b607dbe5e5a5.tar.bz2
Removed deprecated function uses.
Diffstat (limited to 'views/default')
-rw-r--r--views/default/event_calendar/entities/gallery_item.php8
-rw-r--r--views/default/event_calendar/groupprofile_calendar_deprecated.php2
-rw-r--r--views/default/event_calendar/nav.php4
-rw-r--r--views/default/plugins/event_calendar/settings.php2
4 files changed, 8 insertions, 8 deletions
diff --git a/views/default/event_calendar/entities/gallery_item.php b/views/default/event_calendar/entities/gallery_item.php
index eb67cc772..9fc1edeca 100644
--- a/views/default/event_calendar/entities/gallery_item.php
+++ b/views/default/event_calendar/entities/gallery_item.php
@@ -22,9 +22,9 @@ $icon = elgg_view(
$banned = $vars['entity']->isBanned();
$rel = "";
-if (page_owner() == $vars['entity']->guid)
+if (elgg_get_page_owner_guid() == $vars['entity']->guid)
$rel = 'me';
-else if (check_entity_relationship(page_owner(), 'friend', $vars['entity']->guid))
+else if (check_entity_relationship(elgg_get_page_owner_guid(), 'friend', $vars['entity']->guid))
$rel = 'friend';
if (!$banned)
@@ -41,7 +41,7 @@ if ($event_id) {
} else {
// load the event from the database
$event = get_entity($event_id);
- $user_id = get_loggedin_userid();
+ $user_id = elgg_get_logged_in_user_guid();
if ($event && ($event->owner_guid == $user_id)) {
$authorised = TRUE;
}
@@ -57,7 +57,7 @@ if ($authorised) {
$info .= $link;
}
-// echo elgg_view_listing($icon, $info);
+// echo elgg_view_image_block($icon, $info);
echo elgg_view('search/gallery_listing',array('icon' => $icon, 'info' => $info));
?> \ No newline at end of file
diff --git a/views/default/event_calendar/groupprofile_calendar_deprecated.php b/views/default/event_calendar/groupprofile_calendar_deprecated.php
index 081a0eb2d..0d7d5101f 100644
--- a/views/default/event_calendar/groupprofile_calendar_deprecated.php
+++ b/views/default/event_calendar/groupprofile_calendar_deprecated.php
@@ -30,7 +30,7 @@ if (event_calendar_activated_for_group($page_owner_entity)) {
foreach($events as $event) {
echo elgg_view("object/event_calendar",array('entity' => $event));
}
- echo '<div class="forum_latest"><a href="'.$vars['url'].'pg/event_calendar/group/'.page_owner().'">'.elgg_echo('event_calendar:view_calendar').'</a></div>';
+ echo '<div class="forum_latest"><a href="'.$vars['url'].'pg/event_calendar/group/'.elgg_get_page_owner_guid().'">'.elgg_echo('event_calendar:view_calendar').'</a></div>';
echo "</div>";
} else if (elgg_get_plugin_setting('group_always_display', 'event_calendar') == 'yes') {
diff --git a/views/default/event_calendar/nav.php b/views/default/event_calendar/nav.php
index ceedfd485..746a46151 100644
--- a/views/default/event_calendar/nav.php
+++ b/views/default/event_calendar/nav.php
@@ -17,7 +17,7 @@ $url_start = $vars['url'].'mod/event_calendar/show_events.php?group_guid='.$vars
<div id="elgg_horizontal_tabbed_nav">
<ul>
<?php
-$event_calendar_spots_display = get_plugin_setting('spots_display', 'event_calendar');
+$event_calendar_spots_display = elgg_get_plugin_setting('spots_display', 'event_calendar');
if ($event_calendar_spots_display == "yes") {
?>
<li <?php echo $openselect; ?> ><a onclick="javascript:$('#event_list').load('<?php echo $url_start; ?>&amp;filter=open&amp;callback=true'); return false;" href="<?php echo $url_start; ?>&amp;filter=open&amp;callback=true"><?php echo elgg_echo('event_calendar:open'); ?></a></li>
@@ -30,7 +30,7 @@ if ($event_calendar_spots_display == "yes") {
</ul>
</div>
<?php
-$event_calendar_region_display = get_plugin_setting('region_display', 'event_calendar');
+$event_calendar_region_display = elgg_get_plugin_setting('region_display', 'event_calendar');
if ($event_calendar_region_display == 'yes') {
$url_start .= '&amp;filter='.$vars['filter'];
echo elgg_view('event_calendar/region_select',array('url_start'=>$url_start,'region'=>$vars['region']));
diff --git a/views/default/plugins/event_calendar/settings.php b/views/default/plugins/event_calendar/settings.php
index db6e00913..a58647828 100644
--- a/views/default/plugins/event_calendar/settings.php
+++ b/views/default/plugins/event_calendar/settings.php
@@ -169,7 +169,7 @@ $body .= '<br />';
// agenda view is now handled in the listing area
-/*$event_calendar_agenda_view = get_plugin_setting('agenda_view', 'event_calendar');
+/*$event_calendar_agenda_view = elgg_get_plugin_setting('agenda_view', 'event_calendar');
if (!$event_calendar_agenda_view) {
$event_calendar_agenda_view = 'no';
}