Skip to content

Commit

Permalink
! managepaid windowbg > 2 (managepaid.template.php)
Browse files Browse the repository at this point in the history
! Undefined fix (managepaid.php)
! Responsive Changes
- input related width stuff removed
- Permission page now has proper ID (#permissions)
- Menu tests for 480p added especially for 3rd level items and non-child menu items

Signed-off-by: Antes <antes@simplemachines.org>
  • Loading branch information
XinYenFon committed Nov 25, 2014
1 parent b15c5f9 commit 94fe7b4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/ManagePaid.php
Expand Up @@ -754,7 +754,7 @@ function ModifySubscription()
*/
function ViewSubscribedUsers()
{
global $context, $txt, $scripturl, $smcFunc, $sourcedir;
global $context, $txt, $scripturl, $smcFunc, $sourcedir, $modSettings;

// Setup the template.
$context['page_title'] = $txt['viewing_users_subscribed'];
Expand Down
3 changes: 1 addition & 2 deletions Themes/default/ManagePaid.template.php
Expand Up @@ -29,7 +29,7 @@ function template_modify_subscription()
</div>';

echo '
<div class="windowbg">
<div class="windowbg2">
<dl class="settings">
<dt>
', $txt['paid_mod_name'], ':
Expand Down Expand Up @@ -183,7 +183,6 @@ function template_modify_subscription()
</dl>
</fieldset>
</div>
<hr class="hrcolor">
<input type="submit" name="save" value="', $txt['paid_settings_save'], '" class="button_submit">
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
<input type="hidden" name="', $context['admin-pms_token_var'], '" value="', $context['admin-pms_token'], '">
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/ManagePermissions.template.php
Expand Up @@ -477,7 +477,7 @@ function warnAboutDeny()

echo '
<div id="admincenter">
<form id="admin_form_wrapper" action="', $scripturl, '?action=admin;area=permissions;sa=modify2;group=', $context['group']['id'], ';pid=', $context['profile']['id'], '" method="post" accept-charset="', $context['character_set'], '" name="permissionForm" onsubmit="return warnAboutDeny();">';
<form id="permissions" action="', $scripturl, '?action=admin;area=permissions;sa=modify2;group=', $context['group']['id'], ';pid=', $context['profile']['id'], '" method="post" accept-charset="', $context['character_set'], '" name="permissionForm" onsubmit="return warnAboutDeny();">';

if (!empty($modSettings['permission_enable_deny']) && $context['group']['id'] != -1)
echo '
Expand Down
24 changes: 21 additions & 3 deletions Themes/default/css/responsive.css
Expand Up @@ -5,9 +5,6 @@
display: inline-block;
margin: 5px 7px 0 0;
}
input.input_check, input.input_radio {
width: 10%;
}
#registration .field_icons {
float: left;
margin: 5px 0 0 3px;
Expand Down Expand Up @@ -151,6 +148,12 @@
#main_content_section .navigate_section, a.topbottom, .pagesection.top, .time {
display: none !important;
}

/* Admin */
#permissions table.table_grid.perm_grid {
margin: 0 !important;
width: 100% !important;
}
}

/* I have a Lumia with 480px screen... so ^^ */
Expand Down Expand Up @@ -347,6 +350,21 @@
.action_admin .navigate_section {
display: none;
}
/* Menu tests */
#adm_submenus {
padding: 0;
}
#adm_submenus .dropmenu li {
float: left;
margin: 0;
}
/* 3rd level menu tests */
.dropmenu li ul ul {
margin: 0 !important;
}
.dropmenu li li:hover ul, .dropmenu li li ul {
left: 1px !important;
}
}

@media (min-width: 481px) and (max-width: 720px) {
Expand Down

0 comments on commit 94fe7b4

Please sign in to comment.