Merge branch 'testing' into filesize
This commit is contained in:
commit
ea4ebe280a
@ -157,13 +157,13 @@ class AvatarsettingsAction extends AccountSettingsAction
|
||||
}
|
||||
|
||||
$this->elementStart('li', array ('id' => 'settings_attach'));
|
||||
$this->element('input', array('name' => 'avatarfile',
|
||||
'type' => 'file',
|
||||
'id' => 'avatarfile'));
|
||||
$this->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->element('input', array('name' => 'avatarfile',
|
||||
'type' => 'file',
|
||||
'id' => 'avatarfile'));
|
||||
$this->elementEnd('li');
|
||||
$this->elementEnd('ul');
|
||||
|
||||
|
@ -516,6 +516,10 @@ class DesignAdminPanelForm extends AdminForm
|
||||
$this->out->elementStart('ul', 'form_data');
|
||||
|
||||
$this->li();
|
||||
$this->out->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->out->element('label', array('for' => 'design_background-image_file'),
|
||||
// TRANS: Field label for background image on theme designer page.
|
||||
_('Background'));
|
||||
@ -526,10 +530,6 @@ class DesignAdminPanelForm extends AdminForm
|
||||
// TRANS: Form guide for background image upload form on theme designer page.
|
||||
sprintf(_('You can upload a background image for the site. ' .
|
||||
'The maximum file size is %1$s.'), ImageFile::maxFileSize()));
|
||||
$this->out->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->unli();
|
||||
|
||||
if (!empty($design->backgroundimage)) {
|
||||
|
@ -228,13 +228,13 @@ class GrouplogoAction extends GroupDesignAction
|
||||
}
|
||||
|
||||
$this->elementStart('li', array ('id' => 'settings_attach'));
|
||||
$this->element('input', array('name' => 'avatarfile',
|
||||
'type' => 'file',
|
||||
'id' => 'avatarfile'));
|
||||
$this->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->element('input', array('name' => 'avatarfile',
|
||||
'type' => 'file',
|
||||
'id' => 'avatarfile'));
|
||||
$this->elementEnd('li');
|
||||
$this->elementEnd('ul');
|
||||
|
||||
|
@ -24,6 +24,7 @@ VALUES
|
||||
('HelloTxt','HelloTxt','http://hellotxt.com/', now()),
|
||||
('identicatools','Laconica Tools','http://bitbucketlabs.net/laconica-tools/', now()),
|
||||
('identichat','identichat','http://identichat.prosody.im/', now()),
|
||||
('IdentiCurse','IdentiCurse','http://identicurse.net/', now()),
|
||||
('IdentiFox','IdentiFox','http://www.bitbucket.org/uncryptic/identifox/', now()),
|
||||
('identitwitch','IdentiTwitch','http://richfish.org/identitwitch/', now()),
|
||||
('Jiminy','Jiminy','http://code.google.com/p/jiminy/', now()),
|
||||
|
@ -168,6 +168,10 @@ class ApplicationEditForm extends Form
|
||||
$this->out->element('img', array('src' => $icon));
|
||||
}
|
||||
|
||||
$this->out->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->out->element('label', array('for' => 'app_icon'),
|
||||
// TRANS: Form input field label for application icon.
|
||||
_('Icon'));
|
||||
@ -176,10 +180,6 @@ class ApplicationEditForm extends Form
|
||||
'id' => 'app_icon'));
|
||||
// TRANS: Form guide.
|
||||
$this->out->element('p', 'form_guide', _('Icon for this application'));
|
||||
$this->out->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->out->elementEnd('li');
|
||||
|
||||
$this->out->elementStart('li');
|
||||
|
@ -98,6 +98,10 @@ class DesignSettingsAction extends AccountSettingsAction
|
||||
$this->element('legend', null, _('Change background image'));
|
||||
$this->elementStart('ul', 'form_data');
|
||||
$this->elementStart('li');
|
||||
$this->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->element('label', array('for' => 'design_background-image_file'),
|
||||
// TRANS: Label in form on profile design page.
|
||||
// TRANS: Field contains file name on user's computer that could be that user's custom profile background image.
|
||||
@ -108,10 +112,6 @@ class DesignSettingsAction extends AccountSettingsAction
|
||||
// TRANS: Instructions for form on profile design page.
|
||||
$this->element('p', 'form_guide', _('You can upload your personal ' .
|
||||
'background image. The maximum file size is 2MB.'));
|
||||
$this->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||
'type' => 'hidden',
|
||||
'id' => 'MAX_FILE_SIZE',
|
||||
'value' => ImageFile::maxFileSizeInt()));
|
||||
$this->elementEnd('li');
|
||||
|
||||
if (!empty($design->backgroundimage)) {
|
||||
|
@ -190,12 +190,12 @@ class NoticeForm extends Form
|
||||
}
|
||||
|
||||
if (common_config('attachments', 'uploads')) {
|
||||
$this->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
|
||||
$this->out->element('label', array('for' => 'notice_data-attach'),_('Attach'));
|
||||
$this->out->element('input', array('id' => 'notice_data-attach',
|
||||
'type' => 'file',
|
||||
'name' => 'attach',
|
||||
'title' => _('Attach a file')));
|
||||
$this->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
|
||||
}
|
||||
if ($this->action) {
|
||||
$this->out->hidden('notice_return-to', $this->action, 'returnto');
|
||||
|
@ -3,4 +3,6 @@
|
||||
.bookmark-avatar { float: left; }
|
||||
.bookmark-notice-count { float: right; }
|
||||
.bookmark-info { float: left; }
|
||||
.bookmark-title { margin-left: 0px }
|
||||
.bookmark-title { margin-left: 0px; }
|
||||
#content .bookmark .entry-title { margin-left: 0px; }
|
||||
#content .bookmark .entry-content { margin-left: 0px; }
|
||||
|
@ -358,12 +358,12 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
|
||||
if (common_config('attachments', 'uploads')) {
|
||||
if ($this->mobileFeatures['inputfiletype']) {
|
||||
$form->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
|
||||
$form->out->element('label', array('for' => 'notice_data-attach'), _m('Attach'));
|
||||
$form->out->element('input', array('id' => 'notice_data-attach',
|
||||
'type' => 'file',
|
||||
'name' => 'attach',
|
||||
'title' => _m('Attach a file')));
|
||||
$form->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
|
||||
}
|
||||
}
|
||||
if ($form->action) {
|
||||
|
@ -346,14 +346,12 @@ list-style-type:none;
|
||||
float:left;
|
||||
text-decoration:none;
|
||||
padding:4px 11px;
|
||||
border-radius-topleft:4px;
|
||||
border-radius-topright:4px;
|
||||
border-top-left-radius:4px;
|
||||
border-top-right-radius:4px;
|
||||
-moz-border-radius-topleft:4px;
|
||||
-moz-border-radius-topright:4px;
|
||||
-webkit-border-top-left-radius:4px;
|
||||
-webkit-border-top-right-radius:4px;
|
||||
border-radius-topleft:0;
|
||||
border-radius-topright:0;
|
||||
border-width:1px;
|
||||
border-style:solid;
|
||||
border-bottom:0;
|
||||
@ -381,13 +379,13 @@ display:block;
|
||||
width:80%;
|
||||
padding-right:10%;
|
||||
padding-left:10%;
|
||||
border-radius-toprleft:0;
|
||||
border-top-left-radius:0;
|
||||
-moz-border-radius-topleft:0;
|
||||
-webkit-border-top-left-radius:0;
|
||||
border-radius-topright:4px;
|
||||
border-top-right-radius:4px;
|
||||
-moz-border-radius-topright:4px;
|
||||
-webkit-border-top-right-radius:4px;
|
||||
border-radius-bottomright:4px;
|
||||
border-bottom-right-radius:4px;
|
||||
-moz-border-radius-bottomright:4px;
|
||||
-webkit-border-bottom-right-radius:4px;
|
||||
}
|
||||
@ -398,13 +396,10 @@ box-shadow:none;
|
||||
}
|
||||
|
||||
body[id$=adminpanel] #content {
|
||||
border-radius-topleft:7px;
|
||||
border-radius-topright:7px;
|
||||
border-top-left-radius:7px;
|
||||
-moz-border-radius-topleft:7px;
|
||||
-moz-border-radius-topright:7px;
|
||||
-webkit-border-top-left-radius:7px;
|
||||
-webkit-border-top-right-radius:7px;
|
||||
border-radius-topright:0;
|
||||
border-top-right-radius:0;
|
||||
-moz-border-radius-topright:0;
|
||||
-webkit-border-top-right-radius:0;
|
||||
}
|
||||
@ -488,6 +483,7 @@ min-height:259px;
|
||||
padding:1.795%;
|
||||
float:left;
|
||||
border-radius:7px;
|
||||
border-top-left-radius:0;
|
||||
-moz-border-radius:7px;
|
||||
-moz-border-radius-topleft:0;
|
||||
-webkit-border-radius:7px;
|
||||
|
@ -1399,7 +1399,7 @@ display:block;
|
||||
padding: 4px 4px 4px 26px;
|
||||
}
|
||||
|
||||
.entity_actions a, .entity_actions p, .entity_actions .entity_subscribe input, .entity_actions .entity_block input, .entity_actions .entity_moderation input, .entity_actions .entity_role input {
|
||||
.entity_actions a, .entity_actions p, .entity_actions .entity_subscribe input, .entity_actions .entity_block input, .entity_actions .entity_moderation input, .entity_actions .entity_role input, .entity_actions .entity_nudge input, .entity_actions .entity_delete input {
|
||||
background-color: #ccc !important;
|
||||
border: none;
|
||||
}
|
||||
@ -1408,7 +1408,7 @@ display:block;
|
||||
padding: 2px 4px 4px 28px;
|
||||
}
|
||||
|
||||
.entity_actions a:hover, .entity_actions p:hover, .entity_actions .entity_subscribe input:hover, .entity_actions .entity_block input:hover, .entity_actions .entity_moderation input:hover, .entity_actions .entity_role input:hover {
|
||||
.entity_actions a:hover, .entity_actions p:hover, .entity_actions .entity_subscribe input:hover, .entity_actions .entity_block input:hover, .entity_actions .entity_moderation input:hover, .entity_actions .entity_role input:hover, .entity_actions .entity_nudge input:hover, .entity_actions .entity_delete input:hover {
|
||||
background-color: #f2f2f2 !important;
|
||||
}
|
||||
|
||||
|
@ -296,7 +296,7 @@ h6 {font-size: 1em;}
|
||||
position: relative;
|
||||
z-index: 9;
|
||||
float: right;
|
||||
margin: 0px 0px 20px 0px;
|
||||
margin: 0px;
|
||||
width: 290px;
|
||||
}
|
||||
|
||||
@ -331,7 +331,7 @@ h6 {font-size: 1em;}
|
||||
}
|
||||
|
||||
#site_nav_local_views li:first-child a {
|
||||
border-radius-topright:4px;
|
||||
border-top-right-radius:4px;
|
||||
-moz-border-radius-topright:4px;
|
||||
-webkit-border-top-right-radius:4px;
|
||||
}
|
||||
@ -368,7 +368,7 @@ h6 {font-size: 1em;}
|
||||
border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
border-radius-topright: 0px;
|
||||
border-top-right-radius: 0px;
|
||||
-moz-border-radius-topright: 0px;
|
||||
-webkit-border-top-right-radius: 0px;
|
||||
padding: 14px 10px 20px 10px;
|
||||
@ -382,9 +382,8 @@ h6 {font-size: 1em;}
|
||||
padding: 0px;
|
||||
padding-top: 16px;
|
||||
padding-left: 10px;
|
||||
margin-top: -20px;
|
||||
background-color: #262626;
|
||||
border-radius-bottomright: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
-moz-border-radius-bottomright: 6px;
|
||||
-webkit-border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user