Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 4.0_templates
  • 4.1_templates-symlink
  • develop
  • git-fixes
  • master
5 results

Target

Select target project
  • tneumann9/PlanetRed
  • JSTUREK8/PlanetRed
  • smccoy12/PlanetRed
  • dkuzelka2/PlanetRed
  • s-cwiedel5/PlanetRed
  • dxg/PlanetRed
6 results
Select Git revision
  • 4.0_templates
  • 4.1_templates-symlink
  • develop
  • git-fixes
  • master
5 results
Show changes
Showing
with 1730 additions and 0 deletions
<?php ?>
.friend-request-new {
color: white;
background-color: red;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.50);
-moz-box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.50);
box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.50);
position: absolute;
text-align: center;
top: 0px;
left: 28px;
min-width: 16px;
height: 16px;
font-size: 10px;
font-weight: bold;
}
\ No newline at end of file
<?php
$entities = elgg_extract('entities', $vars);
$content = '';
if (!empty($entities)) {
$lis = [];
foreach ($entities as $entity) {
$icon = elgg_view_entity_icon($entity, 'small');
$info = elgg_view('output/url', [
'href' => $entity->getURL(),
'text' => $entity->name,
'is_trusted' => true,
]);
$info .= '<br />';
$info .= elgg_view('output/url', [
'href' => "action/friend_request/approve?guid={$entity->getGUID()}",
'text' => elgg_echo('friend_request:approve'),
'is_action' => true,
]);
$info .= '&nbsp;|&nbsp;';
$info .= elgg_view('output/url', [
'href' => "action/friend_request/decline?guid={$entity->getGUID()}",
'text' => elgg_echo('friend_request:decline'),
'is_action' => true,
]);
$lis[] = elgg_format_element('li', ['class' => 'elgg-item elgg-item-user'], elgg_view_image_block($icon, $info));
}
$content = elgg_format_element('ul', ['class' => 'elgg-list elgg-list-entity'], implode('', $lis));
} else {
$content = elgg_echo('friend_request:received:none');
}
echo elgg_view_module('info', elgg_echo('friend_request:received:title'), $content, ['class' => 'mbm']);
<?php
$entities = elgg_extract('entities', $vars, false);
$content = '';
if (!empty($entities)) {
$lis = [];
foreach ($entities as $entity) {
$icon = elgg_view_entity_icon($entity, 'small');
$info = elgg_view('output/url', [
'href' => $entity->getURL(),
'text' => $entity->name,
'is_trusted' => true,
]);
$info .= '<br />';
$info .= elgg_view('output/url', [
'href' => "action/friend_request/revoke?guid={$entity->getGUID()}",
'text' => elgg_echo('friend_request:revoke'),
'is_action' => true,
]);
$lis[] = elgg_format_element('li', ['class' => 'elgg-item elgg-item-user'], elgg_view_image_block($icon, $info));
}
$content = elgg_format_element('ul', ['class' => 'elgg-list elgg-list-entity'], implode('', $lis));
} else {
$content = elgg_echo('friend_request:sent:none');
}
echo elgg_view_module('info', elgg_echo('friend_request:sent:title'), $content, ['class' => 'mbm']);
<?php
$plugin = elgg_extract('entity', $vars);
$yesno_options = [
'yes' => elgg_echo('option:yes'),
'no' => elgg_echo('option:no'),
];
$add_river = elgg_echo('friend_request:settings:add_river');
$add_river .= elgg_view('input/select', [
'name' => 'params[add_river]',
'value' => $plugin->add_river,
'options_values' => $yesno_options,
'class' => 'mls',
]);
echo elgg_format_element('div', [], $add_river);
<?xml version="1.0" encoding="UTF-8" ?>
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
<name>UNL Avatars</name>
<author>UNL</author>
<version>1.0</version>
<description>Adds legacy and public Avatar (icon) support</description>
<requires>
<type>elgg_release</type>
<version>2.0</version>
</requires>
</plugin_manifest>
<?php
function unl_avatars_init() {
elgg_register_page_handler('pg', 'unl_avatars_pg_handler');
elgg_register_plugin_hook_handler('entity:icon:url', 'user', 'unl_avatars_alter_default_user_icons', 999);
}
// Fire up the plugin initialization using the elgg handler
elgg_register_event_handler('init','system','unl_avatars_init');
function unl_avatars_pg_handler($segments) {
if (!isset($segments[0])) {
return false;
}
if ('profile' == $segments[0]) {
return unl_avatars_pg_profile($segments);
}
if ('icon' == $segments[0]) {
return unl_avatars_pg_icon($segments);
}
return false;
}
function unl_avatars_pg_icon($segments) {
if (!isset($segments[1], $segments[2])) {
return false;
}
$username = $segments[1];
$size = $segments[2];
if (!$user = get_user_by_username($username)) {
//The legacy behavior was to return the default image rather than a 404
forward(elgg_get_simplecache_url("icons/user/default{$size}.gif"));
}
//Forward to the new guy
forward('mod/profile/icondirect.php?guid='.$user->guid.'&size='.$size);
}
function unl_avatars_pg_profile($segments) {
if (!isset($segments[1])) {
return false;
}
forward('profile/'.$segments[1]);
}
function unl_avatars_alter_default_user_icons($hook, $type, $returnValue, $params) {
//Always point to the icondirect.php file
$icon_time = $params['entity']->icontime;
$value = 'mod/profile/icondirect.php?lastcache='.$icon_time.'&guid='.$params['entity']->guid.'&size='.$params['size'];
return $value;
}
vendor
\ No newline at end of file
{
"require": {
"unl/php-wdn-templates": "^5.3"
},
"prefer-stable": true
}
\ No newline at end of file
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "38d0d2e02cf6eb2c0c01fa3cb2f8d24a",
"packages": [
{
"name": "unl/php-dwt-parser",
"version": "v1.0.1",
"source": {
"type": "git",
"url": "https://github.com/unl/phpdwtparser.git",
"reference": "1de8770c4d8675771d1529c2f81d96e0aa51931f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/unl/phpdwtparser/zipball/1de8770c4d8675771d1529c2f81d96e0aa51931f",
"reference": "1de8770c4d8675771d1529c2f81d96e0aa51931f",
"shasum": ""
},
"require": {
"php": ">=5.5",
"zaininnari/html-minifier": "*",
"zendframework/zend-code": "^2.5"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
},
"bin": [
"bin/createTemplates.php"
],
"type": "library",
"autoload": {
"psr-4": {
"UNL\\DWT\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Kevin Abel (kabel)",
"email": "kabel2@unl.edu",
"role": "Developer"
},
{
"name": "Brett Bieber (saltybeagle)",
"email": "brett.bieber@gmail.com",
"role": "Retired Developer"
}
],
"description": "A PHP library for parsing DWT files and turning them into PHP classes",
"homepage": "http://wdn.unl.edu/",
"time": "2016-01-05T21:35:46+00:00"
},
{
"name": "unl/php-wdn-templates",
"version": "v5.3.4",
"source": {
"type": "git",
"url": "https://github.com/unl/phpunltemplates.git",
"reference": "845d8e05a6ae636797b350659f64b5f03b466166"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/845d8e05a6ae636797b350659f64b5f03b466166",
"reference": "845d8e05a6ae636797b350659f64b5f03b466166",
"shasum": ""
},
"require": {
"php": ">=5.5",
"unl/php-dwt-parser": "1.0.*"
},
"require-dev": {
"phpunit/phpunit": "~5.0"
},
"type": "library",
"autoload": {
"psr-4": {
"UNL\\Templates\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Jeff Sturek (jsturek)",
"email": "jsturek8@unl.edu",
"role": "Developer"
},
{
"name": "Kevin Abel (kabel)",
"email": "kabel2@unl.edu",
"role": "Retired Developer"
},
{
"name": "Brett Bieber (saltybeagle)",
"email": "brett.bieber@gmail.com",
"role": "Retired Developer"
},
{
"name": "Ned Hummel (nhummel2)",
"email": "nhummel2@math.unl.edu",
"role": "Retired Developer"
}
],
"description": "A PHP library for rendering the UNL templates",
"homepage": "http://wdn.unl.edu/",
"support": {
"issues": "https://github.com/unl/phpunltemplates/issues",
"source": "https://github.com/unl/phpunltemplates/tree/v5.3.4"
},
"time": "2022-01-24T19:05:47+00:00"
},
{
"name": "zaininnari/html-minifier",
"version": "0.4.2",
"source": {
"type": "git",
"url": "https://github.com/zaininnari/html-minifier.git",
"reference": "5b94d85705626f9bb33b7c667bc4400088ed4ece"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zaininnari/html-minifier/zipball/5b94d85705626f9bb33b7c667bc4400088ed4ece",
"reference": "5b94d85705626f9bb33b7c667bc4400088ed4ece",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"satooshi/php-coveralls": "dev-master"
},
"type": "library",
"autoload": {
"psr-0": {
"zz": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"The BSD 3-Clause License"
],
"authors": [
{
"name": "Google inc",
"homepage": "http://www.chromium.org/blink",
"role": "Author"
},
{
"name": "zaininnari",
"homepage": "https://github.com/zaininnari/",
"role": "Developer"
}
],
"description": "The Blink HTMLTokenizer ported to PHP.",
"homepage": "https://github.com/zaininnari/html-minifier",
"keywords": [
"Blink",
"HTML minify",
"php"
],
"time": "2015-08-18T14:10:55+00:00"
},
{
"name": "zendframework/zend-code",
"version": "2.6.3",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-code.git",
"reference": "95033f061b083e16cdee60530ec260d7d628b887"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zendframework/zend-code/zipball/95033f061b083e16cdee60530ec260d7d628b887",
"reference": "95033f061b083e16cdee60530ec260d7d628b887",
"shasum": ""
},
"require": {
"php": "^5.5 || 7.0.0 - 7.0.4 || ^7.0.6",
"zendframework/zend-eventmanager": "^2.6 || ^3.0"
},
"require-dev": {
"doctrine/annotations": "~1.0",
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/phpunit": "^4.8.21",
"zendframework/zend-stdlib": "^2.7 || ^3.0"
},
"suggest": {
"doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features",
"zendframework/zend-stdlib": "Zend\\Stdlib component"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.6-dev",
"dev-develop": "2.7-dev"
}
},
"autoload": {
"psr-4": {
"Zend\\Code\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "provides facilities to generate arbitrary code using an object oriented interface",
"homepage": "https://github.com/zendframework/zend-code",
"keywords": [
"code",
"zf2"
],
"abandoned": "laminas/laminas-code",
"time": "2016-04-20T17:26:42+00:00"
},
{
"name": "zendframework/zend-eventmanager",
"version": "3.2.1",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-eventmanager.git",
"reference": "a5e2583a211f73604691586b8406ff7296a946dd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zendframework/zend-eventmanager/zipball/a5e2583a211f73604691586b8406ff7296a946dd",
"reference": "a5e2583a211f73604691586b8406ff7296a946dd",
"shasum": ""
},
"require": {
"php": "^5.6 || ^7.0"
},
"require-dev": {
"athletic/athletic": "^0.1",
"container-interop/container-interop": "^1.1.0",
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-stdlib": "^2.7.3 || ^3.0"
},
"suggest": {
"container-interop/container-interop": "^1.1.0, to use the lazy listeners feature",
"zendframework/zend-stdlib": "^2.7.3 || ^3.0, to use the FilterChain feature"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.2-dev",
"dev-develop": "3.3-dev"
}
},
"autoload": {
"psr-4": {
"Zend\\EventManager\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "Trigger and listen to events within a PHP application",
"homepage": "https://github.com/zendframework/zend-eventmanager",
"keywords": [
"event",
"eventmanager",
"events",
"zf2"
],
"abandoned": "laminas/laminas-eventmanager",
"time": "2018-04-25T15:33:34+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": true,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.1.0"
}
/**
* Modbash Clean Elgg Theme
*
* Copyright (c) 2015 ModBash
*
* @author Shane Barron <admin@modbash.com>
* @copyright 2015 SocialApparatus
* @license GNU General Public License (GPL) version 2
* @version 1
* @link http://modbash.com
*/
\ No newline at end of file
form input[type=email],form input[type=number],form input[type=password],form input[type=search],form input[type=tel],form input[type=text],form input[type=url],form textarea {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: var(--bg-input);
border: 1px solid var(--b-input);
border-radius: 3px;
color: inherit;
font-family: inherit;
padding: .56em .75em;
-webkit-transition: border-color .4s ease-out,-webkit-box-shadow .4s ease-out;
transition: border-color .4s ease-out,-webkit-box-shadow .4s ease-out;
transition: border-color .4s ease-out,box-shadow .4s ease-out;
transition: border-color .4s ease-out,box-shadow .4s ease-out,-webkit-box-shadow .4s ease-out;
width: 100%
}
form input[type=email]:hover,form input[type=number]:hover,form input[type=password]:hover,form input[type=search]:hover,form input[type=tel]:hover,form input[type=text]:hover,form input[type=url]:hover,form textarea:hover {
border-color: var(--b-input-hover);
-webkit-transition: border-color .2s ease-out;
transition: border-color .2s ease-out
}
form input[type=email]:focus,form input[type=number]:focus,form input[type=password]:focus,form input[type=search]:focus,form input[type=tel]:focus,form input[type=text]:focus,form input[type=url]:focus,form textarea:focus {
border-color: var(--b-input-focus);
-webkit-box-shadow: 0 0 0 3px var(--bg-body),0 0 0 5px var(--b-input-focus);
box-shadow: 0 0 0 3px var(--bg-body),0 0 0 5px var(--b-input-focus);
outline: none;
-webkit-transition: -webkit-box-shadow .2s ease-out;
transition: -webkit-box-shadow .2s ease-out;
transition: box-shadow .2s ease-out;
transition: box-shadow .2s ease-out,-webkit-box-shadow .2s ease-out
}
.centered {
float: none!important;
margin: 0 auto!important
}
.clear {
clear: both
}
.clear-top {
margin-top: 0!important
}
.hidden {
display: none
}
table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) {
background-color: transparent;
border-bottom: 1px solid var(--b-table);
max-width: 100%;
width: 100%
}
table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) tbody,table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) thead {
font-size: .84em
}
table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) td,table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) th {
border: 1px solid var(--b-table);
padding-left: 1em;
padding-right: 1em
}
table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) thead td,table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) thead th {
padding-bottom: .75em;
padding-top: 1.33em;
vertical-align: bottom
}
table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) tbody td,table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) tbody th {
padding-bottom: .75em;
padding-top: .75em;
vertical-align: top
}
table:not(.dcf-table):not(.ui-datepicker-calendar):not(.dcf-datepicker-dialog-calendar) tbody tr:nth-of-type(2n) {
background-color: var(--bg-table-stripe)
}
.dcf-main li>a, .dcf-main p a {
border: none;
}
.elgg-layout img {
border-radius: 3px;
}
.form-inline .form-group{
width: 80%;
float: left;
}
.form-inline .form-group input {
padding: .5em;
border-radius: 4px 0 0 4px;
}
.form-inline button {
border-radius: 0 4px 4px 0;
width: 20%;
padding: 1.069em 0.033em 1em;
}
.unl-wdn-elgg-sidebar {
margin-top: 5.8em;
}
ol.breadcrumb {
font-size: .75em;
margin-bottom: 1em;
}
ol.breadcrumb > li {
font-size: 1em;
display: inline;
margin-right: 0.5em;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
}
ol.breadcrumb > li:after {
content: ">";
display: inline;
margin-left: 0.5em;
color: #454545;
}
ol.breadcrumb > li:last-child:after {
content: "";
display: inline;
margin-left: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
color: #474746;
font-family: "Tungsten A","Tungsten B",Impact,Haettenschweiler,"Arial Narrow Bold","Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black",sans-serif;
font-weight: 600;
font-style: normal;
line-height: 1em;
margin: 1em 0 1rem 0;
-webkit-font-feature-settings: "kern";
font-feature-settings: "kern";
}
h2 {
font-size: 38px;
font-size: 2.9230769rem;
}
h3 {
font-size: 30px;
font-size: 2.3076923rem;
}
@media (min-width: 768px){
h2 {
font-size: 41px;
font-size: 2.5625rem;
}
h3 {
font-size: 38px;
font-size: 2.375rem;
}
}
.elgg-subtext {
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
}
a.elgg-button {
color: #fff;
}
.elgg-system-messages {
margin-top: 1em;
}
.elgg-menu-filter {
padding: 0;
}
.elgg-htabs > li, .elgg-htabs > li:after, .elgg-htabs > li > a, .elgg-htabs > li > span {
position: relative;
display: inline-block;
}
.elgg-htabs > li, .elgg-htabs > li:after, .elgg-htabs > li > a, .elgg-htabs > li > span {
vertical-align: middle;
}
.nav-pills.elgg-menu-hz > li, .nav-pills.elgg-htabs > li {
border: none;
background-color: #5b5b5a;
border-radius: 0;
color: #fff;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
font-size: 0.75em;
margin-right: 1em;
}
.nav-pills.elgg-menu-hz > li.active, .nav-pills.elgg-htabs > li.active {
background-color: #909090;
}
.nav-pills.elgg-menu-hz > .active > a, .nav-pills.elgg-htabs > .active > a {
background-color: #909090;
top: 0;
margin-bottom: 0;
}
.nav-pills.elgg-menu-hz > li > a:hover, .nav-pills.elgg-htabs > li > a:hover {
background: #d00000;
color: #fff;
}
.nav-pills.elgg-menu-hz > li a, .nav-pills.elgg-htabs > li a{
background-color: #5b5b5a;
color: #fff;
height: 2.2em;
margin-bottom: 0;
}
.nav-pills.elgg-menu-hz, .nav-pills.elgg-htabs {
border-bottom: 1px solid #787878;
}
.nav-pills.elgg-menu-hz > li > a, .nav-pills.elgg-htabs > li > a{
padding:4px 10px;
}
ul.nav-pills.nav-stacked, ul.elgg-menu-owner-block, ul.nav-pills.elgg-htabs {
list-style-type: none;
padding: 0;
}
ul.elgg-menu.elgg-menu-hz.nav.nav-pills {
padding: 0;
}
.elgg-menu a {
margin-bottom: 0;
}
}
ul.elgg-list.elgg-list-river {
padding: 0;
}
.elgg-list h3 {
margin: 0;
}
.elgg-list-river > li, .elgg-list > li {
border-bottom: none;
box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
margin-bottom: 1em;
list-style-type: none;
border-top: 5px solid #5b5b5a;
background-color: #eceae3;
/* padding: 1em; */
border-radius: 6px;
position: relative;
}
.elgg-list-river > li:hover {
border-top: 5px solid #d00000;
}
.elgg-image-block .elgg-image {
float: left;
padding: 1em;
}
.elgg-avatar {
position: relative;
display: inline-block;
}
.elgg-avatar img{
border-radius: 100%;
overflow: hidden;
}
ul.elgg-list {
padding: 0;
}
.elgg-list-river .elgg-body, .thewire-post .elgg-body, .elgg-list .elgg-body{
padding: 1em;
float: right;
width: calc(100% - 132px);
}
.elgg-item.elgg-item-user .elgg-body{
padding: 1em;
float: right;
width: calc(100% - 234px);
}
.elgg-river-message:before, .thewire-post .elgg-content:before, #profile-details .wire-status:before {
display: block;
content: "";
height: 14px;
width: 14px;
background-color: inherit;
position: absolute;
top: 15px;
left: -9px;
transform: rotate(45deg);
border: 1px solid #ccc;
z-index: 2;
}
.elgg-river-message:after, .thewire-post .elgg-content:after, #profile-details .wire-status:after {
display: block;
content: "";
height: 16px;
width: 16px;
background-color: inherit;
position: absolute;
top: 15px;
left: -7px;
transform: rotate(45deg);
z-index: 3;
visibility: visible;
}
.elgg-river-attachments, .elgg-river-message, .elgg-river-content, .thewire-post .elgg-content, #profile-details .wire-status {
position: relative;
margin-bottom: .75em;
}
.elgg-river-message, .thewire-post .elgg-content, #profile-details .wire-status{
border-radius: 6px;
display: inline-block;
background-color: #fefdfa;
box-shadow: 1px 1px 2px rgba(0,0,0,.25);
padding: 1em;
margin: 0 0 .5em 0;
border:1px solid #ccc;
}
.elgg-river-content{
border-left:3px solid #00BD3C;
padding: .75em 1em 0.4em 1em;
}
.elgg-river-attachments{
border-left:3px solid #1B9AE8;
padding: .75em 1em 0.4em 1em;
}
.elgg-river-summary, .thewire-post .elgg-subtext, .elgg-list .elgg-subtext {
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
font-size: .75em;
margin: .5em 0 .75em 0;
}
ul.elgg-menu-hover {
padding: 0;
}
.fa-lg{
margin: 0 0.5em;
}
.elgg-list-river .elgg-body .fa-lg.elgg-icon-arrow-right, .thewire-post .elgg-body .fa-lg.elgg-icon-arrow-right {
vertical-align: 75%;
}
.elgg-owner-block {
text-align: center;
}
.elgg-menu-extras {
padding: 0;
}
.elgg-owner-block h3 {
margin: 0;
}
.elgg-owner-block .elgg-image {
float: none;
width:100%;
}
.elgg-avatar-large > a > img {
height: auto;
}
ol.breadcrumb {
display: none;
}
ul.elgg-tags {
min-height: 16px;
padding: 0;
list-style: none;
margin-bottom: 10px;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
font-size: 1em;
}
ul.elgg-tags li{
display: inline-block;
}
li.elgg-tag {
background-color: #fff;
padding: .422em .75em;
margin: 0 .75em 0.75em 0;
text-transform: uppercase;
box-shadow: 0px 2px 4px RGBA(0,0,0,0.25);
vertical-align: top;
}
.elgg-layout .pr-profile-image {
border-radius: 100%;
}
#profile-details .PR-profile-info b, .groups-profile-fields b {
font-weight: bold;
display: inline-block;
width: 25%;
}
#profile-details .PR-profile-info span, .groups-profile-fields span {
font-size: .75em;
display: inline-block;
width: 75%;
float: right;
line-height: 2.7em;
}
.groups-profile-fields .elgg-icon-tag, #profile-details .elgg-icon-tag {
font-size: 1rem !important;
}
#profile-details .even, .groups-profile-fields .even{
background-color: rgba(236, 234, 227, 0.3);
}
#profile-details .odd, #profile-details .even, .groups-profile-fields .odd, .groups-profile-fields .even {
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
padding: 1em;
}
#profile-details .wire-status{
margin: 0 0 2em 0;
}
#profile-details .wire-status .elgg-body{
font-size: 1.25em;
font-style: italic;
}
#profile-details .wire-status .elgg-subtext{
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
font-size: .75em;
font-style: normal;
margin: 0 0 0 1em;
text-align: right;
display: inline-block;
}
.PR-profile-info, .groups-profile-fields {
border: 1px solid #ccc;
border-radius: 3px;
}
.groups-profile .elgg-body {
padding: 1em 0 1em 1em;
}
.groups-profile-fields p {
margin: 0;
}
.PR-about-me {
margin-bottom: 2em;
}
#profile-details h3, .elgg-list h3 {
font-size: 1.25em;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
}
.ellg-list .elgg-menu > li > a {
margin-bottom: 0;
}
.ellg-list .elgg-menu li .elgg-access {
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
}
.elgg-river-timestamp {
white-space: nowrap;
}
.elgg-owner-block .elgg-subtext {
font-style: italic;
font-family: "Mercury SSm A","Mercury SSm B",Georgia,Baskerville,"Baskerville Old Face","Hoefler Text",Garamond,"Times New Roman",serif;
}
#comments {
box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
border-top: 5px solid #5b5b5a;
background-color: #eceae3;
border-radius: 6px;
padding: 1em;
}
.elgg-comments .elgg-list {
margin: 0;
}
.elgg-comments .elgg-list > li {
background-color: transparent;
box-shadow: none;
border-top:none;
padding: 0;
}
ul.elgg-river-comments.elgg-list {
border-left: 3px solid #d00000;
}
ul.elgg-river-comments.elgg-list > li {
background-color: transparent;
box-shadow: none;
border: none;
margin-bottom: 0;
padding: 0 1em;
}
ul.elgg-river-comments.elgg-list li .elgg-body, .elgg-comments .elgg-list .elgg-body {
width: calc(100% - 62px);
}
.elgg-comments .elgg-list .elgg-body .elgg-output:before, ul.elgg-river-comments.elgg-list li .elgg-body .elgg-output:before {
display: block;
content: "";
height: 14px;
width: 14px;
background-color: inherit;
position: absolute;
top: 15px;
left: -9px;
transform: rotate(45deg);
border: 1px solid #ccc;
z-index: 2;
}
.elgg-comments .elgg-list .elgg-body .elgg-output:after, ul.elgg-river-comments.elgg-list li .elgg-body .elgg-output:after {
display: block;
content: "";
height: 16px;
width: 16px;
background-color: inherit;
position: absolute;
top: 15px;
left: -7px;
transform: rotate(45deg);
z-index: 3;
visibility: visible;
}
.elgg-comments .elgg-list .elgg-image, ul.elgg-river-comments.elgg-list li .elgg-image {
margin-top: 2.3em;
}
.elgg-comments .elgg-list .elgg-body .elgg-output p {
margin: 0;
}
.elgg-comments .elgg-list .elgg-body .elgg-output, ul.elgg-river-comments.elgg-list li .elgg-body .elgg-output {
position: relative;
margin-bottom: .75em;
border-radius: 6px;
display: table;
background-color: #fefdfa;
box-shadow: 1px 1px 2px rgba(0,0,0,.25);
padding: 1em;
margin: 0 0 .5em 0;
border:1px solid #ccc;
}
ul.elgg-pagination:after {
content: "";
display: table;
clear: both
}
ul.elgg-pagination li {
display: block;
float: left;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
font-weight: 400;
font-style: normal;
font-size: 12px;
font-size: .9230769rem;
margin: .254em;
vertical-align: middle
}
@media (min-width: 768px) {
ul.elgg-pagination li {
font-size:13px;
font-size: .8125rem
}
}
ul.elgg-pagination li a {
display: block;
padding: .422em .602em .317em;
border: 1px solid #d5d5d2;
transition: border ease-out .2s
}
ul.elgg-pagination li a:active,ul.elgg-pagination li a:hover {
color: #6a0000;
border: 1px solid #6a0000
}
ul.elgg-pagination li.ellipsis, ul.elgg-pagination li.elgg-state-disabled {
padding: .422em .602em .317em
}
ul.elgg-pagination li.active, ul.elgg-pagination li.elgg-state-selected {
padding: .422em .602em .317em;
color: #fff;
background-color: #5b5b5a;
border: 1px solid #5b5b5a
}
ul#groups-tools > li {
border-radius: 3px;
padding: 1em;
border:1px solid #ccc;
}
ul#groups-tools {
padding: 0;
}
#groups-tools .elgg-module {
margin-bottom: 0;
}
.elgg-gallery li h3 {
margin: 0;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
font-size: 1.25em;
}
.nav-pills.nav-stacked {
text-align: center;
}
ul.elgg-menu.elgg-menu-hover-admin {
padding: 0;
}
.elgg-menu-hover-admin .elgg-menu-hover-actions, ul.elgg-menu.elgg-menu-hover-admin, ul.elgg-menu.elgg-menu-hover-actions {
padding: 0;
}
ul.elgg-menu.elgg-menu-hover {
padding: .75em;
min-height: 4em;
box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
border-radius: 6px;
}
ul.elgg-menu.elgg-menu-hover li {
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
list-style: none;
padding: 0;
}
.file-photo {
text-align: left;
}
.elgg-message {
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
padding:1em;
list-style:none;
margin-top:3em;
color:#fff;
border-radius: 6px;
}
.elgg-message.elgg-state-success {
background-color:#008A2C;
}
.elgg-message.elgg-state-error {
background-color:#D00000;
}
.elgg-item-object-messages > .elgg-image-block > .elgg-body {
width: calc(100% - 51px);
}
.messages-owner {
font-size: 1.25em;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
}
.messages-delete {
position:absolute;
top:1.25em;
right:1em;
}
.pr-message-checkbox {
position:absolute;
top: 1.25em;
left: 1.25em;
}
.messages-timestamp {
font-size:.75em;
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
}
.elgg-item-object-messages {
padding:0;
}
.pr-wire-from form fieldset {
border: 0;
margin: 0 0 2em 0;
padding: 0;
}
.pr-wire-from {
padding: 1em;
border-bottom: none;
box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
margin-bottom: 1em;
list-style-type: none;
background-color: #eceae3;
border-radius: 6px;
}
@media (max-width: 1600px) {
.groups-profile-fields b {
display: block;
width: 100%;
float: none;
}
.groups-profile-fields span {
display: block;
width: 100%;
float: none;
}
}
@media (max-width: 900px) {
.groups-profile .elgg-image {
float: none;
width: 100%;
padding: 0;
}
.groups-profile .elgg-body {
width: 100%;
padding: 0;
}
}
@media (max-width: 756px) {
#profile-details .PR-profile-info b {
display: block;
width: 100%;
float: none;
}
#profile-details .PR-profile-info span {
display: block;
width: 100%;
float: none;
}
.elgg-item.elgg-item-user .elgg-body {
width: 100%;
}
.elgg-item.elgg-item-user .elgg-image {
float: none;
}
.elgg-item.elgg-item-user .elgg-image .elgg-avatar {
display: block;
margin: 0 auto;
width: 200px;
}
}
\ No newline at end of file
/**
* Modbash Clean Elgg Theme
*
* Copyright (c) 2015 ModBash
*
* @author Shane Barron <admin@modbash.com>
* @copyright 2015 SocialApparatus
* @license GNU General Public License (GPL) version 2
* @version 1
* @link http://modbash.com
*/
.elgg-form-login,
.elgg-form-account {
max-width:1000px;
}
.elgg-menu > li > a {
margin-bottom: 5px;
}
.fileinput {
margin-bottom:5px;
}
.profile .elgg-inner {
border:none;
}
.elgg-input-access {
margin:0px;
}
.elgg-page-body {
padding:0px;
}
.elgg-menu-extras li {
margin-right:5px;
}
.elgg-module-widget > .elgg-body,
.elgg-body,
.elgg-module {
overflow:initial;
}
.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
width:auto;
}
.profile .btn-group {
margin-top:20px;
margin-bottom:20px;
}
.profile .elgg-menu-owner-block {
margin-bottom:20px;
}
.elgg-form-avatar-upload label {
margin-bottom:10px;
}
.selectpicker {
margin-top:5px;
margin-bottom:5px;
}
.bookmark span {
margin-right:5px;
}
.groups-profile .elgg-body {
overflow:hidden;
}
.elgg-menu-footer > li::after {
display:none;
}
.elgg-menu-widget > .elgg-menu-item-settings {
right:30px;
}
.elgg-page-footer {
padding-top:20px;
}
/**
Fix message reply
**/
#messages-reply-form {
display: block !important;
}
.elgg-menu-item-reply {
display: none !important;
}
/**
Avatar generator styles
Framework sets max-width: 100%, which causes problems with the preview
**/
#user-avatar-preview img {
max-width: inherit !important;
}
plugins/unl_theme/graphics/loading.gif

23.4 KiB

This diff is collapsed.
/*
* jQuery UI Autocomplete HTML Extension
*
* Copyright 2010, Scott González (http://scottgonzalez.com)
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* http://github.com/scottgonzalez/jquery-ui-extensions
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function(jQuery) {
(function( $ ) {
var proto = $.ui.autocomplete.prototype,
initSource = proto._initSource;
function filter( array, term ) {
var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" );
return $.grep( array, function(value) {
return matcher.test( $( "<div>" ).html( value.label || value.value || value ).text() );
});
}
$.extend( proto, {
_initSource: function() {
if ( this.options.html && $.isArray(this.options.source) ) {
this.source = function( request, response ) {
response( filter( this.options.source, request.term ) );
};
} else {
initSource.call( this );
}
},
_renderItem: function( ul, item) {
return $( "<li></li>" )
.data( "item.autocomplete", item )
.append( $( "<a></a>" )[ this.options.html ? "html" : "text" ]( item.label ) )
.appendTo( ul );
}
});
})( jQuery );
}));
\ No newline at end of file
require(['idm'], function(idm) {
idm.setLogoutURL('/logout');
});
/**
* Avatar cropping
*/
elgg.provide('elgg.avatarCropper');
/**
* Register the avatar cropper.
*
* If the hidden inputs have the coordinates from a previous cropping, begin
* the selection and preview with that displayed.
*/
elgg.avatarCropper.init = function() {
//Load imgAreaSelect with requirejs (this is all that this override does)
require(['jquery', 'unl_theme/jquery.imgareaselect'], function($) {
var params = {
selectionOpacity: 0,
aspectRatio: '1:1',
onSelectEnd: elgg.avatarCropper.selectChange,
onSelectChange: elgg.avatarCropper.preview
};
if ($('input[name=x2]').val()) {
params.x1 = $('input[name=x1]').val();
params.x2 = $('input[name=x2]').val();
params.y1 = $('input[name=y1]').val();
params.y2 = $('input[name=y2]').val();
}
$('#user-avatar-cropper').imgAreaSelect(params);
if ($('input[name=x2]').val()) {
// TODO figure out why this is necessary
$(window).on('load', function () {
var ias = $('#user-avatar-cropper').imgAreaSelect({instance: true});
var selection = ias.getSelection();
elgg.avatarCropper.preview($('#user-avatar-cropper'), selection);
});
}
});
};
/**
* Handler for changing select area.
*
* @param {Object} img reference to the image
* @param {Object} selection imgareaselect selection object
* @return void
*/
elgg.avatarCropper.preview = function(img, selection) {
// catch for the first click on the image
if (selection.width === 0 || selection.height === 0) {
return;
}
var origWidth = $("#user-avatar-cropper").width();
var origHeight = $("#user-avatar-cropper").height();
var scaleX = 100 / selection.width;
var scaleY = 100 / selection.height;
$('#user-avatar-preview > img').css({
width: Math.round(scaleX * origWidth) + 'px',
height: Math.round(scaleY * origHeight) + 'px',
marginLeft: '-' + Math.round(scaleX * selection.x1) + 'px',
marginTop: '-' + Math.round(scaleY * selection.y1) + 'px'
});
};
/**
* Handler for updating the form inputs after select ends
*
* @param {Object} img reference to the image
* @param {Object} selection imgareaselect selection object
* @return void
*/
elgg.avatarCropper.selectChange = function(img, selection) {
$('input[name=x1]').val(selection.x1);
$('input[name=x2]').val(selection.x2);
$('input[name=y1]').val(selection.y1);
$('input[name=y2]').val(selection.y2);
};
elgg.register_hook_handler('init', 'system', elgg.avatarCropper.init);
\ No newline at end of file
<?php
/**
* Modbash Clean Elgg Theme
*
* Copyright (c) 2015 ModBash
*
* @author Shane Barron <admin@modbash.com>
* @copyright 2015 SocialApparatus
* @license GNU General Public License (GPL) version 2
* @version 1
* @link http://modbash.com
*/
$english = array(
"your-account" => "Your Account",
"view-your-profile" => "Your Profile",
"edit-your-profile" => "Edit Profile",
"edit-your-avatar" => "Edit Avatar",
"view-your-inbox" => "Your Inbox",
"view-your-friends" => "Your Friends",
"view-your-settings" => "Your Settings",
"signin" => "Sign In",
);
add_translation("en", $english);
<?xml version="1.0" encoding="UTF-8"?>
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
<name>UNL Theme</name>
<id>unl_theme</id>
<author>UNL</author>
<version>4.1</version>
<category>theme</category>
<description>UNL Theme based on the elgg_clean theme</description>
<website>http://modbash.com</website>
<license>GNU Public License V2</license>
<requires>
<type>elgg_release</type>
<version>1.8</version>
</requires>
</plugin_manifest>
<?php
/**
* Modbash Clean Elgg Theme
*
* Copyright (c) 2015 ModBash
*
* @author Shane Barron <admin@modbash.com>
* @copyright 2015 SocialApparatus
* @license GNU General Public License (GPL) version 2
* @version 1
* @link http://modbash.com
*/
require_once __DIR__ . '/vendor/autoload.php';
elgg_register_event_handler('init', 'system', 'unl_theme_init');
function unl_theme_init() {
elgg_unextend_view('page/elements/header', 'search/header');
elgg_extend_view('page/elements/sidebar', 'search/header', 0);
elgg_require_js("elgg/Plugin");
elgg_require_js("elgg/spinner");
if (elgg_get_context() != "admin") {
elgg_require_js("unl_theme/js");
}
elgg_register_event_handler('pagesetup', 'system', 'unl_theme_pagesetup', 1000);
elgg_register_plugin_hook_handler('head', 'page', 'unl_theme_setup_head');
$bower = elgg_get_site_url() . "mod/unl_theme/vendors/bower_components/";
elgg_register_css("open", "https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic");
elgg_register_css("passion", "https://fonts.googleapis.com/css?family=Passion+One");
elgg_register_css("unl_theme", elgg_get_site_url() . "mod/unl_theme/css/unl_theme.css", 10000);
elgg_register_css("font-awesome", "{$bower}fontawesome/css/font-awesome.min.css");
// elgg_register_css("fuelux", "{$bower}fuelux/dist/css/fuelux.min.css");
elgg_register_css("agency", elgg_get_site_url() . "mod/unl_theme/css/planetred.css", 20000);
elgg_register_css("home", elgg_get_site_url() . "mod/unl_theme/css/home.css", 30000);
elgg_register_js('respond', 'mod/unl_theme/vendors/bower_components/respond/src/respond.js');
elgg_define_js("bootstrap", array("src" => "{$bower}bootstrap/dist/js/bootstrap.min.js"));
elgg_register_js("bootstrap-select", "{$bower}bootstrap-select/dist/js/bootstrap-select.min.js");
elgg_register_js("jasny", "{$bower}jasny-bootstrap/dist/js/jasny-bootstrap.min.js");
elgg_register_js("cbpAnimatedHeader", elgg_get_site_url() . "mod/unl_theme/js/cbpAnimatedHeader.js");
elgg_register_js("classie", elgg_get_site_url() . "mod/unl_theme/js/classie.js");
elgg_register_js("scrollspy", "{$bower}scrollspy/jquery.scrollspy.js");
// elgg_register_js("parallax", "{$boder}jquery-parallax/scripts/jquery.parallax-1.13.js");
// elgg_register_js("scrollto", "{$bower}jquery-parallax/scripts/jquery.scrollTo-1.4.2-min.js");
// elgg_define_js('fuelux', array(
// 'src' => "{$bower}fuelux/dist/js/fuelux.js",
// ));
if (elgg_get_context() != "admin") {
/**
* Elgg has its own requireJS, and expects a different baseURL than the UNL framework. Reset back to the framework.
* Only do this for the main interface, the admin interface requires requirejs.
*/
$base_url = elgg_get_site_url();
//Add paths stuff to the requirejs config
_elgg_services()->amdConfig->removePath('languages/en');
_elgg_services()->amdConfig->addPath('languages/en', $base_url.'js/languages');
_elgg_services()->amdConfig->addPath('elgg/reportedcontent', $base_url.'mod/reportedcontent/views/default/elgg/reportedcontent');
_elgg_services()->amdConfig->addPath('elgg/UserPicker', $base_url.'views/default/elgg/UserPicker');
_elgg_services()->amdConfig->addPath('unl_theme/js', $base_url.'mod/unl_theme/views/default/js/unl_theme/js');
_elgg_services()->amdConfig->addPath('unl_theme/jquery.imgareaselect', $base_url.'mod/unl_theme/js/jquery.imgareaselect');
_elgg_services()->amdConfig->addPath('bootstrap', $base_url.'mod/unl_theme/vendors/bower_components/bootstrap/dist/js/bootstrap');
_elgg_services()->amdConfig->addPath('moment', $base_url.'mod/unl_theme/vendors/bower_components/moment/moment');
_elgg_services()->amdConfig->addPath('jquery.ui.autocomplete.html', $base_url.'mod/unl_theme/js/jquery.ui.autocomplete.html');
//Tell elgg not to load its own version of require
// WDN Template version 5.0 hack, use elgg version of require, jquery-ui, and jquery.imgareaselect
//elgg_unregister_js('require'); // !!! Leave commented out ^
//elgg_unregister_js('jquery-ui'); // !!! Leave commented out ^
//elgg_unregister_js('jquery.imgareaselect'); // !!! Leave commented out ^
//Load our own cropper that uses requirejs (make sure it loads last)
elgg_register_js('elgg.avatar_cropper', $base_url.'mod/unl_theme/js/ui.avatar_cropper.js', 'head', 9000);
//elgg_load_js("agency");
elgg_load_js('respond');
elgg_load_js("bootstrap");
elgg_load_js("jscolor");
elgg_load_js("unl_theme");
elgg_load_js("bootstrap-select");
elgg_load_js("jasny");
elgg_load_js("parallax");
elgg_load_js("scrollto");
// elgg_require_js("fuelux");
elgg_load_css("bootstrap");
elgg_load_css("open");
elgg_load_css("passion");
elgg_load_css("font-awesome");
elgg_load_css("bootstrap-select");
elgg_load_css("unl_theme");
elgg_load_css("jasny");
// elgg_load_css("fuelux");
elgg_load_css("agency");
// Disable and Hide activity page
elgg_unregister_page_handler('activity');
elgg_unregister_menu_item('site', 'activity');
}
// non-members do not get visible links to RSS feeds
if (!elgg_is_logged_in()) {
elgg_unregister_plugin_hook_handler('output:before', 'layout', 'elgg_views_add_rss_link');
}
elgg_register_action("unl_theme/contact", elgg_get_plugins_path() . "unl_theme/actions/contact.php", "public");
}
/**
* Rearrange menu items
*/
function unl_theme_pagesetup() {
elgg_unextend_view('page/elements/header', 'search/header');
}
/**
* Register items for the html head
*
* @param string $hook Hook name ('head')
* @param string $type Hook type ('page')
* @param array $data Array of items for head
* @return array
*/
function unl_theme_setup_head($hook, $type, $data) {
$data['metas'][] = array(
'name' => 'viewport',
'content' => 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0',
);
$data['links'][] = array(
'id' => 'favicon',
'rel' => 'shortcut icon',
'href' => 'https://unlcms.unl.edu/wdn/templates_4.1/includes/icons/favicon.ico',
);
$data['links'][] = array(
'rel' => 'apple-touch-icon',
'href' => elgg_normalize_url('mod/unl_theme/graphics/homescreen.png'),
);
return $data;
}