Elgg  Version 1.9
collections.php
Go to the documentation of this file.
1 <?php
12 if (is_array($vars['collections']) && sizeof($vars['collections'])) {
13  echo "<ul id=\"friends_collections_accordian\">";
14 
15  $friendspicker = 0;
16  foreach ($vars['collections'] as $collection) {
18  echo elgg_view('core/friends/collection', array(
19  'collection' => $collection,
20  'friendspicker' => $friendspicker,
21  ));
22  }
23 
24  echo "</ul>";
25 
26 } else {
27  echo elgg_echo("friends:nocollections");
28 }
29 
30 ?>
31 <?php //@todo JS 1.8: no ?>
32 <script>
33 $(function(){
34  $('#friends_collections_accordian h2').click(function () {
35  $(this.parentNode).children("[class=friends-picker-main-wrapper]").slideToggle("fast");
36  //return false;
37  });
38 });
39 </script>
$collection
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
if(!$members) $friendspicker
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})
if(file_exists($welcome)) $vars
Definition: upgrade.php:93