Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
6a014abe1c
@ -164,6 +164,7 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
$p['scale'] = 1;
|
$p['scale'] = 1;
|
||||||
$r2 = $ph->save($p);
|
$r2 = $ph->save($p);
|
||||||
$smallest = 1;
|
$smallest = 1;
|
||||||
|
$width_x_height = $ph->getWidth() . 'x' . $ph->getHeight();
|
||||||
if(! $r2)
|
if(! $r2)
|
||||||
$errors = true;
|
$errors = true;
|
||||||
}
|
}
|
||||||
@ -173,6 +174,7 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
$p['scale'] = 2;
|
$p['scale'] = 2;
|
||||||
$r3 = $ph->save($p);
|
$r3 = $ph->save($p);
|
||||||
$smallest = 2;
|
$smallest = 2;
|
||||||
|
$width_x_height = $ph->getWidth() . 'x' . $ph->getHeight();
|
||||||
if(! $r3)
|
if(! $r3)
|
||||||
$errors = true;
|
$errors = true;
|
||||||
}
|
}
|
||||||
@ -221,7 +223,7 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
|
|
||||||
|
|
||||||
$arr['body'] = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
|
$arr['body'] = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
|
||||||
. '[zmg]' . z_root() . "/photo/{$photo_hash}-{$smallest}.".$ph->getExt() . '[/zmg]'
|
. '[zmg=' . $width_x_height. ']' . z_root() . "/photo/{$photo_hash}-{$smallest}.".$ph->getExt() . '[/zmg]'
|
||||||
. '[/zrl]';
|
. '[/zrl]';
|
||||||
|
|
||||||
$result = item_store($arr);
|
$result = item_store($arr);
|
||||||
@ -426,4 +428,4 @@ function photos_create_item($channel, $creator_hash, $photo, $visible = false) {
|
|||||||
$item_id = $result['item_id'];
|
$item_id = $result['item_id'];
|
||||||
return $item_id;
|
return $item_id;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
19
view/css/bootstrap-red.css
vendored
19
view/css/bootstrap-red.css
vendored
@ -1,28 +1,9 @@
|
|||||||
/* override some bootstrap settings */
|
/* override some bootstrap settings */
|
||||||
*,
|
|
||||||
*:before,
|
|
||||||
*:after {
|
|
||||||
-webkit-box-sizing: content-box;
|
|
||||||
-moz-box-sizing: content-box;
|
|
||||||
box-sizing: content-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-body .form-control{
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
.profile-jot-text{
|
|
||||||
-webkit-box-sizing: content-box;
|
|
||||||
-moz-box-sizing: content-box;
|
|
||||||
box-sizing: content-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
.h1 {
|
.h1 {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
border: 0px;
|
border: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
height: 1.8em;
|
height: 3.4em;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
@ -16,10 +16,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#profile-jot-text {
|
#profile-jot-text {
|
||||||
height: 1.8em;
|
height: 3.4em;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
width: 90%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-jot-text-loading {
|
#profile-jot-text-loading {
|
||||||
@ -29,11 +29,11 @@
|
|||||||
|
|
||||||
#profile-jot-submit-wrapper {
|
#profile-jot-submit-wrapper {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 90%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-jot-submit {
|
#profile-jot-submit {
|
||||||
height: 22px;
|
height: 30px;
|
||||||
width: 70px;
|
width: 70px;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
@ -369,7 +369,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comment-edit-text-empty {
|
.comment-edit-text-empty {
|
||||||
height: 1.2em;
|
height: 2.8em;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
@ -14,11 +14,12 @@ main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
aside#region_1 {
|
aside#region_1 {
|
||||||
width: 210px;
|
width: 231px;
|
||||||
min-width: 210px;
|
min-width: 231px;
|
||||||
|
max-width: 231px;
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
padding: 65px 7px 13px 7px;
|
padding: 65px 7px 0px 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside input[type='text'] {
|
aside input[type='text'] {
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
/* notes */
|
/* notes */
|
||||||
|
|
||||||
#note-text {
|
#note-text {
|
||||||
width: 190px;
|
width: 100%;
|
||||||
max-width: 190px;
|
resize: vertical;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
@media screen and (min-width: 760px) {
|
||||||
.navbar-nav > li > a {padding-top:5px !important; padding-bottom:5px !important;}
|
.navbar-nav > li > a {padding-top:5px !important; padding-bottom:5px !important;}
|
||||||
.navbar {min-height:25px !important;}
|
.navbar {min-height:25px !important;}
|
||||||
nav img {
|
nav img {
|
||||||
height: 25px;
|
height: 30px;
|
||||||
width: 25px;
|
width: 30px;
|
||||||
margin: 2px 0px 1px 10px;
|
margin: 2px 0px 1px 10px;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
@ -12,7 +13,7 @@ border-radius: 0px;
|
|||||||
#nav-search-text {margin:5px;}
|
#nav-search-text {margin:5px;}
|
||||||
header #banner {margin-top:5px;}
|
header #banner {margin-top:5px;}
|
||||||
nav .dropdown-menu {
|
nav .dropdown-menu {
|
||||||
top: 30px;}
|
top: 33px;}
|
||||||
nav .badge {
|
nav .badge {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -30px;
|
top: -30px;
|
||||||
@ -24,4 +25,5 @@ nav .badge {
|
|||||||
#jGrowl.top-right {
|
#jGrowl.top-right {
|
||||||
top: 30px;
|
top: 30px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
@ -138,51 +138,10 @@ blockquote {
|
|||||||
filter:alpha(opacity=100);
|
filter:alpha(opacity=100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav,
|
||||||
#langselector {
|
header {
|
||||||
position: fixed;
|
|
||||||
top: 3px;
|
|
||||||
left: 5px;
|
|
||||||
z-index:9999;
|
|
||||||
opacity: 0.3;
|
|
||||||
filter:alpha(opacity=30);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
#langselector:hover {
|
|
||||||
opacity: 1.0;
|
|
||||||
filter:alpha(opacity=100);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* this is not yet supported
|
|
||||||
|
|
||||||
nav {
|
|
||||||
background-image: linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%);
|
|
||||||
background-image: -o-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%);
|
|
||||||
background-image: -moz-linear-gradient(bottom,$nav_bg_1 26%, $nav_bg_2 82%);
|
|
||||||
background-image: -webkit-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%);
|
|
||||||
background-image: -ms-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%);
|
|
||||||
opacity: $nav_float_min_opacity;
|
opacity: $nav_float_min_opacity;
|
||||||
filter:alpha(opacity=$nav_percent_min_opacity);
|
filter:alpha(opacity=$nav_percent_min_opacity);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
nav:hover {
|
|
||||||
background-image: linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%);
|
|
||||||
background-image: -o-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%);
|
|
||||||
background-image: -moz-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%);
|
|
||||||
background-image: -webkit-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%);
|
|
||||||
background-image: -ms-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%);
|
|
||||||
opacity: 1.0;
|
|
||||||
filter:alpha(opacity=100);
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
nav #site-location {
|
|
||||||
color: #888a85;
|
|
||||||
font-size: 0.8em;
|
|
||||||
position: absolute;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.error-message {
|
.error-message {
|
||||||
@ -213,10 +172,6 @@ nav #banner #logo-text a {
|
|||||||
}
|
}
|
||||||
nav #banner #logo-text a:hover { text-decoration: none; }
|
nav #banner #logo-text a:hover { text-decoration: none; }
|
||||||
|
|
||||||
header #site-location {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
header #banner {
|
header #banner {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -402,6 +357,10 @@ footer {
|
|||||||
color: #444444;
|
color: #444444;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vcard {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.vcard .title {
|
.vcard .title {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
@ -474,9 +433,9 @@ footer {
|
|||||||
|
|
||||||
|
|
||||||
#profile-photo-wrapper img {
|
#profile-photo-wrapper img {
|
||||||
width:175px;
|
|
||||||
height:175px;
|
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
width: 201px;
|
||||||
|
height: 201px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-in-dir-yes-label,
|
#profile-in-dir-yes-label,
|
||||||
@ -772,6 +731,7 @@ footer {
|
|||||||
|
|
||||||
#contact-block {
|
#contact-block {
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#contact-block-numcontacts {
|
#contact-block-numcontacts {
|
||||||
@ -781,8 +741,8 @@ footer {
|
|||||||
|
|
||||||
.contact-block-div {
|
.contact-block-div {
|
||||||
float: left;
|
float: left;
|
||||||
width: 52px;
|
width: 50px;
|
||||||
height: 52px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
.contact-block-textdiv {
|
.contact-block-textdiv {
|
||||||
float: left;
|
float: left;
|
||||||
@ -1285,7 +1245,7 @@ brain is weird like that */
|
|||||||
background-image:url("../../../../images/onoff.jpg");
|
background-image:url("../../../../images/onoff.jpg");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding: 4px 2px 2px 2px;
|
padding: 4px 2px 2px 2px;
|
||||||
height: 16px;
|
height: 24px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.field .onoff .off {
|
.field .onoff .off {
|
||||||
@ -1475,6 +1435,9 @@ div.jGrowl div.info {
|
|||||||
right: 15px;
|
right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.jGrowl div.jGrowl-notification {
|
||||||
|
min-height: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
#id_term_label {
|
#id_term_label {
|
||||||
width:75px;
|
width:75px;
|
||||||
@ -2309,8 +2272,8 @@ blockquote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
left: -225px;
|
left: -231px;
|
||||||
width: calc( 100% + 225px );
|
width: calc( 100% + 231px );
|
||||||
}
|
}
|
||||||
|
|
||||||
main.region_1-on {
|
main.region_1-on {
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
{{include file="field_input.tpl" field=$radius}}
|
{{include file="field_input.tpl" field=$radius}}
|
||||||
{{include file="field_input.tpl" field=$shadow}}
|
{{include file="field_input.tpl" field=$shadow}}
|
||||||
{{include file="field_input.tpl" field=$converse_width}}
|
{{include file="field_input.tpl" field=$converse_width}}
|
||||||
{{* include file="field_input.tpl" field=$nav_min_opacity *}}
|
{{include file="field_input.tpl" field=$nav_min_opacity}}
|
||||||
{{include file="field_input.tpl" field=$top_photo}}
|
{{include file="field_input.tpl" field=$top_photo}}
|
||||||
{{include file="field_input.tpl" field=$reply_photo}}
|
{{include file="field_input.tpl" field=$reply_photo}}
|
||||||
{{include file="field_checkbox.tpl" field=$sloppy_photos}}
|
{{include file="field_checkbox.tpl" field=$sloppy_photos}}
|
||||||
|
Reference in New Issue
Block a user