Osclass forums

Support forums => Themes => Modern => Topic started by: marius-ciclistu on December 27, 2017, 03:14:40 pm

Title: SOLVED Admin for mobile use
Post by: marius-ciclistu on December 27, 2017, 03:14:40 pm
Hi. I made some mods for modern to work ok on mobile but now I see that I can't access things like email templates from mobile because the main menu icon from the vertical bar has a link.

Anyway my suggestion would be to release a css/js patch for this issue.

In my case, I'll go ahead and modify the theme and remove that link from there when screen rez in less than 460 px.
Title: Re: Admin for mobile use
Post by: marius-ciclistu on December 27, 2017, 06:52:31 pm
/oc-includes/osclass/helpers/hAdminMenu.php
line 158
Code: [Select]
                $sMenu .= '<h3><a id="'.$value[2].'" href="'.$value[1].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL;

Code: [Select]
'" href="'.$value[1]. must be removed only when the menu has submenu. How to test that?

Code: [Select]
if($aSubmenu) or
Code: [Select]
if($sSubmenu)?
Title: Re: Admin for mobile use
Post by: marius-ciclistu on December 27, 2017, 06:59:09 pm
Solution

/oc-includes/osclass/helpers/hAdminMenu.php

Code: [Select]
                if($sSubmenu=='') $sMenu .= '<h3><a id="'.$value[2].'" href="'.$value[1].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL; else $sMenu .= '<h3><a id="'.$value[2].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL;
instead of

Code: [Select]
                $sMenu .= '<h3><a id="'.$value[2].'" href="'.$value[1].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL;
Title: Re: SOLVED Admin for mobile use
Post by: theillest1 on November 12, 2018, 07:25:36 am
Hello, I'm using the Modern theme also and I wanted to make it responsive. Can you please share what modifications you made in order to make this responsive? Thanks!
Title: Re: SOLVED Admin for mobile use
Post by: marius-ciclistu on November 12, 2018, 12:24:51 pm
https://forums.osclass.org/modern/admin-for-mobile-use/msg159072/#msg159072
I moved the logout button in left side and other small changes. The overall look is non-mobile but usable.