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 2864 additions and 0 deletions
<?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
$value = 'mod/profile/icondirect.php?guid='.$params['entity']->guid.'&size='.$params['size'];
return $value;
}
vendor
\ No newline at end of file
{
"require": {
"unl/php-wdn-templates": "^4.1"
},
"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#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "2ea726d49c33021a9efe5b440b6e4cde",
"content-hash": "d2dfb082fa12d1c68dd11fb4ed169866",
"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/"
}
},
"autoload-dev": {
"psr-4": {
"UNLTest\\DWT\\": "tests/"
}
},
"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/",
"support": {
"source": "https://github.com/unl/phpdwtparser/tree/v1.0.1",
"issues": "https://github.com/unl/phpdwtparser/issues"
},
"time": "2016-01-05 21:35:46"
},
{
"name": "unl/php-wdn-templates",
"version": "v4.1.0",
"source": {
"type": "git",
"url": "https://github.com/unl/phpunltemplates.git",
"reference": "ddece80fce8611c22fa674a0f36eac3ddf4ca423"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/ddece80fce8611c22fa674a0f36eac3ddf4ca423",
"reference": "ddece80fce8611c22fa674a0f36eac3ddf4ca423",
"shasum": ""
},
"require": {
"php": ">=5.5",
"unl/php-dwt-parser": "1.0.*"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"satooshi/php-coveralls": "^0.7.0"
},
"type": "library",
"autoload": {
"psr-4": {
"UNL\\Templates\\": "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"
},
{
"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/",
"time": "2015-12-15 00:14:04"
},
{
"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-18 14:10:55"
},
{
"name": "zendframework/zend-code",
"version": "2.6.2",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-code.git",
"reference": "c4e8f976a772cfb14b47dabd69b5245a423082b4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zendframework/zend-code/zipball/c4e8f976a772cfb14b47dabd69b5245a423082b4",
"reference": "c4e8f976a772cfb14b47dabd69b5245a423082b4",
"shasum": ""
},
"require": {
"php": ">=5.5",
"zendframework/zend-eventmanager": "^2.6|^3.0"
},
"require-dev": {
"doctrine/annotations": "~1.0",
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/phpunit": "~4.0",
"zendframework/zend-stdlib": "~2.7"
},
"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"
],
"time": "2016-01-05 05:58:37"
},
{
"name": "zendframework/zend-eventmanager",
"version": "3.0.0",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-eventmanager.git",
"reference": "8c9917f1595ff260f289439bdeb1f46500c65d62"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zendframework/zend-eventmanager/zipball/8c9917f1595ff260f289439bdeb1f46500c65d62",
"reference": "8c9917f1595ff260f289439bdeb1f46500c65d62",
"shasum": ""
},
"require": {
"php": "^5.5 || ^7.0"
},
"require-dev": {
"athletic/athletic": "^0.1",
"container-interop/container-interop": "^1.1.0",
"phpunit/phpunit": "~4.0",
"squizlabs/php_codesniffer": "^2.0",
"zendframework/zend-stdlib": "^2.7.3"
},
"suggest": {
"container-interop/container-interop": "^1.1.0, to use the lazy listeners feature",
"zendframework/zend-stdlib": "^2.7.3, to use the FilterChain feature"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.0-dev",
"dev-develop": "3.1-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"
],
"time": "2016-01-12 23:27:48"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": true,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
/**
* 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
.wdn-main li>a, .wdn-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;
}
.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;
}
.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:2.75em;
right:1em;
}
.pr-message-checkbox {
position:absolute;
top:2.75em;
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;
}
}
.hello {
}
\ 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

/*
* imgAreaSelect jQuery plugin
* version 0.9.10
*
* Copyright (c) 2008-2013 Michal Wojciechowski (odyniec.net)
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://odyniec.net/projects/imgareaselect/
*
*/
/*
* UNL - Added an AMD loader so that this works with requirejs
*/
(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($) {
/*
* Math functions will be used extensively, so it's convenient to make a few
* shortcuts
*/
var abs = Math.abs,
max = Math.max,
min = Math.min,
round = Math.round;
/**
* Create a new HTML div element
*
* @return A jQuery object representing the new element
*/
function div() {
return $('<div/>');
}
/**
* imgAreaSelect initialization
*
* @param img
* A HTML image element to attach the plugin to
* @param options
* An options object
*/
$.imgAreaSelect = function (img, options) {
var
/* jQuery object representing the image */
$img = $(img),
/* Has the image finished loading? */
imgLoaded,
/* Plugin elements */
/* Container box */
$box = div(),
/* Selection area */
$area = div(),
/* Border (four divs) */
$border = div().add(div()).add(div()).add(div()),
/* Outer area (four divs) */
$outer = div().add(div()).add(div()).add(div()),
/* Handles (empty by default, initialized in setOptions()) */
$handles = $([]),
/*
* Additional element to work around a cursor problem in Opera
* (explained later)
*/
$areaOpera,
/* Image position (relative to viewport) */
left, top,
/* Image offset (as returned by .offset()) */
imgOfs = { left: 0, top: 0 },
/* Image dimensions (as returned by .width() and .height()) */
imgWidth, imgHeight,
/*
* jQuery object representing the parent element that the plugin
* elements are appended to
*/
$parent,
/* Parent element offset (as returned by .offset()) */
parOfs = { left: 0, top: 0 },
/* Base z-index for plugin elements */
zIndex = 0,
/* Plugin elements position */
position = 'absolute',
/* X/Y coordinates of the starting point for move/resize operations */
startX, startY,
/* Horizontal and vertical scaling factors */
scaleX, scaleY,
/* Current resize mode ("nw", "se", etc.) */
resize,
/* Selection area constraints */
minWidth, minHeight, maxWidth, maxHeight,
/* Aspect ratio to maintain (floating point number) */
aspectRatio,
/* Are the plugin elements currently displayed? */
shown,
/* Current selection (relative to parent element) */
x1, y1, x2, y2,
/* Current selection (relative to scaled image) */
selection = { x1: 0, y1: 0, x2: 0, y2: 0, width: 0, height: 0 },
/* Document element */
docElem = document.documentElement,
/* User agent */
ua = navigator.userAgent,
/* Various helper variables used throughout the code */
$p, d, i, o, w, h, adjusted;
/*
* Translate selection coordinates (relative to scaled image) to viewport
* coordinates (relative to parent element)
*/
/**
* Translate selection X to viewport X
*
* @param x
* Selection X
* @return Viewport X
*/
function viewX(x) {
return x + imgOfs.left - parOfs.left;
}
/**
* Translate selection Y to viewport Y
*
* @param y
* Selection Y
* @return Viewport Y
*/
function viewY(y) {
return y + imgOfs.top - parOfs.top;
}
/*
* Translate viewport coordinates to selection coordinates
*/
/**
* Translate viewport X to selection X
*
* @param x
* Viewport X
* @return Selection X
*/
function selX(x) {
return x - imgOfs.left + parOfs.left;
}
/**
* Translate viewport Y to selection Y
*
* @param y
* Viewport Y
* @return Selection Y
*/
function selY(y) {
return y - imgOfs.top + parOfs.top;
}
/*
* Translate event coordinates (relative to document) to viewport
* coordinates
*/
/**
* Get event X and translate it to viewport X
*
* @param event
* The event object
* @return Viewport X
*/
function evX(event) {
return event.pageX - parOfs.left;
}
/**
* Get event Y and translate it to viewport Y
*
* @param event
* The event object
* @return Viewport Y
*/
function evY(event) {
return event.pageY - parOfs.top;
}
/**
* Get the current selection
*
* @param noScale
* If set to <code>true</code>, scaling is not applied to the
* returned selection
* @return Selection object
*/
function getSelection(noScale) {
var sx = noScale || scaleX, sy = noScale || scaleY;
return { x1: round(selection.x1 * sx),
y1: round(selection.y1 * sy),
x2: round(selection.x2 * sx),
y2: round(selection.y2 * sy),
width: round(selection.x2 * sx) - round(selection.x1 * sx),
height: round(selection.y2 * sy) - round(selection.y1 * sy) };
}
/**
* Set the current selection
*
* @param x1
* X coordinate of the upper left corner of the selection area
* @param y1
* Y coordinate of the upper left corner of the selection area
* @param x2
* X coordinate of the lower right corner of the selection area
* @param y2
* Y coordinate of the lower right corner of the selection area
* @param noScale
* If set to <code>true</code>, scaling is not applied to the
* new selection
*/
function setSelection(x1, y1, x2, y2, noScale) {
var sx = noScale || scaleX, sy = noScale || scaleY;
selection = {
x1: round(x1 / sx || 0),
y1: round(y1 / sy || 0),
x2: round(x2 / sx || 0),
y2: round(y2 / sy || 0)
};
selection.width = selection.x2 - selection.x1;
selection.height = selection.y2 - selection.y1;
}
/**
* Recalculate image and parent offsets
*/
function adjust() {
/*
* Do not adjust if image has not yet loaded or if width is not a
* positive number. The latter might happen when imgAreaSelect is put
* on a parent element which is then hidden.
*/
if (!imgLoaded || !$img.width())
return;
/*
* Get image offset. The .offset() method returns float values, so they
* need to be rounded.
*/
imgOfs = { left: round($img.offset().left), top: round($img.offset().top) };
/* Get image dimensions */
imgWidth = $img.innerWidth();
imgHeight = $img.innerHeight();
imgOfs.top += ($img.outerHeight() - imgHeight) >> 1;
imgOfs.left += ($img.outerWidth() - imgWidth) >> 1;
/* Set minimum and maximum selection area dimensions */
minWidth = round(options.minWidth / scaleX) || 0;
minHeight = round(options.minHeight / scaleY) || 0;
maxWidth = round(min(options.maxWidth / scaleX || 1<<24, imgWidth));
maxHeight = round(min(options.maxHeight / scaleY || 1<<24, imgHeight));
/*
* Workaround for jQuery 1.3.2 incorrect offset calculation, originally
* observed in Safari 3. Firefox 2 is also affected.
*/
if ($().jquery == '1.3.2' && position == 'fixed' &&
!docElem['getBoundingClientRect'])
{
imgOfs.top += max(document.body.scrollTop, docElem.scrollTop);
imgOfs.left += max(document.body.scrollLeft, docElem.scrollLeft);
}
/* Determine parent element offset */
parOfs = /absolute|relative/.test($parent.css('position')) ?
{ left: round($parent.offset().left) - $parent.scrollLeft(),
top: round($parent.offset().top) - $parent.scrollTop() } :
position == 'fixed' ?
{ left: $(document).scrollLeft(), top: $(document).scrollTop() } :
{ left: 0, top: 0 };
left = viewX(0);
top = viewY(0);
/*
* Check if selection area is within image boundaries, adjust if
* necessary
*/
if (selection.x2 > imgWidth || selection.y2 > imgHeight)
doResize();
}
/**
* Update plugin elements
*
* @param resetKeyPress
* If set to <code>false</code>, this instance's keypress
* event handler is not activated
*/
function update(resetKeyPress) {
/* If plugin elements are hidden, do nothing */
if (!shown) return;
/*
* Set the position and size of the container box and the selection area
* inside it
*/
$box.css({ left: viewX(selection.x1), top: viewY(selection.y1) })
.add($area).width(w = selection.width).height(h = selection.height);
/*
* Reset the position of selection area, borders, and handles (IE6/IE7
* position them incorrectly if we don't do this)
*/
$area.add($border).add($handles).css({ left: 0, top: 0 });
/* Set border dimensions */
$border
.width(max(w - $border.outerWidth() + $border.innerWidth(), 0))
.height(max(h - $border.outerHeight() + $border.innerHeight(), 0));
/* Arrange the outer area elements */
$($outer[0]).css({ left: left, top: top,
width: selection.x1, height: imgHeight });
$($outer[1]).css({ left: left + selection.x1, top: top,
width: w, height: selection.y1 });
$($outer[2]).css({ left: left + selection.x2, top: top,
width: imgWidth - selection.x2, height: imgHeight });
$($outer[3]).css({ left: left + selection.x1, top: top + selection.y2,
width: w, height: imgHeight - selection.y2 });
w -= $handles.outerWidth();
h -= $handles.outerHeight();
/* Arrange handles */
switch ($handles.length) {
case 8:
$($handles[4]).css({ left: w >> 1 });
$($handles[5]).css({ left: w, top: h >> 1 });
$($handles[6]).css({ left: w >> 1, top: h });
$($handles[7]).css({ top: h >> 1 });
case 4:
$handles.slice(1,3).css({ left: w });
$handles.slice(2,4).css({ top: h });
}
if (resetKeyPress !== false) {
/*
* Need to reset the document keypress event handler -- unbind the
* current handler
*/
if ($.imgAreaSelect.onKeyPress != docKeyPress)
$(document).unbind($.imgAreaSelect.keyPress,
$.imgAreaSelect.onKeyPress);
if (options.keys)
/*
* Set the document keypress event handler to this instance's
* docKeyPress() function
*/
$(document)[$.imgAreaSelect.keyPress](
$.imgAreaSelect.onKeyPress = docKeyPress);
}
/*
* Internet Explorer displays 1px-wide dashed borders incorrectly by
* filling the spaces between dashes with white. Toggling the margin
* property between 0 and "auto" fixes this in IE6 and IE7 (IE8 is still
* broken). This workaround is not perfect, as it requires setTimeout()
* and thus causes the border to flicker a bit, but I haven't found a
* better solution.
*
* Note: This only happens with CSS borders, set with the borderWidth,
* borderOpacity, borderColor1, and borderColor2 options (which are now
* deprecated). Borders created with GIF background images are fine.
*/
if (msie && $border.outerWidth() - $border.innerWidth() == 2) {
$border.css('margin', 0);
setTimeout(function () { $border.css('margin', 'auto'); }, 0);
}
}
/**
* Do the complete update sequence: recalculate offsets, update the
* elements, and set the correct values of x1, y1, x2, and y2.
*
* @param resetKeyPress
* If set to <code>false</code>, this instance's keypress
* event handler is not activated
*/
function doUpdate(resetKeyPress) {
adjust();
update(resetKeyPress);
x1 = viewX(selection.x1); y1 = viewY(selection.y1);
x2 = viewX(selection.x2); y2 = viewY(selection.y2);
}
/**
* Hide or fade out an element (or multiple elements)
*
* @param $elem
* A jQuery object containing the element(s) to hide/fade out
* @param fn
* Callback function to be called when fadeOut() completes
*/
function hide($elem, fn) {
options.fadeSpeed ? $elem.fadeOut(options.fadeSpeed, fn) : $elem.hide();
}
/**
* Selection area mousemove event handler
*
* @param event
* The event object
*/
function areaMouseMove(event) {
var x = selX(evX(event)) - selection.x1,
y = selY(evY(event)) - selection.y1;
if (!adjusted) {
adjust();
adjusted = true;
$box.one('mouseout', function () { adjusted = false; });
}
/* Clear the resize mode */
resize = '';
if (options.resizable) {
/*
* Check if the mouse pointer is over the resize margin area and set
* the resize mode accordingly
*/
if (y <= options.resizeMargin)
resize = 'n';
else if (y >= selection.height - options.resizeMargin)
resize = 's';
if (x <= options.resizeMargin)
resize += 'w';
else if (x >= selection.width - options.resizeMargin)
resize += 'e';
}
$box.css('cursor', resize ? resize + '-resize' :
options.movable ? 'move' : '');
if ($areaOpera)
$areaOpera.toggle();
}
/**
* Document mouseup event handler
*
* @param event
* The event object
*/
function docMouseUp(event) {
/* Set back the default cursor */
$('body').css('cursor', '');
/*
* If autoHide is enabled, or if the selection has zero width/height,
* hide the selection and the outer area
*/
if (options.autoHide || selection.width * selection.height == 0)
hide($box.add($outer), function () { $(this).hide(); });
$(document).unbind('mousemove', selectingMouseMove);
$box.mousemove(areaMouseMove);
options.onSelectEnd(img, getSelection());
}
/**
* Selection area mousedown event handler
*
* @param event
* The event object
* @return false
*/
function areaMouseDown(event) {
if (event.which != 1) return false;
adjust();
if (resize) {
/* Resize mode is in effect */
$('body').css('cursor', resize + '-resize');
x1 = viewX(selection[/w/.test(resize) ? 'x2' : 'x1']);
y1 = viewY(selection[/n/.test(resize) ? 'y2' : 'y1']);
$(document).mousemove(selectingMouseMove)
.one('mouseup', docMouseUp);
$box.unbind('mousemove', areaMouseMove);
}
else if (options.movable) {
startX = left + selection.x1 - evX(event);
startY = top + selection.y1 - evY(event);
$box.unbind('mousemove', areaMouseMove);
$(document).mousemove(movingMouseMove)
.one('mouseup', function () {
options.onSelectEnd(img, getSelection());
$(document).unbind('mousemove', movingMouseMove);
$box.mousemove(areaMouseMove);
});
}
else
$img.mousedown(event);
return false;
}
/**
* Adjust the x2/y2 coordinates to maintain aspect ratio (if defined)
*
* @param xFirst
* If set to <code>true</code>, calculate x2 first. Otherwise,
* calculate y2 first.
*/
function fixAspectRatio(xFirst) {
if (aspectRatio)
if (xFirst) {
x2 = max(left, min(left + imgWidth,
x1 + abs(y2 - y1) * aspectRatio * (x2 > x1 || -1)));
y2 = round(max(top, min(top + imgHeight,
y1 + abs(x2 - x1) / aspectRatio * (y2 > y1 || -1))));
x2 = round(x2);
}
else {
y2 = max(top, min(top + imgHeight,
y1 + abs(x2 - x1) / aspectRatio * (y2 > y1 || -1)));
x2 = round(max(left, min(left + imgWidth,
x1 + abs(y2 - y1) * aspectRatio * (x2 > x1 || -1))));
y2 = round(y2);
}
}
/**
* Resize the selection area respecting the minimum/maximum dimensions and
* aspect ratio
*/
function doResize() {
/*
* Make sure the top left corner of the selection area stays within
* image boundaries (it might not if the image source was dynamically
* changed).
*/
x1 = min(x1, left + imgWidth);
y1 = min(y1, top + imgHeight);
if (abs(x2 - x1) < minWidth) {
/* Selection width is smaller than minWidth */
x2 = x1 - minWidth * (x2 < x1 || -1);
if (x2 < left)
x1 = left + minWidth;
else if (x2 > left + imgWidth)
x1 = left + imgWidth - minWidth;
}
if (abs(y2 - y1) < minHeight) {
/* Selection height is smaller than minHeight */
y2 = y1 - minHeight * (y2 < y1 || -1);
if (y2 < top)
y1 = top + minHeight;
else if (y2 > top + imgHeight)
y1 = top + imgHeight - minHeight;
}
x2 = max(left, min(x2, left + imgWidth));
y2 = max(top, min(y2, top + imgHeight));
fixAspectRatio(abs(x2 - x1) < abs(y2 - y1) * aspectRatio);
if (abs(x2 - x1) > maxWidth) {
/* Selection width is greater than maxWidth */
x2 = x1 - maxWidth * (x2 < x1 || -1);
fixAspectRatio();
}
if (abs(y2 - y1) > maxHeight) {
/* Selection height is greater than maxHeight */
y2 = y1 - maxHeight * (y2 < y1 || -1);
fixAspectRatio(true);
}
selection = { x1: selX(min(x1, x2)), x2: selX(max(x1, x2)),
y1: selY(min(y1, y2)), y2: selY(max(y1, y2)),
width: abs(x2 - x1), height: abs(y2 - y1) };
update();
options.onSelectChange(img, getSelection());
}
/**
* Mousemove event handler triggered when the user is selecting an area
*
* @param event
* The event object
* @return false
*/
function selectingMouseMove(event) {
x2 = /w|e|^$/.test(resize) || aspectRatio ? evX(event) : viewX(selection.x2);
y2 = /n|s|^$/.test(resize) || aspectRatio ? evY(event) : viewY(selection.y2);
doResize();
return false;
}
/**
* Move the selection area
*
* @param newX1
* New viewport X1
* @param newY1
* New viewport Y1
*/
function doMove(newX1, newY1) {
x2 = (x1 = newX1) + selection.width;
y2 = (y1 = newY1) + selection.height;
$.extend(selection, { x1: selX(x1), y1: selY(y1), x2: selX(x2),
y2: selY(y2) });
update();
options.onSelectChange(img, getSelection());
}
/**
* Mousemove event handler triggered when the selection area is being moved
*
* @param event
* The event object
* @return false
*/
function movingMouseMove(event) {
x1 = max(left, min(startX + evX(event), left + imgWidth - selection.width));
y1 = max(top, min(startY + evY(event), top + imgHeight - selection.height));
doMove(x1, y1);
event.preventDefault();
return false;
}
/**
* Start selection
*/
function startSelection() {
$(document).unbind('mousemove', startSelection);
adjust();
x2 = x1;
y2 = y1;
doResize();
resize = '';
if (!$outer.is(':visible'))
/* Show the plugin elements */
$box.add($outer).hide().fadeIn(options.fadeSpeed||0);
shown = true;
$(document).unbind('mouseup', cancelSelection)
.mousemove(selectingMouseMove).one('mouseup', docMouseUp);
$box.unbind('mousemove', areaMouseMove);
options.onSelectStart(img, getSelection());
}
/**
* Cancel selection
*/
function cancelSelection() {
$(document).unbind('mousemove', startSelection)
.unbind('mouseup', cancelSelection);
hide($box.add($outer));
setSelection(selX(x1), selY(y1), selX(x1), selY(y1));
/* If this is an API call, callback functions should not be triggered */
if (!(this instanceof $.imgAreaSelect)) {
options.onSelectChange(img, getSelection());
options.onSelectEnd(img, getSelection());
}
}
/**
* Image mousedown event handler
*
* @param event
* The event object
* @return false
*/
function imgMouseDown(event) {
/* Ignore the event if animation is in progress */
if (event.which != 1 || $outer.is(':animated')) return false;
adjust();
startX = x1 = evX(event);
startY = y1 = evY(event);
/* Selection will start when the mouse is moved */
$(document).mousemove(startSelection).mouseup(cancelSelection);
return false;
}
/**
* Window resize event handler
*/
function windowResize() {
doUpdate(false);
}
/**
* Image load event handler. This is the final part of the initialization
* process.
*/
function imgLoad() {
imgLoaded = true;
/* Set options */
setOptions(options = $.extend({
classPrefix: 'imgareaselect',
movable: true,
parent: 'body',
resizable: true,
resizeMargin: 10,
onInit: function () {},
onSelectStart: function () {},
onSelectChange: function () {},
onSelectEnd: function () {}
}, options));
$box.add($outer).css({ visibility: '' });
if (options.show) {
shown = true;
adjust();
update();
$box.add($outer).hide().fadeIn(options.fadeSpeed||0);
}
/*
* Call the onInit callback. The setTimeout() call is used to ensure
* that the plugin has been fully initialized and the object instance is
* available (so that it can be obtained in the callback).
*/
setTimeout(function () { options.onInit(img, getSelection()); }, 0);
}
/**
* Document keypress event handler
*
* @param event
* The event object
* @return false
*/
var docKeyPress = function(event) {
var k = options.keys, d, t, key = event.keyCode;
d = !isNaN(k.alt) && (event.altKey || event.originalEvent.altKey) ? k.alt :
!isNaN(k.ctrl) && event.ctrlKey ? k.ctrl :
!isNaN(k.shift) && event.shiftKey ? k.shift :
!isNaN(k.arrows) ? k.arrows : 10;
if (k.arrows == 'resize' || (k.shift == 'resize' && event.shiftKey) ||
(k.ctrl == 'resize' && event.ctrlKey) ||
(k.alt == 'resize' && (event.altKey || event.originalEvent.altKey)))
{
/* Resize selection */
switch (key) {
case 37:
/* Left */
d = -d;
case 39:
/* Right */
t = max(x1, x2);
x1 = min(x1, x2);
x2 = max(t + d, x1);
fixAspectRatio();
break;
case 38:
/* Up */
d = -d;
case 40:
/* Down */
t = max(y1, y2);
y1 = min(y1, y2);
y2 = max(t + d, y1);
fixAspectRatio(true);
break;
default:
return;
}
doResize();
}
else {
/* Move selection */
x1 = min(x1, x2);
y1 = min(y1, y2);
switch (key) {
case 37:
/* Left */
doMove(max(x1 - d, left), y1);
break;
case 38:
/* Up */
doMove(x1, max(y1 - d, top));
break;
case 39:
/* Right */
doMove(x1 + min(d, imgWidth - selX(x2)), y1);
break;
case 40:
/* Down */
doMove(x1, y1 + min(d, imgHeight - selY(y2)));
break;
default:
return;
}
}
return false;
};
/**
* Apply style options to plugin element (or multiple elements)
*
* @param $elem
* A jQuery object representing the element(s) to style
* @param props
* An object that maps option names to corresponding CSS
* properties
*/
function styleOptions($elem, props) {
for (var option in props)
if (options[option] !== undefined)
$elem.css(props[option], options[option]);
}
/**
* Set plugin options
*
* @param newOptions
* The new options object
*/
function setOptions(newOptions) {
if (newOptions.parent)
($parent = $(newOptions.parent)).append($box.add($outer));
/* Merge the new options with the existing ones */
$.extend(options, newOptions);
adjust();
if (newOptions.handles != null) {
/* Recreate selection area handles */
$handles.remove();
$handles = $([]);
i = newOptions.handles ? newOptions.handles == 'corners' ? 4 : 8 : 0;
while (i--)
$handles = $handles.add(div());
/* Add a class to handles and set the CSS properties */
$handles.addClass(options.classPrefix + '-handle').css({
position: 'absolute',
/*
* The font-size property needs to be set to zero, otherwise
* Internet Explorer makes the handles too large
*/
fontSize: 0,
zIndex: zIndex + 1 || 1
});
/*
* If handle width/height has not been set with CSS rules, set the
* default 5px
*/
if (!parseInt($handles.css('width')) >= 0)
$handles.width(5).height(5);
/*
* If the borderWidth option is in use, add a solid border to
* handles
*/
if (o = options.borderWidth)
$handles.css({ borderWidth: o, borderStyle: 'solid' });
/* Apply other style options */
styleOptions($handles, { borderColor1: 'border-color',
borderColor2: 'background-color',
borderOpacity: 'opacity' });
}
/* Calculate scale factors */
scaleX = options.imageWidth / imgWidth || 1;
scaleY = options.imageHeight / imgHeight || 1;
/* Set selection */
if (newOptions.x1 != null) {
setSelection(newOptions.x1, newOptions.y1, newOptions.x2,
newOptions.y2);
newOptions.show = !newOptions.hide;
}
if (newOptions.keys)
/* Enable keyboard support */
options.keys = $.extend({ shift: 1, ctrl: 'resize' },
newOptions.keys);
/* Add classes to plugin elements */
$outer.addClass(options.classPrefix + '-outer');
$area.addClass(options.classPrefix + '-selection');
for (i = 0; i++ < 4;)
$($border[i-1]).addClass(options.classPrefix + '-border' + i);
/* Apply style options */
styleOptions($area, { selectionColor: 'background-color',
selectionOpacity: 'opacity' });
styleOptions($border, { borderOpacity: 'opacity',
borderWidth: 'border-width' });
styleOptions($outer, { outerColor: 'background-color',
outerOpacity: 'opacity' });
if (o = options.borderColor1)
$($border[0]).css({ borderStyle: 'solid', borderColor: o });
if (o = options.borderColor2)
$($border[1]).css({ borderStyle: 'dashed', borderColor: o });
/* Append all the selection area elements to the container box */
$box.append($area.add($border).add($areaOpera)).append($handles);
if (msie) {
if (o = ($outer.css('filter')||'').match(/opacity=(\d+)/))
$outer.css('opacity', o[1]/100);
if (o = ($border.css('filter')||'').match(/opacity=(\d+)/))
$border.css('opacity', o[1]/100);
}
if (newOptions.hide)
hide($box.add($outer));
else if (newOptions.show && imgLoaded) {
shown = true;
$box.add($outer).fadeIn(options.fadeSpeed||0);
doUpdate();
}
/* Calculate the aspect ratio factor */
aspectRatio = (d = (options.aspectRatio || '').split(/:/))[0] / d[1];
$img.add($outer).unbind('mousedown', imgMouseDown);
if (options.disable || options.enable === false) {
/* Disable the plugin */
$box.unbind('mousemove', areaMouseMove).unbind('mousedown', areaMouseDown);
$(window).unbind('resize', windowResize);
}
else {
if (options.enable || options.disable === false) {
/* Enable the plugin */
if (options.resizable || options.movable)
$box.mousemove(areaMouseMove).mousedown(areaMouseDown);
$(window).resize(windowResize);
}
if (!options.persistent)
$img.add($outer).mousedown(imgMouseDown);
}
options.enable = options.disable = undefined;
}
/**
* Remove plugin completely
*/
this.remove = function () {
/*
* Call setOptions with { disable: true } to unbind the event handlers
*/
setOptions({ disable: true });
$box.add($outer).remove();
};
/*
* Public API
*/
/**
* Get current options
*
* @return An object containing the set of options currently in use
*/
this.getOptions = function () { return options; };
/**
* Set plugin options
*
* @param newOptions
* The new options object
*/
this.setOptions = setOptions;
/**
* Get the current selection
*
* @param noScale
* If set to <code>true</code>, scaling is not applied to the
* returned selection
* @return Selection object
*/
this.getSelection = getSelection;
/**
* Set the current selection
*
* @param x1
* X coordinate of the upper left corner of the selection area
* @param y1
* Y coordinate of the upper left corner of the selection area
* @param x2
* X coordinate of the lower right corner of the selection area
* @param y2
* Y coordinate of the lower right corner of the selection area
* @param noScale
* If set to <code>true</code>, scaling is not applied to the
* new selection
*/
this.setSelection = setSelection;
/**
* Cancel selection
*/
this.cancelSelection = cancelSelection;
/**
* Update plugin elements
*
* @param resetKeyPress
* If set to <code>false</code>, this instance's keypress
* event handler is not activated
*/
this.update = doUpdate;
/* Do the dreaded browser detection */
var msie = (/msie ([\w.]+)/i.exec(ua)||[])[1],
opera = /opera/i.test(ua),
safari = /webkit/i.test(ua) && !/chrome/i.test(ua);
/*
* Traverse the image's parent elements (up to <body>) and find the
* highest z-index
*/
$p = $img;
while ($p.length) {
zIndex = max(zIndex,
!isNaN($p.css('z-index')) ? $p.css('z-index') : zIndex);
/* Also check if any of the ancestor elements has fixed position */
if ($p.css('position') == 'fixed')
position = 'fixed';
$p = $p.parent(':not(body)');
}
/*
* If z-index is given as an option, it overrides the one found by the
* above loop
*/
zIndex = options.zIndex || zIndex;
if (msie)
$img.attr('unselectable', 'on');
/*
* In MSIE and WebKit, we need to use the keydown event instead of keypress
*/
$.imgAreaSelect.keyPress = msie || safari ? 'keydown' : 'keypress';
/*
* There is a bug affecting the CSS cursor property in Opera (observed in
* versions up to 10.00) that prevents the cursor from being updated unless
* the mouse leaves and enters the element again. To trigger the mouseover
* event, we're adding an additional div to $box and we're going to toggle
* it when mouse moves inside the selection area.
*/
if (opera)
$areaOpera = div().css({ width: '100%', height: '100%',
position: 'absolute', zIndex: zIndex + 2 || 2 });
/*
* We initially set visibility to "hidden" as a workaround for a weird
* behaviour observed in Google Chrome 1.0.154.53 (on Windows XP). Normally
* we would just set display to "none", but, for some reason, if we do so
* then Chrome refuses to later display the element with .show() or
* .fadeIn().
*/
$box.add($outer).css({ visibility: 'hidden', position: position,
overflow: 'hidden', zIndex: zIndex || '0' });
$box.css({ zIndex: zIndex + 2 || 2 });
$area.add($border).css({ position: 'absolute', fontSize: 0 });
/*
* If the image has been fully loaded, or if it is not really an image (eg.
* a div), call imgLoad() immediately; otherwise, bind it to be called once
* on image load event.
*/
img.complete || img.readyState == 'complete' || !$img.is('img') ?
imgLoad() : $img.one('load', imgLoad);
/*
* MSIE 9.0 doesn't always fire the image load event -- resetting the src
* attribute seems to trigger it. The check is for version 7 and above to
* accommodate for MSIE 9 running in compatibility mode.
*/
if (!imgLoaded && msie && msie >= 7)
img.src = img.src;
};
/**
* Invoke imgAreaSelect on a jQuery object containing the image(s)
*
* @param options
* Options object
* @return The jQuery object or a reference to imgAreaSelect instance (if the
* <code>instance</code> option was specified)
*/
$.fn.imgAreaSelect = function (options) {
options = options || {};
this.each(function () {
/* Is there already an imgAreaSelect instance bound to this element? */
if ($(this).data('imgAreaSelect')) {
/* Yes there is -- is it supposed to be removed? */
if (options.remove) {
/* Remove the plugin */
$(this).data('imgAreaSelect').remove();
$(this).removeData('imgAreaSelect');
}
else
/* Reset options */
$(this).data('imgAreaSelect').setOptions(options);
}
else if (!options.remove) {
/* No exising instance -- create a new one */
/*
* If neither the "enable" nor the "disable" option is present, add
* "enable" as the default
*/
if (options.enable === undefined && options.disable === undefined)
options.enable = true;
$(this).data('imgAreaSelect', new $.imgAreaSelect(this, options));
}
});
if (options.instance)
/*
* Return the imgAreaSelect instance bound to the first element in the
* set
*/
return $(this).data('imgAreaSelect');
return this;
};
})(jQuery);
}));
/*
* 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);
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('planetred', elgg_get_site_url() . "mod/unl_theme/js/planetred.js");
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
elgg_unregister_js('require');
elgg_unregister_js('jquery-ui');
elgg_unregister_js('jquery.imgareaselect');
//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_load_js("planetred");
// 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");
}
// 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;
}
{
"name": "bootstrap-select",
"main": [
"less/bootstrap-select.less",
"dist/css/bootstrap-select.css",
"dist/js/bootstrap-select.js"
],
"version": "1.6.4",
"homepage": "http://silviomoreto.github.io/bootstrap-select",
"authors": [
"silviomoreto"
],
"keywords": [
"form",
"bootstrap",
"select",
"replacement"
],
"dependencies": {
"jquery": ">=1.8"
},
"license": "MIT",
"ignore": [
".gitignore",
"CONTRIBUTING.md",
"Gruntfile.js",
"README.md",
"composer.json",
"package.json",
"test.html"
],
"_release": "1.6.4",
"_resolution": {
"type": "version",
"tag": "v1.6.4",
"commit": "f2a963c00eed9a72f48759507f423f08d7506627"
},
"_source": "git://github.com/silviomoreto/bootstrap-select.git",
"_target": "~1.6.4",
"_originalSource": "bootstrap-select",
"_direct": true
}
\ No newline at end of file