Important security update, please update to Osclass 3.7.4
At Osclass we have changed our Privacy Policy and Terms of Use in order to adapt them to the new General Data Protection Regulation (GDPR). We want you to know what user data we store, what we need them for, and who we share them with in each specific case. Furthermore, we are making it even easier for you to exercise your right to manage your own data.
Our goal is that you enjoy the best possible experience with our website. As the GDPR comes into force, legislation requires us that you grant us permission—both to us and our partners—to store cookies in your browser. Remember you can find more information about what we do with your data by clicking here.
I accept Osclass SL’s Terms of Use and Cookies Policy and grant them permission to manage my data.
<?php if( !osc_is_publish_page() { ?> <!--the search barcode--> <?php } ?>
if(!osc_is_home_page() || (!osc_is_publish_page())) { ?>
<?php if(!osc_is_publish_page()) {?> <!--the search barcode--> <?php } elseif (!osc_is_home_page()) {?> <!--the search barcode--> <?php } else {?> <!-- --> <?php }?>
<?php osc_current_web_theme_path('headerb.php') ; ?>
if you wanted to hide in 2 pages but does not actCode: [Select]if(!osc_is_home_page() || (!osc_is_publish_page())) { ?>
<?php if ( (!osc_is_home_page() ) || (!osc_is_publish_page())) { ?>
In wich pages you want to show the search bar?
Sorry, i make a mistake earlier, try this<?php if( !osc_is_home_page() || !osc_is_publish_page() ) { ?>
i don't understand why, can you pass all your search code, so i can try?
<?php if( !osc_is_home_page() || !osc_is_publish_page() ) { ?> <form action="<?php echo osc_base_url(true); ?>" method="get" class="search nocsrf" <?php /* onsubmit="javascript:return doSearch();"*/ ?>> <input type="hidden" name="page" value="search"/> <div class="main-search"> <div class="cell"> <input type="text" name="sPattern" id="query" class="input-text" value="" placeholder="<?php echo osc_esc_html(__(osc_get_preference('keyword_placeholder', 'bender_theme'), 'bender')); ?>" /> </div> <?php if ( osc_count_categories() ) { ?> <div class="cell selector"> <?php osc_categories_select('sCategory', null, __('In tutte le categorie', 'bender')) ; ?> </div> <div class="cell reset-padding"> <?php } else { ?> <div class="cell"> <?php } ?> <button class="ui-button ui-button-big js-submit"><?php _e("Search", 'bender');?></button> </div> </div> <div id="message-seach"></div> </form> <?php } ?>