Support Forums - Classified Ads Script Osclass
Osclass theme support => Alpha Osclass Theme => Topic started by: asterion on February 26, 2020, 06:47:39 PM
-
Hi,
I have a problem in my site, in menage pages I add two different pages and I want show them in footer with "Contacts" link.
The problem is that when I click in one of that links in the footer the second link change to the same link.
For example, I have in the footer "Privacy | Terms | Contacts" and when I click in "Privacy", the footer links changed to "Privacy ! Privacy ! Contacts" and if I click in the Terms that footer links changed to "Terms | Terms | Contacts".~
Anyone can help me?
Regards,
-
@asterion
Find following code in footer.php of alpha theme:
<div class="right">
<?php osc_reset_static_pages(); ?>
<?php while(osc_has_static_pages()) { ?>
<a href="<?php echo osc_static_page_url(); ?>"><?php echo ucfirst(osc_static_page_title());?></a>
<?php } ?>
<?php if(alp_param('footer_link')) { ?>
<a href="https://osclasspoint.com">Osclass Themes</a>
<?php } ?>
<a href="<?php echo osc_contact_url(); ?>"><?php _e('Contact us', 'alpha'); ?></a>
</div>
Replace it with:
<div class="right">
<?php $pages = Page::newInstance()->listAll($indelible = 0, $b_link = null, $locale = null, $start = null, $limit = 5); ?>
<?php foreach($pages as $p) { ?>
<?php View::newInstance()->_exportVariableToView('page', $p); ?>
<a href="<?php echo osc_static_page_url(); ?>"><?php echo ucfirst(osc_static_page_title());?></a>
<?php } ?>
<?php if(alp_param('footer_link')) { ?>
<a href="https://osclasspoint.com">Osclass Themes</a>
<?php } ?>
<a href="<?php echo osc_contact_url(); ?>"><?php _e('Contact us', 'alpha'); ?></a>
</div>
-
Thanks!
-
If your OSCLASS is ver 3.9 this is a bug. An the fix is there:
https://github.com/navjottomer/Osclass/commit/d7a9ea61d197f9048e4858f1f2c406a0e82987b2 (https://github.com/navjottomer/Osclass/commit/d7a9ea61d197f9048e4858f1f2c406a0e82987b2)
https://github.com/navjottomer/Osclass/commit/c87e42b6458cdc4c6a184791100c5f29d0b30139 (https://github.com/navjottomer/Osclass/commit/c87e42b6458cdc4c6a184791100c5f29d0b30139)
-
@piter
Yes it's 3.9 bug