247 if (func_num_args() == 5) {
248 elgg_log(__FUNCTION__ .
' now has only 3 arguments. Update your usage.',
'ERROR');
338 return Minify_CSS_UriRewriter::prepend(
$css,
$path);
362 if (!
$timer->hasEnded([
'build page'])) {
363 $timer->end([
'build page']);
365 $timer->begin([__FUNCTION__]);
370 array_shift(
$params[
'segments']);
377 if ($system_messages->count()) {
378 $messages = $system_messages->dumpRegister();
394 $vars[
'page_shell'] = $page_shell;
409 $timer->end([__FUNCTION__]);
424 $view =
"resources/$name";
437 throw new \Elgg\PageNotFoundException();
459 $params[
'metas'][
'content-type'] = [
460 'http-equiv' =>
'Content-Type',
461 'content' =>
'text/html; charset=utf-8',
464 $params[
'metas'][
'description'] = [
465 'name' =>
'description',
470 $params[
'metas'][
'viewport'] = [
471 'name' =>
'viewport',
472 'content' =>
'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0',
474 $params[
'metas'][
'mobile-web-app-capable'] = [
475 'name' =>
'mobile-web-app-capable',
478 $params[
'metas'][
'apple-mobile-web-app-capable'] = [
479 'name' =>
'apple-mobile-web-app-capable',
486 if (substr_count(
$url,
'?')) {
492 'rel' =>
'alternative',
493 'type' =>
'application/rss+xml',
521 $head_params[
'links'][
'apple-touch-icon'] = [
522 'rel' =>
'apple-touch-icon',
527 $head_params[
'links'][
'icon-ico'] = [
531 $head_params[
'links'][
'icon-vector'] = [
533 'sizes' =>
'16x16 32x32 48x48 64x64 128x128',
534 'type' =>
'image/svg+xml',
537 $head_params[
'links'][
'icon-16'] = [
540 'type' =>
'image/png',
543 $head_params[
'links'][
'icon-32'] = [
546 'type' =>
'image/png',
549 $head_params[
'links'][
'icon-64'] = [
552 'type' =>
'image/png',
555 $head_params[
'links'][
'icon-128'] = [
557 'sizes' =>
'128x128',
558 'type' =>
'image/png',
595 if (!
$timer->hasEnded([
'build page'])) {
596 $timer->end([
'build page']);
598 $timer->begin([__FUNCTION__]);
601 switch ($layout_name) {
603 $layout_name =
'default';
608 $layout_name =
'default';
610 $vars[
'sidebar_alt'] =
false;
614 $layout_name =
'default';
615 $vars[
'sidebar'] =
false;
616 $vars[
'sidebar_alt'] =
false;
620 $layout_name =
'default';
628 if (isset($filter_context) &&
$filter_id ===
'filter') {
632 $vars[
'filter_value'] = $filter_context;
637 if (isset(
$vars[
'nav'])) {
645 array_shift(
$vars[
'segments']);
649 $vars[
'layout'] = $layout_name;
652 "page/layouts/$layout_name",
653 "page/layouts/default",
657 foreach ($layout_views as $layout_view) {
664 $timer->end([__FUNCTION__]);
681 if (!
$vars[
'title'] &&
$vars[
'title'] !==
false) {
686 if (isset(
$vars[
'filter_override'])) {
695 $vars[
'filter_value'] = $selected;
758 unset(
$vars[
'menu_view']);
760 if (is_string(
$menu)) {
767 throw new \InvalidArgumentException(
'$menu must be a menu name, a Menu, or UnpreparedMenu');
775 "navigation/menu/$name",
776 'navigation/menu/default',
804 $vars[
'class'][] =
'elgg-non-link';
807 if (!isset($vars[
'rel']) && !isset($vars[
'is_trusted'])) {
808 $vars[
'is_trusted'] =
true;
856 $entity_type = $entity->
getType();
861 "$entity_type/$entity_subtype",
862 "$entity_type/default",
866 foreach ($entity_views as
$view) {
874 if (
$vars[
'full_view']) {
904 $entity_type = $entity->
getType();
948 $name = $annotation->name;
953 $annotation_views = [
956 "annotation/default",
960 foreach ($annotation_views as
$view) {
1000 $list_type =
get_input(
'list_type',
'list');
1003 'items' => $entities,
1004 'list_class' =>
'elgg-list-entity',
1005 'full_view' =>
true,
1006 'pagination' =>
true,
1007 'list_type' => $list_type,
1008 'list_type_toggle' =>
false,
1017 $vars[
"pagination"] =
false;
1020 $view =
"page/components/{$vars['list_type']}";
1022 $view =
'page/components/list';
1048 'items' => $annotations,
1051 'list_class' =>
'elgg-list-annotation elgg-annotation-list',
1052 'full_view' =>
true,
1053 'offset_key' =>
'annoff',
1060 $vars[
"pagination"] =
false;
1082 $entity_type = $entity->
getType();
1086 'entity' => $entity,
1091 return $annotations;
1121 $view =
'output/friendlytime';
1148 $vars[
'show_add_form'] = $add_comment;
1265 "river/{$type}/{$subtype}/{$action}",
1266 "river/{$type}/{$subtype}/default",
1267 "river/{$type}/{$action}",
1268 "river/{$type}/default",
1269 'river/elements/layout',
1273 foreach ($river_views as
$view) {
1355 if (!isset($prefixes)) {
1362 foreach ($prefixes as $prefix) {
1363 if (substr(
$key, 0, 1) === $prefix) {
1397 if (!empty(
$params[
'#html'])) {
1401 if (empty(
$params[
'#type'])) {
1402 _elgg_services()->logger->error(__FUNCTION__ .
'(): $params["#type"] is required.');
1411 $hidden_types = [
'hidden',
'securitytoken'];
1419 $id =
"elgg-field-" . base_convert(mt_rand(), 10, 36);
1423 $make_special_checkbox_label =
false;
1436 $make_special_checkbox_label =
true;
1456 $element_vars = array_merge($split_params[
''], $split_params[
'#']);
1465 $element_vars[
'label'] =
elgg_view(
'elements/forms/label', $element_vars);
1466 $element_vars[
'help'] =
elgg_view(
'elements/forms/help', $element_vars);
1468 if ($make_special_checkbox_label) {
1471 unset($element_vars[
'label']);
1475 return elgg_view(
'elements/forms/field', $element_vars);
1505 'value' => $tag_data,
1557 if (is_string(
$vars)) {
1561 if (!is_array(
$vars)) {
1562 throw new \InvalidArgumentException(
'$vars needs to be a string or an array');
1635 if (preg_match(
'~[\.-]min\.~',
$params[
'view'])) {
1640 if (
$type ==
'js') {
1646 $cssmin =
new CSSmin();
1680 $filter = new \Elgg\Amd\ViewFilter();
1732 if (0 === strpos(
$path,
'/') || preg_match(
'~^([A-Za-z]\:)?\\\\~',
$path)) {
1734 $expected_path =
$path;
1742 return realpath($view_path) !== realpath($expected_path);
1783 'deps' => [
'jquery-ui'],
1797 'exports' =>
'jQuery.fn.treeview',
1798 'deps' => [
'jquery'],
1823 'topbar' => [
'w' => 16,
'h' => 16,
'square' =>
true,
'upscale' =>
true],
1824 'tiny' => [
'w' => 25,
'h' => 25,
'square' =>
true,
'upscale' =>
true],
1825 'small' => [
'w' => 40,
'h' => 40,
'square' =>
true,
'upscale' =>
true],
1826 'medium' => [
'w' => 100,
'h' => 100,
'square' =>
true,
'upscale' =>
true],
1827 'large' => [
'w' => 200,
'h' => 200,
'square' =>
true,
'upscale' =>
true],
1828 'master' => [
'w' => 10240,
'h' => 10240,
'square' =>
false,
'upscale' =>
false,
'crop' =>
false],
1858 'elgg.security.interval' => (int)
elgg()->csrf->getActionTokenTimeout() * 333,
1871 if (!is_array(
$data)) {
1872 elgg_log(
'"elgg.data" plugin hook handlers must return an array. Returned ' . gettype(
$data) .
'.',
'ERROR');
1885 '__elgg_ts' =>
$ts = time(),
1893 '_data' => (object)
$data,
1897 $elgg[
'config'][
'load_sync_code'] =
true;
1907 $user_object =
$user->toObject();
1908 $user_object->admin =
$user->isAdmin();
1909 $elgg[
'session'][
'user'] = $user_object;
1927 $current_view_type = null;
1935 if (isset($current_view_type)) {
1954 $return[
'lightbox'] = [
1955 'current' =>
elgg_echo(
'js:lightbox:current', [
'{current}',
'{total}']),
1960 'maxWidth' =>
'990px',
1961 'maxHeight' =>
'990px',
1962 'initialWidth' =>
'300px',
1963 'initialHeight' =>
'300px',
1981 $return = $hook->getValue();
1986 if (!
elgg_extract(
'show_upload_limit', $return,
true)) {
2001 $return[
'help'] = trim(
$help);
2019 "arrow-two-head" =>
"arrows-h",
2020 "attention" =>
"exclamation-triangle",
2021 "cell-phone" =>
"mobile",
2022 "checkmark" =>
"check",
2023 "clip" =>
"paperclip",
2024 "cursor-drag-arrow" =>
"arrows",
2025 "drag-arrow" =>
"arrows",
2026 "delete-alt" =>
"times-circle",
2027 "delete" =>
"times",
2028 "facebook" =>
"facebook-square",
2030 "hover-menu" =>
"caret-down",
2031 "info" =>
"info-circle",
2032 "lock-closed" =>
"lock",
2033 "lock-open" =>
"unlock",
2034 "mail" =>
"envelope-o",
2035 "mail-alt" =>
"envelope",
2036 "print-alt" =>
"print",
2037 "push-pin" =>
"thumb-tack",
2038 "push-pin-alt" =>
"thumb-tack",
2040 "round-arrow-left" =>
"arrow-circle-left",
2041 "round-arrow-right" =>
"arrow-circle-right",
2042 "round-checkmark" =>
"check-circle",
2043 "round-minus" =>
"minus-circle",
2044 "round-plus" =>
"plus-circle",
2045 "rss" =>
"rss-square",
2046 "search-focus" =>
"search",
2047 "settings" =>
"wrench",
2048 "settings-alt" =>
"cog",
2049 "share" =>
"share-alt-square",
2050 "shop-cart" =>
"shopping-cart",
2051 "speech-bubble" =>
"comment",
2052 "speech-bubble-alt" =>
"comments",
2053 "star-alt" =>
"star",
2054 "star-empty" =>
"star-o",
2055 "thumbs-down-alt" =>
"thumbs-down",
2056 "thumbs-up-alt" =>
"thumbs-up",
2057 "trash" =>
"trash-o",
2058 "twitter" =>
"twitter-square",
2064 'address-book-o' => [
'address-book',
'far'],
2065 'address-card-o' => [
'address-card',
'far'],
2066 'area-chart' => [
'chart-area',
'fas'],
2067 'arrow-circle-o-down' => [
'arrow-alt-circle-down',
'far'],
2068 'arrow-circle-o-left' => [
'arrow-alt-circle-left',
'far'],
2069 'arrow-circle-o-right' => [
'arrow-alt-circle-right',
'far'],
2070 'arrow-circle-o-up' => [
'arrow-alt-circle-up',
'far'],
2071 'arrows-alt' => [
'expand-arrows-alt',
'fas'],
2072 'arrows-h' => [
'arrows-alt-h',
'fas'],
2073 'arrows-v' => [
'arrows-alt-v',
'fas'],
2074 'arrows' => [
'arrows-alt',
'fas'],
2075 'asl-interpreting' => [
'american-sign-language-interpreting',
'fas'],
2076 'automobile' => [
'car',
'fas'],
2077 'bank' => [
'university',
'fas'],
2078 'bar-chart-o' => [
'chart-bar',
'far'],
2079 'bar-chart' => [
'chart-bar',
'far'],
2080 'bathtub' => [
'bath',
'fas'],
2081 'battery-0' => [
'battery-empty',
'fas'],
2082 'battery-1' => [
'battery-quarter',
'fas'],
2083 'battery-2' => [
'battery-half',
'fas'],
2084 'battery-3' => [
'battery-three-quarters',
'fas'],
2085 'battery-4' => [
'battery-full',
'fas'],
2086 'battery' => [
'battery-full',
'fas'],
2087 'bell-o' => [
'bell',
'far'],
2088 'bell-slash-o' => [
'bell-slash',
'far'],
2089 'bitbucket-square' => [
'bitbucket',
'fab'],
2090 'bitcoin' => [
'btc',
'fab'],
2091 'bookmark-o' => [
'bookmark',
'far'],
2092 'building-o' => [
'building',
'far'],
2093 'cab' => [
'taxi',
'fas'],
2094 'calendar-check-o' => [
'calendar-check',
'far'],
2095 'calendar-minus-o' => [
'calendar-minus',
'far'],
2096 'calendar-o' => [
'calendar',
'far'],
2097 'calendar-plus-o' => [
'calendar-plus',
'far'],
2098 'calendar-times-o' => [
'calendar-times',
'far'],
2099 'calendar' => [
'calendar-alt',
'fas'],
2100 'caret-square-o-down' => [
'caret-square-down',
'far'],
2101 'caret-square-o-left' => [
'caret-square-left',
'far'],
2102 'caret-square-o-right' => [
'caret-square-right',
'far'],
2103 'caret-square-o-up' => [
'caret-square-up',
'far'],
2104 'cc' => [
'closed-captioning',
'far'],
2105 'chain-broken' => [
'unlink',
'fas'],
2106 'chain' => [
'link',
'fas'],
2107 'check-circle-o' => [
'check-circle',
'far'],
2108 'check-square-o' => [
'check-square',
'far'],
2109 'circle-o-notch' => [
'circle-notch',
'fas'],
2110 'circle-o' => [
'circle',
'far'],
2111 'circle-thin' => [
'circle',
'far'],
2112 'clock-o' => [
'clock',
'far'],
2113 'close' => [
'times',
'fas'],
2114 'cloud-download' => [
'cloud-download-alt',
'fas'],
2115 'cloud-upload' => [
'cloud-upload-alt',
'fas'],
2116 'cny' => [
'yen-sign',
'fas'],
2117 'code-fork' => [
'code-branch',
'fas'],
2118 'comment-o' => [
'comment',
'far'],
2119 'commenting-o' => [
'comment-alt',
'far'],
2120 'commenting' => [
'comment-alt',
'fas'],
2121 'comments-o' => [
'comments',
'far'],
2122 'credit-card-alt' => [
'credit-card',
'fas'],
2123 'cutlery' => [
'utensils',
'fas'],
2124 'dashboard' => [
'tachometer-alt',
'fas'],
2125 'deafness' => [
'deaf',
'fas'],
2126 'dedent' => [
'outdent',
'fas'],
2127 'diamond' => [
'gem',
'far'],
2128 'dollar' => [
'dollar-sign',
'fas'],
2129 'dot-circle-o' => [
'dot-circle',
'far'],
2130 'drivers-license-o' => [
'id-card',
'far'],
2131 'drivers-license' => [
'id-card',
'fas'],
2132 'eercast' => [
'sellcast',
'fab'],
2133 'envelope-o' => [
'envelope',
'far'],
2134 'envelope-open-o' => [
'envelope-open',
'far'],
2135 'eur' => [
'euro-sign',
'fas'],
2136 'euro' => [
'euro-sign',
'fas'],
2137 'exchange' => [
'exchange-alt',
'fas'],
2138 'external-link-square' => [
'external-link-square-alt',
'fas'],
2139 'external-link' => [
'external-link-alt',
'fas'],
2140 'eyedropper' => [
'eye-dropper',
'fas'],
2141 'fa' => [
'font-awesome',
'fab'],
2142 'facebook-f' => [
'facebook-f',
'fab'],
2143 'facebook-official' => [
'facebook',
'fab'],
2144 'facebook' => [
'facebook-f',
'fab'],
2145 'feed' => [
'rss',
'fas'],
2146 'file-archive-o' => [
'file-archive',
'far'],
2147 'file-audio-o' => [
'file-audio',
'far'],
2148 'file-code-o' => [
'file-code',
'far'],
2149 'file-excel-o' => [
'file-excel',
'far'],
2150 'file-image-o' => [
'file-image',
'far'],
2151 'file-movie-o' => [
'file-video',
'far'],
2152 'file-o' => [
'file',
'far'],
2153 'file-pdf-o' => [
'file-pdf',
'far'],
2154 'file-photo-o' => [
'file-image',
'far'],
2155 'file-picture-o' => [
'file-image',
'far'],
2156 'file-powerpoint-o' => [
'file-powerpoint',
'far'],
2157 'file-sound-o' => [
'file-audio',
'far'],
2158 'file-text-o' => [
'file-alt',
'far'],
2159 'file-text' => [
'file-alt',
'fas'],
2160 'file-video-o' => [
'file-video',
'far'],
2161 'file-word-o' => [
'file-word',
'far'],
2162 'file-zip-o' => [
'file-archive',
'far'],
2163 'files-o' => [
'copy',
'far'],
2164 'flag-o' => [
'flag',
'far'],
2165 'flash' => [
'bolt',
'fas'],
2166 'floppy-o' => [
'save',
'far'],
2167 'folder-o' => [
'folder',
'far'],
2168 'folder-open-o' => [
'folder-open',
'far'],
2169 'frown-o' => [
'frown',
'far'],
2170 'futbol-o' => [
'futbol',
'far'],
2171 'gbp' => [
'pound-sign',
'fas'],
2172 'ge' => [
'empire',
'fab'],
2173 'gear' => [
'cog',
'fas'],
2174 'gears' => [
'cogs',
'fas'],
2175 'gittip' => [
'gratipay',
'fab'],
2176 'glass' => [
'glass-martini',
'fas'],
2177 'google-plus-circle' => [
'google-plus',
'fab'],
2178 'google-plus-official' => [
'google-plus',
'fab'],
2179 'google-plus' => [
'google-plus-g',
'fab'],
2180 'group' => [
'users',
'fas'],
2181 'hand-grab-o' => [
'hand-rock',
'far'],
2182 'hand-lizard-o' => [
'hand-lizard',
'far'],
2183 'hand-o-down' => [
'hand-point-down',
'far'],
2184 'hand-o-left' => [
'hand-point-left',
'far'],
2185 'hand-o-right' => [
'hand-point-right',
'far'],
2186 'hand-o-up' => [
'hand-point-up',
'far'],
2187 'hand-paper-o' => [
'hand-paper',
'far'],
2188 'hand-peace-o' => [
'hand-peace',
'far'],
2189 'hand-pointer-o' => [
'hand-pointer',
'far'],
2190 'hand-rock-o' => [
'hand-rock',
'far'],
2191 'hand-scissors-o' => [
'hand-scissors',
'far'],
2192 'hand-spock-o' => [
'hand-spock',
'far'],
2193 'hand-stop-o' => [
'hand-paper',
'far'],
2194 'handshake-o' => [
'handshake',
'far'],
2195 'hard-of-hearing' => [
'deaf',
'fas'],
2196 'hdd-o' => [
'hdd',
'far'],
2197 'header' => [
'heading',
'fas'],
2198 'heart-o' => [
'heart',
'far'],
2199 'hospital-o' => [
'hospital',
'far'],
2200 'hotel' => [
'bed',
'fas'],
2201 'hourglass-1' => [
'hourglass-start',
'fas'],
2202 'hourglass-2' => [
'hourglass-half',
'fas'],
2203 'hourglass-3' => [
'hourglass-end',
'fas'],
2204 'hourglass-o' => [
'hourglass',
'far'],
2205 'id-card-o' => [
'id-card',
'far'],
2206 'ils' => [
'shekel-sign',
'fas'],
2207 'image' => [
'image',
'far'],
2208 'inr' => [
'rupee-sign',
'fas'],
2209 'institution' => [
'university',
'fas'],
2210 'intersex' => [
'transgender',
'fas'],
2211 'jpy' => [
'yen-sign',
'fas'],
2212 'keyboard-o' => [
'keyboard',
'far'],
2213 'krw' => [
'won-sign',
'fas'],
2214 'legal' => [
'gavel',
'fas'],
2215 'lemon-o' => [
'lemon',
'far'],
2216 'level-down' => [
'level-down-alt',
'fas'],
2217 'level-up' => [
'level-up-alt',
'fas'],
2218 'life-bouy' => [
'life-ring',
'far'],
2219 'life-buoy' => [
'life-ring',
'far'],
2220 'life-saver' => [
'life-ring',
'far'],
2221 'lightbulb-o' => [
'lightbulb',
'far'],
2222 'line-chart' => [
'chart-line',
'fas'],
2223 'linkedin-square' => [
'linkedin',
'fab'],
2224 'linkedin' => [
'linkedin-in',
'fab'],
2225 'long-arrow-down' => [
'long-arrow-alt-down',
'fas'],
2226 'long-arrow-left' => [
'long-arrow-alt-left',
'fas'],
2227 'long-arrow-right' => [
'long-arrow-alt-right',
'fas'],
2228 'long-arrow-up' => [
'long-arrow-alt-up',
'fas'],
2229 'mail-forward' => [
'share',
'fas'],
2230 'mail-reply-all' => [
'reply-all',
'fas'],
2231 'mail-reply' => [
'reply',
'fas'],
2232 'map-marker' => [
'map-marker-alt',
'fas'],
2233 'map-o' => [
'map',
'far'],
2234 'meanpath' => [
'font-awesome',
'fab'],
2235 'meh-o' => [
'meh',
'far'],
2236 'minus-square-o' => [
'minus-square',
'far'],
2237 'mobile-phone' => [
'mobile-alt',
'fas'],
2238 'mobile' => [
'mobile-alt',
'fas'],
2239 'money' => [
'money-bill-alt',
'far'],
2240 'moon-o' => [
'moon',
'far'],
2241 'mortar-board' => [
'graduation-cap',
'fas'],
2242 'navicon' => [
'bars',
'fas'],
2243 'newspaper-o' => [
'newspaper',
'far'],
2244 'paper-plane-o' => [
'paper-plane',
'far'],
2245 'paste' => [
'clipboard',
'far'],
2246 'pause-circle-o' => [
'pause-circle',
'far'],
2247 'pencil-square-o' => [
'edit',
'far'],
2248 'pencil-square' => [
'pen-square',
'fas'],
2249 'pencil' => [
'pencil-alt',
'fas'],
2250 'photo' => [
'image',
'far'],
2251 'picture-o' => [
'image',
'far'],
2252 'pie-chart' => [
'chart-pie',
'fas'],
2253 'play-circle-o' => [
'play-circle',
'far'],
2254 'plus-square-o' => [
'plus-square',
'far'],
2255 'question-circle-o' => [
'question-circle',
'far'],
2256 'ra' => [
'rebel',
'fab'],
2257 'refresh' => [
'sync',
'fas'],
2258 'remove' => [
'times',
'fas'],
2259 'reorder' => [
'bars',
'fas'],
2260 'repeat' => [
'redo',
'fas'],
2261 'resistance' => [
'rebel',
'fab'],
2262 'rmb' => [
'yen-sign',
'fas'],
2263 'rotate-left' => [
'undo',
'fas'],
2264 'rotate-right' => [
'redo',
'fas'],
2265 'rouble' => [
'ruble-sign',
'fas'],
2266 'rub' => [
'ruble-sign',
'fas'],
2267 'ruble' => [
'ruble-sign',
'fas'],
2268 'rupee' => [
'rupee-sign',
'fas'],
2269 's15' => [
'bath',
'fas'],
2270 'scissors' => [
'cut',
'fas'],
2271 'send-o' => [
'paper-plane',
'far'],
2272 'send' => [
'paper-plane',
'fas'],
2273 'share-square-o' => [
'share-square',
'far'],
2274 'shekel' => [
'shekel-sign',
'fas'],
2275 'sheqel' => [
'shekel-sign',
'fas'],
2276 'shield' => [
'shield-alt',
'fas'],
2277 'sign-in' => [
'sign-in-alt',
'fas'],
2278 'sign-out' => [
'sign-out-alt',
'fas'],
2279 'signing' => [
'sign-language',
'fas'],
2280 'sliders' => [
'sliders-h',
'fas'],
2281 'smile-o' => [
'smile',
'far'],
2282 'snowflake-o' => [
'snowflake',
'far'],
2283 'soccer-ball-o' => [
'futbol',
'far'],
2284 'sort-alpha-asc' => [
'sort-alpha-down',
'fas'],
2285 'sort-alpha-desc' => [
'sort-alpha-up',
'fas'],
2286 'sort-amount-asc' => [
'sort-amount-down',
'fas'],
2287 'sort-amount-desc' => [
'sort-amount-up',
'fas'],
2288 'sort-asc' => [
'sort-up',
'fas'],
2289 'sort-desc' => [
'sort-down',
'fas'],
2290 'sort-numeric-asc' => [
'sort-numeric-down',
'fas'],
2291 'sort-numeric-desc' => [
'sort-numeric-up',
'fas'],
2292 'spoon' => [
'utensil-spoon',
'fas'],
2293 'square-o' => [
'square',
'far'],
2294 'star-half-empty' => [
'star-half',
'far'],
2295 'star-half-full' => [
'star-half',
'far'],
2296 'star-half-o' => [
'star-half',
'far'],
2297 'star-o' => [
'star',
'far'],
2298 'sticky-note-o' => [
'sticky-note',
'far'],
2299 'stop-circle-o' => [
'stop-circle',
'far'],
2300 'sun-o' => [
'sun',
'far'],
2301 'support' => [
'life-ring',
'far'],
2302 'tablet' => [
'tablet-alt',
'fas'],
2303 'tachometer' => [
'tachometer-alt',
'fas'],
2304 'television' => [
'tv',
'fas'],
2305 'thermometer-0' => [
'thermometer-empty',
'fas'],
2306 'thermometer-1' => [
'thermometer-quarter',
'fas'],
2307 'thermometer-2' => [
'thermometer-half',
'fas'],
2308 'thermometer-3' => [
'thermometer-three-quarters',
'fas'],
2309 'thermometer-4' => [
'thermometer-full',
'fas'],
2310 'thermometer' => [
'thermometer-full',
'fas'],
2311 'thumb-tack' => [
'thumbtack',
'fas'],
2312 'thumbs-o-down' => [
'thumbs-down',
'far'],
2313 'thumbs-o-up' => [
'thumbs-up',
'far'],
2314 'ticket' => [
'ticket-alt',
'fas'],
2315 'times-circle-o' => [
'times-circle',
'far'],
2316 'times-rectangle-o' => [
'window-close',
'far'],
2317 'times-rectangle' => [
'window-close',
'fas'],
2318 'toggle-down' => [
'caret-square-down',
'far'],
2319 'toggle-left' => [
'caret-square-left',
'far'],
2320 'toggle-right' => [
'caret-square-right',
'far'],
2321 'toggle-up' => [
'caret-square-up',
'far'],
2322 'trash-o' => [
'trash-alt',
'far'],
2323 'trash' => [
'trash-alt',
'fas'],
2324 'try' => [
'lira-sign',
'fas'],
2325 'turkish-lira' => [
'lira-sign',
'fas'],
2326 'unsorted' => [
'sort',
'fas'],
2327 'usd' => [
'dollar-sign',
'fas'],
2328 'user-circle-o' => [
'user-circle',
'far'],
2329 'user-o' => [
'user',
'far'],
2330 'vcard-o' => [
'address-card',
'far'],
2331 'vcard' => [
'address-card',
'fas'],
2332 'video-camera' => [
'video',
'fas'],
2333 'vimeo' => [
'vimeo-v',
'fab'],
2334 'volume-control-phone' => [
'phone-volume',
'fas'],
2335 'warning' => [
'exclamation-triangle',
'fas'],
2336 'wechat' => [
'weixin',
'fab'],
2337 'wheelchair-alt' => [
'accessible-icon',
'fab'],
2338 'window-close-o' => [
'window-close',
'far'],
2339 'won' => [
'won-sign',
'fas'],
2340 'y-combinator-square' => [
'hacker-news',
'fab'],
2341 'yc-square' => [
'hacker-news',
'fab'],
2342 'yc' => [
'y-combinator',
'fab'],
2343 'yen' => [
'yen-sign',
'fas'],
2344 'youtube-play' => [
'youtube',
'fab'],
2345 'youtube-square' => [
'youtube',
'fab'],
2444 'facebook-messenger',
2454 'font-awesome-flag',
2484 'google-plus-square',
2492 'hacker-news-square',
2502 'internet-explorer',
2548 'odnoklassniki-square',
2561 'phoenix-framework',
2623 'stumbleupon-circle',
2674 'yandex-international',
2681 foreach ($classes as
$index => $c) {
2688 if (preg_match_all(
'/^elgg-icon-(.+)/i', $c)) {
2690 $base_icon = preg_replace(
'/^elgg-icon-(.+)/i',
'$1', $c);
2693 if (strpos($base_icon,
'-hover') !==
false) {
2694 $base_icon = str_replace(
'-hover',
'', $base_icon);
2695 $classes[] =
'elgg-state';
2696 $classes[] =
'elgg-state-notice';
2699 $base_icon =
elgg_extract($base_icon, $legacy_sprites, $base_icon);
2703 if (preg_match(
'/.*-solid$/', $base_icon)) {
2704 $base_icon = preg_replace(
'/(.*)-solid$/',
'$1', $base_icon);
2706 }
elseif (preg_match(
'/.*-regular$/', $base_icon)) {
2707 $base_icon = preg_replace(
'/(.*)-regular$/',
'$1', $base_icon);
2709 }
elseif (preg_match(
'/.*-light$/', $base_icon)) {
2711 $base_icon = preg_replace(
'/(.*)-light$/',
'$1', $base_icon);
2714 if (array_key_exists($base_icon, $fa5)) {
2715 $classes[] = $fa5[$base_icon][1];
2716 $base_icon = $fa5[$base_icon][0];
2717 }
else if (in_array($base_icon, $brands)) {
2724 $classes[] =
"fa-{$base_icon}";
2728 $classes = array_unique($classes);
_elgg_views_amd($hook, $type, $content, $params)
Inserts module names into anonymous modules by handling the "simplecache:generate" and "cache:generat...
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
elgg_views_boot()
Initialize viewtypes on system boot event This ensures simplecache is cleared during upgrades...
getType()
Get the type of the object.
getSubtype()
Get the entity subtype.
elgg_get_view_extensions($view)
Get the views (and priorities) that extend a view.
elgg_unregister_ajax_view($view)
Unregister a view for ajax calls.
if(!$item instanceof ElggRiverItem) $object
if(!$user||!$user->canDelete()) $name
$params
Saves global plugin settings.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
_elgg_views_prepare_head($title)
Prepare the variables for the html head.
if(!$php_log) $post_max_size
elgg_view_entity_list($entities, array $vars=[])
Returns a rendered list of entities with pagination.
$annotation
Elgg default annotation view.
elgg_set_http_header($header, $replace=true)
Set a response HTTP header.
elgg_view_entity_annotations(\ElggEntity $entity, $full_view=true)
Display a plugin-specified rendered list of annotations for an entity.
elgg_define_js($name, $config)
Defines a JS lib as an AMD module.
elgg_view_resource($name, array $vars=[])
Render a resource view.
elgg_view_menu_item(\ElggMenuItem $item, array $vars=[])
Render a menu item (usually as a link)
autoregister_views($view_base, $folder, $ignored, $viewtype)
Auto-registers views from a location.
_elgg_map_icon_glyph_class(array $classes, $map_sprites=true)
Maps legacy sprite classes and FontAwesome 4 classes to FontAwesome 5 classes.
get_current_language()
Get the current system/user language or "en".
elgg_register_simplecache_view($view_name)
Registers a view to simple cache.
elgg_does_viewtype_fallback($viewtype)
Checks if a viewtype falls back to default.
elgg_get_simplecache_url($view, $subview= '')
Get the URL for the cached view.
if(!empty($title)&&!empty($icon_name)) if(!empty($title)) if(!empty($header)) if(!empty($body)) $contents
_elgg_view_may_be_altered($view, $path)
Is there a chance a plugin is altering this view?
elgg_register_css($name, $url, $priority=null)
Register a CSS file for inclusion in the HTML head.
if(elgg_trigger_plugin_hook('usersettings:save', 'user', $hooks_params, true)) foreach($request->validation() ->all() as $item) $data
if($vars['name']&&$vars['default']!==false) $input_vars
_elgg_is_valid_viewtype($viewtype)
Checks if $viewtype is a string suitable for use as a viewtype name.
elgg_view_tagcloud(array $options=[])
Create a tagcloud for viewing.
elgg_prepend_css_urls($css, $path)
In CSS content, prepend a path to relative URLs.
elgg_list_views($viewtype= 'default')
List all views in a viewtype.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
elgg_view_deprecated($view, array $vars, $suggestion, $version)
Display a view with a deprecation notice.
catch(LoginException $e) if($request->isXhr()) $output
elgg_register_viewtype_fallback($viewtype)
Register a viewtype to fall back to a default view if a view isn't found for that viewtype...
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
_elgg_get_js_site_data()
Get the site data to be merged into "elgg" in elgg.js.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_set_form_footer($footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=[])
View the icon of an entity.
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
getSubtype()
Get the subtype of the object.
elgg_get_viewtype()
Return the current view type.
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
elgg_register_external_view($view, $cacheable=false)
Registers a view as being available externally (i.e.
_elgg_has_rss_link()
Should the RSS view of this URL be linked to?
if(!elgg_view_exists("plugins/{$plugin_id}/settings")) $form_vars
elgg_view_menu($menu, array $vars=[])
Render a menu.
elgg_get_ini_setting_in_bytes($setting)
Returns a PHP INI setting in bytes.
_elgg_get_js_page_data()
Get the initial contents of "elgg" client side.
elgg_load_css($name)
Load a CSS file for this page.
elgg_register_js($name, $url, $location= 'head', $priority=null)
Register a JavaScript file for inclusion.
$id
River item delete action.
if(!$owner||!$owner->canEdit()) if(!$owner->hasIcon('master')) if(!$owner->saveIconFromElggFile($owner->getIcon('master'), 'icon', $coords)) $view
elgg_view_message($type, $body, array $vars=[])
Wrapper function for the message display pattern.
elgg_view_list_item($item, array $vars=[])
View an item in a list.
_elgg_views_send_header_x_frame_options()
Sends X-Frame-Options header on page requests.
elgg_set_view_location($view, $location, $viewtype= '')
Set an alternative base location for a view.
elgg_view_river_item($item, array $vars=[])
Renders a human-readable representation of a river item.
if(!$entity instanceof ElggEntity) $time
elgg_view_form($action, $form_vars=[], $body_vars=[])
_elgg_set_lightbox_config($hook, $type, $return, $params)
Set lightbox config.
elgg_set_config($name, $value)
Set an Elgg configuration value.
foreach($filter_tabs as $name=> $tab) $filter_id
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
elgg_view_entity(\ElggEntity $entity, array $vars=[])
Returns a string of a rendered entity.
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
_elgg_normalize_content_layout_vars(array $vars=[])
Normalizes deprecated content layout $vars for use in default layout Helper function to assist plugin...
_elgg_views_prepare_favicon_links($hook, $type, $head_params, $params)
Add favicon link tags to HTML head.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
elgg_get_context()
Get the current context.
elgg_format_bytes($size, $precision=2)
Format bytes to a human readable format.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_register_ajax_view($view)
Register a view to be available for ajax calls.
_elgg_views_file_help_upload_limit(\Elgg\Hook $hook)
Add a help text to input/file about upload limit.
_elgg_views_preprocess_css($hook, $type, $content, $params)
Preprocesses CSS views sent by /cache URLs.
const ELGG_ENTITIES_ANY_VALUE
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
elgg_extend_view($view, $view_extension, $priority=501)
Extends a view with another view.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif(is_callable([$item, 'getType']))
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!$entity instanceof ElggEntity) $icon_sizes
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
elgg_view_annotation_list($annotations, array $vars=[])
Returns a rendered list of annotations, plus pagination.
elgg_get_filter_tabs($context=null, $selected=null, ElggUser $user=null, array $vars=[])
Returns default filter tabs (All, Mine, Friends) for the user.
_elgg_config()
Get the Elgg config service.
elgg_get_version($human_readable=false)
Get the current Elgg version information.
_elgg_views_minify($hook, $type, $content, $params)
Minifies simplecache CSS and JS views by handling the "simplecache:generate" hook.
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
elgg_is_simplecache_enabled()
Is simple cache enabled.
elgg_load_js($name)
Load a JavaScript resource on this page.
getType()
Returns the entity type.
$content
Set robots.txt action.
elgg_view_icon($name, $vars=[])
View an icon glyph.
_elgg_services()
Get the global service provider.
elgg_set_viewtype($viewtype= '')
Manually set the viewtype.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
elgg_view_annotation(\ElggAnnotation $annotation, array $vars=[])
Returns a string of a rendered annotation.
elgg_unregister_external_view($view)
Unregister a view for ajax calls.
elgg_unregister_rss_link()
Remove the RSS icon link and link element from the head.
_elgg_view_under_viewtype($view, $vars, $viewtype)
Render a view while the global viewtype is temporarily changed.
generate_action_token($timestamp)
Generate an action token.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
_elgg_split_vars(array $vars=[], array $prefixes=null)
Split array of vars into subarrays based on property prefixes.
elgg_view_friendly_time($time)
Displays a UNIX timestamp in a friendly way.
elgg_view_title($title, array $vars=[])
Renders a title.
elgg_view_comments($entity, $add_comment=true, array $vars=[])
Returns rendered comments and a comment form for an entity.
elgg_get_form_footer()
Returns currently set footer, or false if not in the form rendering stack.
elgg_register_rss_link()
Include the RSS icon link and link element in the head.
elgg_unextend_view($view, $view_extension)
Unextends a view.