25 if (!isset(
$vars[
'name'])) {
32 if (empty(
$vars[
'highlight'])) {
33 $vars[
'highlight'] =
'default';
35 if (
$vars[
'highlight'] !=
'all') {
36 $vars[
'highlight'] =
'default';
40 if (!isset(
$vars[
'value'])) {
41 $vars[
'value'] = array();
43 if (!is_array(
$vars[
'value'])) {
50 if (isset(
$vars[
'callback'])) {
51 $callback =
$vars[
'callback'];
57 if (!isset(
$vars[
'friendspicker'])) {
59 if (!isset($friendspicker)) {
72 if (isset(
$vars[
'formtarget'])) {
73 $formtarget =
$vars[
'formtarget'];
79 if (is_array(
$vars[
'entities']) &&
sizeof(
$vars[
'entities'])) {
86 if (!isset(
$users[$letter])) {
94 foreach (
$users as $letter => $letter_users) {
95 usort($letter_users, create_function(
'$a, $b',
' 96 return strcasecmp($a->name, $b->name); 98 $users[$letter] = $letter_users;
104 <
div class=
"friends-picker-main-wrapper">
108 if (isset(
$vars[
'content'])) {
113 <
div id=
"friends-picker_placeholder<?php echo $friendspicker; ?>">
118 if (!isset(
$vars[
'replacement'])) {
124 $(
'#collectionMembersForm<?php echo $friendspicker; ?>').
submit(
function() {
126 $(
':input',
this).each(
function() {
127 if (this.
type !=
'checkbox' || (this.
type ==
'checkbox' && this.checked !=
false)) {
128 inputs.push(this.
name +
'=' + escape(this.value));
133 data: inputs.join(
'&'),
136 $(
'a.collectionmembers<?php echo $friendspicker; ?>').
click();
146 <!-- Collection members
form -->
147 <
form id=
"collectionMembersForm<?php echo $friendspicker; ?>" action=
"<?php echo $formtarget; ?>" method=
"post"> <!--
action=
"" method=
""> -->
152 'name' =>
'collection_id',
153 'value' =>
$vars[
'collection_id'],
158 <
div class=
"friends-picker-wrapper">
159 <
div id=
"friends-picker<?php echo $friendspicker; ?>">
160 <
div class=
"friends-picker-container">
169 <
div class=
"panel" title=
"<?php echo $letter; ?>">
170 <
div class=
"wrapper">
174 if (isset(
$users[$letter])) {
177 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
194 if (in_array($friend->getGUID(),
$vars[
'value'])) {
195 $checked =
"checked = \"checked\"";
206 <
input type=
"checkbox" <?php
echo $checked; ?>
name=
"<?php echo $name; ?>[]" value=
"<?php echo $options[$label]; ?>" />
212 <
div style=
"width: 25px; margin-bottom: 15px;">
218 <
td style=
"width: 200px; padding: 5px;">
219 <?php
echo $friend->name; ?>
242 if ($letter == $substr) {
257 if (isset(
$vars[
'formcontents']))
261 <
div class=
"clearfix"></
div>
262 <
div class=
"friendspicker-savebuttons">
263 <
input type=
"submit" class=
"elgg-button elgg-button-submit" value=
"<?php echo elgg_echo('save'); ?>" />
264 <
input type=
"button" class=
"elgg-button elgg-button-cancel" value=
"<?php echo elgg_echo('cancel'); ?>" onclick=
"$('a.collectionmembers<?php echo $friendspicker; ?>').click();" />
293 if (!isset(
$vars[
'replacement'])) {
296 <script type=
"text/javascript">
300 <script type=
"text/javascript">
309 $(
"div#friends-picker-navigation<?php echo $friendspicker; ?> li.tab<?php echo $tab; ?> a").addClass(
"tabHasContent");
elgg message elgg state success
content header options form
elgg_strtoupper()
Wrapper function for mb_strtoupper().
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_strlen()
Wrapper function for mb_strlen().
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
GNU GENERAL PUBLIC LICENSE June Free Software Franklin Fifth MA USA Everyone is permitted to copy and distribute verbatim copies of this license document
if(!$members) $friendspicker
elgg_strpos()
Wrapper function for mb_strpos().
elgg echo
Translates a string.
elgg global
Pointer to the global context.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})
elgg_substr()
Wrapper function for mb_substr().
$label
Elgg profile plugin edit default profile action.
elgg_load_js($name)
Load a JavaScript resource on this page.
document ready(function(){$(document).on('click',"[data-toggle='wy-nav-top']", function(){$("[data-toggle='wy-nav-shift']").toggleClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(document).on('click',".wy-menu-vertical .current ul li a", function(){$("[data-toggle='wy-nav-shift']").removeClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(document).on('click',"[data-toggle='rst-current-version']", function(){$("[data-toggle='rst-versions']").toggleClass("shift-up");});$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");})
$CONFIG language
The current language for either the site or the user.
if(!$site) if(!($site instanceof ElggSite)) $site url
elgg_substr_count()
Wrapper function for mb_substr_count().
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
elgg table input[type=checkbox]
if(file_exists($welcome)) $vars