From c5cc2821311012a8a4385a304a043c4b41f2afbb Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 31 Aug 2009 19:05:21 +0000 Subject: All line endings are now Unix-style. git-svn-id: https://code.elgg.org/elgg/trunk@3451 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/collection.php | 114 ++-- views/default/friends/collections.php | 104 ++-- views/default/friends/collectiontabs.php | 96 ++-- views/default/friends/forms/collectionfields.php | 44 +- views/default/friends/forms/edit.php | 4 +- views/default/friends/list.php | 48 +- views/default/friends/picker.php | 652 +++++++++++------------ views/default/friends/river/create.php | 36 +- views/default/friends/tablelistcountupdate.php | 38 +- 9 files changed, 568 insertions(+), 568 deletions(-) (limited to 'views/default/friends') diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php index 501283fc3..812623cb1 100644 --- a/views/default/friends/collection.php +++ b/views/default/friends/collection.php @@ -1,60 +1,60 @@ -members)) { + $count = sizeof($vars['collection']->members); + } else { + $count = 0; + } + + echo "
  • "; + + //as collections are private, check that the logged in user is the owner + if($coll->owner_guid == $_SESSION['user']->getGUID()) { + echo "
    "; + echo elgg_view('output/confirmlink', array( + 'href' => $vars['url'] . 'action/friends/deletecollection?collection=' . $coll->id, + 'class' => 'delete_collection' + )); + echo "
    "; + } + echo $coll->name; + echo " ({$count})

    "; + + // individual collection panels + if($friends = $vars['collection']->entities){ + $content = elgg_view('friends/collectiontabs', array('owner' => $_SESSION['user'], 'collection' => $vars['collection'], 'friendspicker' => $vars['friendspicker'])); + echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members, 'content' => $content, 'replacement' => '', 'friendspicker' => $vars['friendspicker'])); + ?> + + + "; - * @link http://elgg.org/ - * - * @see collections.php - * - * @uses $vars['collection'] The individual friends collection - */ - - $coll = $vars['collection']; - - if (is_array($vars['collection']->members)) { - $count = sizeof($vars['collection']->members); - } else { - $count = 0; - } - - echo "
  • "; - - //as collections are private, check that the logged in user is the owner - if($coll->owner_guid == $_SESSION['user']->getGUID()) { - echo "
    "; - echo elgg_view('output/confirmlink', array( - 'href' => $vars['url'] . 'action/friends/deletecollection?collection=' . $coll->id, - 'class' => 'delete_collection' - )); - echo "
    "; - } - echo $coll->name; - echo " ({$count})

    "; - - // individual collection panels - if($friends = $vars['collection']->entities){ - $content = elgg_view('friends/collectiontabs', array('owner' => $_SESSION['user'], 'collection' => $vars['collection'], 'friendspicker' => $vars['friendspicker'])); - echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members, 'content' => $content, 'replacement' => '', 'friendspicker' => $vars['friendspicker'])); - ?> - - - "; - ?> \ No newline at end of file diff --git a/views/default/friends/collections.php b/views/default/friends/collections.php index 63446ec89..c785cd68e 100644 --- a/views/default/friends/collections.php +++ b/views/default/friends/collections.php @@ -1,53 +1,53 @@ -"; - - if (is_array($vars['collections']) && sizeof($vars['collections'])) { - - echo ""; - - } else { - - echo elgg_echo("friends:nocollections"); - - } - - echo ""; - -?> - - \ No newline at end of file diff --git a/views/default/friends/collectiontabs.php b/views/default/friends/collectiontabs.php index 31ae0eacd..a4ad59866 100644 --- a/views/default/friends/collectiontabs.php +++ b/views/default/friends/collectiontabs.php @@ -1,48 +1,48 @@ -id; - $ownerid = $vars['owner']->getGUID(); - -?> - - - - +id; + $ownerid = $vars['owner']->getGUID(); + +?> + + + + diff --git a/views/default/friends/forms/collectionfields.php b/views/default/friends/forms/collectionfields.php index 0b387f830..bec7212ee 100644 --- a/views/default/friends/forms/collectionfields.php +++ b/views/default/friends/forms/collectionfields.php @@ -1,23 +1,23 @@ - - - - - + + + + \ No newline at end of file diff --git a/views/default/friends/forms/edit.php b/views/default/friends/forms/edit.php index d9434f10b..c35bcaba3 100644 --- a/views/default/friends/forms/edit.php +++ b/views/default/friends/forms/edit.php @@ -16,11 +16,11 @@ // Set title, form destination if (isset($vars['collection'])) { $action = "friends/editcollection"; - $title = $vars['collection'][0]->name; + $title = $vars['collection'][0]->name; $highlight = 'default'; } else { $action = "friends/addcollection"; - $title = ""; + $title = ""; $highlight = 'all'; } diff --git a/views/default/friends/list.php b/views/default/friends/list.php index c6709a2c1..3907479bd 100644 --- a/views/default/friends/list.php +++ b/views/default/friends/list.php @@ -1,27 +1,27 @@ - 0) { + + foreach($vars['friends'] as $friend) { + + echo elgg_view_entity($friend); + + } + + } - * @link http://elgg.org/ - * - * @uses $vars['friends'] The array of ElggUser objects - */ - - if (is_array($vars['friends']) && sizeof($vars['friends']) > 0) { - - foreach($vars['friends'] as $friend) { - - echo elgg_view_entity($friend); - - } - - } - ?> \ No newline at end of file diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php index 0dcb208aa..319088601 100644 --- a/views/default/friends/picker.php +++ b/views/default/friends/picker.php @@ -1,327 +1,327 @@ -name,0,1)); - else - $letter = strtoupper(substr($user->name,0,1)); - if (!substr_count($chararray,$letter)) { - $letter = "*"; - } - if (!isset($users[$letter])) { - $users[$letter] = array(); - } - $users[$letter][$user->name] = $user; - - } - - if (!$callback) { - -?> - -
    - - - -
    - - - - - - -
    - - - -
    -
    -
    - -
    -
    -

    - -"; - $col = 0; - - foreach($users[$letter] as $friend) { - if ($col == 0) echo ""; - - //echo "

    " . $user->name . "

    "; - $label = elgg_view("profile/icon",array('entity' => $friend, 'size' => 'tiny', 'override' => true)); - $options[$label] = $friend->getGUID(); - - if ($vars['highlight'] == 'all' - && !in_array($letter,$activeletters)) { - $activeletters[] = $letter; - } - - - if (in_array($friend->getGUID(),$vars['value'])) { - $checked = "checked = \"checked\""; - if ( - !in_array($letter,$activeletters) - && $vars['highlight'] == 'default' - ) - $activeletters[] = $letter; - } else { - $checked = ""; - } - -?> - - - - name="[]" value="" /> - - - - - -
    - -
    - - -name; - -?> - -"; - $col = 0; - } - } - if ($col < 3) echo ""; - - echo ""; - - } - -?> - -
    -
    - -
    - - -
    -
    - - -
    - - - - -
    -
    - - - -
    -
    - - - - - - - -name,0,1)); + else + $letter = strtoupper(substr($user->name,0,1)); + if (!substr_count($chararray,$letter)) { + $letter = "*"; + } + if (!isset($users[$letter])) { + $users[$letter] = array(); + } + $users[$letter][$user->name] = $user; + + } + + if (!$callback) { + +?> + +
    + + + +
    + + + + + + +
    + + + +
    +
    +
    + +
    +
    +

    + +"; + $col = 0; + + foreach($users[$letter] as $friend) { + if ($col == 0) echo ""; + + //echo "

    " . $user->name . "

    "; + $label = elgg_view("profile/icon",array('entity' => $friend, 'size' => 'tiny', 'override' => true)); + $options[$label] = $friend->getGUID(); + + if ($vars['highlight'] == 'all' + && !in_array($letter,$activeletters)) { + $activeletters[] = $letter; + } + + + if (in_array($friend->getGUID(),$vars['value'])) { + $checked = "checked = \"checked\""; + if ( + !in_array($letter,$activeletters) + && $vars['highlight'] == 'default' + ) + $activeletters[] = $letter; + } else { + $checked = ""; + } + +?> + + + + name="[]" value="" /> + + + + + +
    + +
    + + +name; + +?> + +"; + $col = 0; + } + } + if ($col < 3) echo ""; + + echo ""; + + } + +?> + +
    +
    + +
    + + +
    +
    + + +
    + + + + +
    +
    + + + +
    +
    + + + + + + + + \ No newline at end of file diff --git a/views/default/friends/river/create.php b/views/default/friends/river/create.php index df5d2418b..04947568b 100644 --- a/views/default/friends/river/create.php +++ b/views/default/friends/river/create.php @@ -1,19 +1,19 @@ -subject_guid); // $statement->getSubject(); - $performed_on = get_entity($vars['item']->object_guid); - $url = $performed_on->getURL(); - - $url = "getURL()}\">{$performed_by->name}"; - $string = sprintf(elgg_echo("friends:river:add"),$url) . " "; - $string .= "getURL()}\">{$performed_on->name}"; - $string .= "
    "; - $string .= ""; - $string .= "
    " . elgg_view("profile/icon",array('entity' => $performed_by, 'size' => 'small')) . "
    " . elgg_view("profile/icon",array('entity' => $performed_on, 'size' => 'small')) . "
    "; - $string .= "
    "; - -?> - -subject_guid); // $statement->getSubject(); + $performed_on = get_entity($vars['item']->object_guid); + $url = $performed_on->getURL(); + + $url = "getURL()}\">{$performed_by->name}"; + $string = sprintf(elgg_echo("friends:river:add"),$url) . " "; + $string .= "getURL()}\">{$performed_on->name}"; + $string .= "
    "; + $string .= ""; + $string .= "
    " . elgg_view("profile/icon",array('entity' => $performed_by, 'size' => 'small')) . "
    " . elgg_view("profile/icon",array('entity' => $performed_on, 'size' => 'small')) . "
    "; + $string .= "
    "; + +?> + + \ No newline at end of file diff --git a/views/default/friends/tablelistcountupdate.php b/views/default/friends/tablelistcountupdate.php index 14728d16a..4c4e26c80 100644 --- a/views/default/friends/tablelistcountupdate.php +++ b/views/default/friends/tablelistcountupdate.php @@ -1,22 +1,22 @@ - - - \ No newline at end of file -- cgit v1.2.3