Advertisement:

Author Topic: SOLVED Admin for mobile use  (Read 1174 times)

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1700
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
SOLVED Admin for mobile use
« 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.
« Last Edit: December 27, 2017, 06:59:45 pm by marius-ciclistu »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1700
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Admin for mobile use
« Reply #1 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)?
« Last Edit: December 27, 2017, 07:01:22 pm by marius-ciclistu »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1700
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Admin for mobile use
« Reply #2 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;

theillest1

  • Newbie
  • *
  • Posts: 1
Re: SOLVED Admin for mobile use
« Reply #3 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!

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1700
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: SOLVED Admin for mobile use
« Reply #4 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.
« Last Edit: November 12, 2018, 12:29:43 pm by marius-ciclistu »