Elgg  Version 2.3
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\">";
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  }
24  echo "</ul>";
26 } else {
27  echo elgg_echo("friends:nocollections");
28 }
30 ?>
31 <?php //@todo JS 1.8: no ?>
32 <script>
33 require(['jquery'], function($) {
34  $(function () {
35  $('#friends_collections_accordian h2').on('click', function () {
36  $(this.parentNode).children("[class=friends-picker-main-wrapper]").slideToggle("fast");
37  });
38  });
39 });
40 </script>
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on
Definition: GPL-LICENSE.txt:43
elgg echo
Translates a string.
Definition: languages.js:48
elgg require
Throw an error if the required package isn&#39;t present.
Definition: elgglib.js:164
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336