Support Forums - Classified Ads Script Osclass
Osclass theme support => Alpha Osclass Theme => Topic started by: Lvin81 on July 05, 2021, 02:27:54 AM
-
Dear Sir/Madam,
On the computer, the website looks awesome; but If you click on my account you get different items on the desktop version and the mobile version. Where can I find the menu (3 stripes at the right top) with the items listed? I want to add the link to instant messenger plugin; I want to add the link of my favourites plugin and I would like to add the link of my offers/offers plugin link into the mobile menu.
if I look into user-custom.php I see :
<body id="body-user-custom" class="body-ua">
<?php osc_current_web_theme_path('header.php') ; ?>
<div class="inside user_account">
<div class="user-menu-wrap">
<div class="user-button isMobile"><?php _e('Menu', 'alpha'); ?><i class="fa fa-angle-down"></i></div>
But in which file is the function: e(Menu) set-up? I can't find in the functions.php and I cannot find where the difference is between the menu of the desktop version and the menu of the mobile version, can some one please help?
Further I love the alpha theme and I'm customizing it to my preferences; once done I will share the files and translations with the whole community which contains an improved expanded car_attributes plugin, dutch translations, english and german translations for alpha and all plugins used.
PS: Only thing I find in the functions.php is :
osc_run_hook('user_menu_items');
Where can I find : user_menu_items? And where is the difference between the desktop menu and the mobile menu?
PS2: In the header.php file I find the following code:
data-menu-id="#menu-user" (if mobile)
In which file is the #menu-user items declaired? Where can I add items to the mobile menu?
Thanks in advance!
KR,
Alvin
-
@Lvin81
Menu should be generated in footer.php
-
Did i add link to mobile menu correctly? Maybe there is a string for blog and forum url (etc. osc_contact_url)???
In in file /public_html/oc-content/themes/alpha/footer.php where comment <!-- MOBILE BLOCKS -->
<div id="menu-options" class="mobile-box">
....
<div class="body">
<a class="publish" href="<?php echo osc_item_post_url(); ?>"><?php _e('Add a new listing', 'alpha'); ?></a>
<?php if(!osc_is_web_user_logged_in()) { ?>
<a href="<?php echo alp_reg_url('login'); ?>"><?php _e('Log in', 'alpha'); ?></a>
<a href="<?php echo alp_reg_url('register'); ?>"><?php _e('Register a new account', 'alpha'); ?></a>
<?php } else { ?>
<a href="<?php echo osc_user_list_items_url(); ?>"><?php _e('My listings', 'alpha'); ?></a>
<a href="<?php echo osc_user_profile_url(); ?>"><?php _e('My profile', 'alpha'); ?></a>
<a href="<?php echo osc_user_alerts_url(); ?>"><?php _e('My alerts', 'alpha'); ?></a>
<?php } ?>
<!-- MOBILE MENIU FORUM LINK ??? -->
<a href="https://mydomain.dom/forums/home"><?php _e('Forums', 'alpha'); ?></a>
<!-- MOBILE MENIU BLOG LINK ??? -->
<a href="https://mydomain.dom/blog/"><?php _e('Blog', 'alpha'); ?></a>
<a href="<?php echo osc_contact_url(); ?>"><?php _e('Contact', 'alpha'); ?></a>
-
@Mindaugas
You did it correctly I would say ;)