*

kriskoyk

  • *****
  • 285 posts
Theme Beta, position correction of home page hooks.
« on: January 15, 2024, 12:04:28 AM »
Which file has been modified in  beta theme version 1.6.1?

*

MB Themes

Re: Theme Beta, position correction of home page hooks.
« Reply #1 on: January 15, 2024, 02:32:11 PM »
Changelog is not evidenced.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: Theme Beta, position correction of home page hooks.
« Reply #2 on: January 15, 2024, 06:45:19 PM »
Sorry, but I don't understand the answer. What does "Changelog is not evidenced."

*

MB Themes

Re: Theme Beta, position correction of home page hooks.
« Reply #3 on: January 15, 2024, 09:23:35 PM »
There is no track of files changed between versions.
In this case it could be main.php...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: Theme Beta, position correction of home page hooks.
« Reply #4 on: January 16, 2024, 07:10:38 PM »
The files affected are:

1) item.php
 <a target="_blank"  class="direction" href="https://www.google.com/maps?daddr=<?php echo urlencode($location); ?>"><?php _e('Get directions', 'beta'); ?> <i class="fa fa-angle-right"></i></a>

changes to

<a target="_blank"  class="direction" href="https://maps.google.com/maps?daddr=<?php echo urlencode($location); ?>"><?php _e('Get directions', 'beta'); ?> <i class="fa fa-angle-right"></i></a>

2) inc.search.php
<?php osc_run_hook('home_search_pre'); ?>

<div id="home-search">
  <div class="inside">
    <?php osc_run_hook('home_search_top'); ?>
   
    <div class="cover"></div>
    <div class="slide-wrap">
      <div class="slide"></div>
    </div>

    <div class="box">
      <h2><?php _e('Search, Sell & Buy', 'beta'); ?></h2>
      <h3><span><?php _e('Best classifieds', 'beta'); ?></span> <?php _e('for you', 'beta'); ?> </h3>
      <h4><?php _e('We are no. 1 online classifieds platform, our is all about you. Our aim is to empower every person in the country to independently connect with buyers and sellers online. ', 'beta'); ?></h4>

      <div class="wrap">
        <form action="<?php echo osc_base_url(true); ?>" method="GET" class="nocsrf" id="home-form" >
          <input type="hidden" name="page" value="search" />
          <input type="hidden" name="sCountry" id="sCountry" value="<?php echo Params::getParam('sCountry'); ?>"/>
          <input type="hidden" name="sRegion" id="sRegion" value="<?php echo Params::getParam('sRegion'); ?>"/>
          <input type="hidden" name="sCity" id="sCity" value="<?php echo Params::getParam('sCity'); ?>"/>

          <div class="line1">
            <div class="col1">
              <div class="box">
                <div id="query-picker" class="query-picker">
                  <input type="text" name="sPattern" class="pattern" placeholder="<?php _e('What are you looking for?', 'beta'); ?>" value="<?php echo Params::getParam('sPattern'); ?>" autocomplete="off"/>

                  <div class="shower-wrap">
                    <div class="shower"></div>
                  </div>

                  <div class="loader"></div>
                </div>
              </div>
            </div>


            <div class="col2">
              <div class="box">
                <div id="location-picker" class="loc-picker ctr-<?php echo (bet_count_countries() == 1 ? 'one' : 'more'); ?>">
                  <div class="mini-box">
                    <input type="text" id="term2" class="term2" placeholder="<?php _e('Location', 'beta'); ?>" value="<?php echo bet_get_term(Params::getParam('term'), Params::getParam('sCountry'), Params::getParam('sRegion'), Params::getParam('sCity')); ?>" autocomplete="off" readonly/>
                    <i class="fa fa-angle-down"></i>
                  </div>

                  <div class="shower-wrap">
                    <div class="shower" id="shower">
                      <?php echo bet_locbox_short(); ?>
                    </div>
                  </div>

                  <div class="loader"></div>
                </div>
              </div>
            </div>


            <div class="col4">
              <div class="box"><button type="submit" class="btn mbBg"><?php _e('Search', 'beta'); ?></button></div>
            </div>
          </div>

        </form>
      </div>
    </div>
   
    <?php osc_run_hook('home_search_bottom'); ?>
  </div>
</div>

<?php osc_run_hook('home_search_after'); ?>

changes to
<?php osc_run_hook('home_search_pre'); ?>

<div id="home-search">
  <div class="inside">
    <div class="cover"></div>
    <div class="slide-wrap">
      <div class="slide"></div>
    </div>

    <div class="box">
      <h2><?php _e('Search, Sell & Buy', 'beta'); ?></h2>
      <h3><span><?php _e('Best classifieds', 'beta'); ?></span> <?php _e('for you', 'beta'); ?> </h3>
      <h4><?php _e('We are no. 1 online classifieds platform, our is all about you. Our aim is to empower every person in the country to independently connect with buyers and sellers online. ', 'beta'); ?></h4>

      <div class="wrap">
        <form action="<?php echo osc_base_url(true); ?>" method="GET" class="nocsrf" id="home-form" >
          <input type="hidden" name="page" value="search" />
          <input type="hidden" name="sCountry" id="sCountry" value="<?php echo Params::getParam('sCountry'); ?>"/>
          <input type="hidden" name="sRegion" id="sRegion" value="<?php echo Params::getParam('sRegion'); ?>"/>
          <input type="hidden" name="sCity" id="sCity" value="<?php echo Params::getParam('sCity'); ?>"/>
         
          <?php osc_run_hook('home_search_top'); ?>
         
          <div class="line1">
            <div class="col1">
              <div class="box">
                <div id="query-picker" class="query-picker">
                  <input type="text" name="sPattern" class="pattern" placeholder="<?php _e('What are you looking for?', 'beta'); ?>" value="<?php echo Params::getParam('sPattern'); ?>" autocomplete="off"/>

                  <div class="shower-wrap">
                    <div class="shower"></div>
                  </div>

                  <div class="loader"></div>
                </div>
              </div>
            </div>


            <div class="col2">
              <div class="box">
                <div id="location-picker" class="loc-picker ctr-<?php echo (bet_count_countries() == 1 ? 'one' : 'more'); ?>">
                  <div class="mini-box">
                    <input type="text" id="term2" class="term2" placeholder="<?php _e('Location', 'beta'); ?>" value="<?php echo bet_get_term(Params::getParam('term'), Params::getParam('sCountry'), Params::getParam('sRegion'), Params::getParam('sCity')); ?>" autocomplete="off" readonly/>
                    <i class="fa fa-angle-down"></i>
                  </div>

                  <div class="shower-wrap">
                    <div class="shower" id="shower">
                      <?php echo bet_locbox_short(); ?>
                    </div>
                  </div>

                  <div class="loader"></div>
                </div>
              </div>
            </div>


            <div class="col4">
              <div class="box"><button type="submit" class="btn mbBg"><?php _e('Search', 'beta'); ?></button></div>
            </div>
          </div>

          <?php osc_run_hook('home_search_bottom'); ?>
         
        </form>
      </div>
    </div>
  </div>
</div>

<?php osc_run_hook('home_search_after'); ?>