*

Andrey

  • ****
  • 157 posts
Location of the premium on the main
« on: April 17, 2018, 04:21:42 PM »
Hello, why this code does not work in loop-single-premium.php? Only the fa fa-map-marker is visible
How to make for a premium on the main.
Be kind, help
Sorry for my bad english

In loop-single.php, everything works, and loop-single-premium.php no
loop-single.php put this:

<div>

       <span class="locationg "><i class="fa fa-map-marker"></i> <?php if ( osc_item_region() && osc_item_city() != null ) { ?><?php echo osc_item_city(); ?>, <?php echo osc_item_region(); ?><?php } ?></span>
           
                    </div>

in style.css put this

.locationg {
    background: #fff;
    color: #444;
    padding: 5px;
    font-weight: 500;
    float: left;
    width: 100%;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
« Last Edit: April 17, 2018, 04:34:08 PM by Olime Olime »

*

MB Themes

Re: Location of the premium on the main
« Reply #1 on: April 18, 2018, 12:43:38 PM »
_item_ part must be replaced by _premium_ part
https://doc.osclass.org/HPremium.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Andrey

  • ****
  • 157 posts
Re: Location of the premium on the main
« Reply #2 on: April 18, 2018, 03:55:16 PM »
Thank you.

Tell me please
How to add this country? The country was associated with the default region

        <!-- LOCATION -->

        <div class="location">
         <div class="row">
           <label for="address"><?php _e('Region', 'veronika'); ?><span class="req">*</span></label>
            <div class="select input-box">
          <?php ItemForm::region_select(osc_get_regions(), osc_user()) ; ?><i class="fa fa-map-pin"></i>
          </div>
        </div>
      
         <div class="row">
             <label for="address"><?php _e('City', 'veronika'); ?> <span class="req">*</span></label>
               <div class="select input-box">
                 <?php ItemForm::city_select(osc_get_cities(osc_user_region()), osc_user()) ; ?><i class="fa fa-map-pin"></i>
               </div>
        </div>

Without the country the ad does not find in search
« Last Edit: April 18, 2018, 03:57:53 PM by Olime Olime »

*

MB Themes

Re: Location of the premium on the main
« Reply #3 on: April 20, 2018, 08:53:02 AM »
          <?php ItemForm::country_select() ; ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots