*

asterion

  • **
  • 9 posts
Footer and Pages
« 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,

Marked as best answer by frosticek on February 28, 2020, 09:15:39 AM
*

MB Themes

Re: Footer and Pages
« Reply #1 on: February 28, 2020, 09:15:37 AM »
@asterion
Find following code in footer.php of alpha theme:
Code: [Select]
      <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:
Code: [Select]
      <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>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

asterion

  • **
  • 9 posts
Re: Footer and Pages
« Reply #2 on: February 28, 2020, 10:41:04 AM »
Thanks!

*

piter

  • ****
  • 104 posts

*

MB Themes

Re: Footer and Pages
« Reply #4 on: March 02, 2020, 12:04:44 PM »
@piter
Yes it's 3.9 bug
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots