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.
if( !function_exists('bender_draw_categories_list') ) { function bender_draw_categories_list(){ ?> <?php if(!osc_is_home_page()){ echo '<div class="resp-wrapper">'; } ?> <?php $total_categories = osc_count_categories(); $col1_max_cat = ceil($total_categories/4); ?> <?php if(osc_is_home_page()){ echo '<h1 class="home-title-header">Find What You Are Looking For !</h1>'; }?> <?php osc_goto_first_category(); $i = 0; while ( osc_has_categories() ) { ?> <?php if($i%$col1_max_cat == 0){ if($i > 0) { echo '</div>'; } if($i == 0) { echo '<div class="cell_3 first_cel">'; } else { echo '<div class="cell_3">'; } } ?> <ul class="r-list"> <li> <a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"> <img src="<?php echo osc_current_web_theme_url('icons/maincategoryicons/') . osc_category_name() .'.png' ?>" alt="" title=""/></a> <span class="category <?php echo osc_category_slug() ; ?>"></span> <p><a href="<?php echo osc_search_category_url() ; ?>"> <?php echo osc_category_name() ; ?></a></p> <?php /**/if ( osc_count_subcategories() > 0 ) { ?> <ul class="category"> <?php while ( osc_has_subcategories() ) { ?> <li> <?php if( osc_category_total_items() > 0 ) { ?><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <?php } else { ?><span><?php echo osc_category_name() ; ?></span></li> <?php } ?> <?php } ?> </ul><br /> <?php } ?> </li> </ul> <?php $i++; } echo '</div>'; ?> <script> $('.category').find('li:gt(4)').addClass('toggletr').hide() .end().append( $('<ul><li class="show_more_btn"><a></a></li></ul>').click(function(){ $(this).siblings('.toggletr').toggle(); if($(this).hasClass('expanded')){ $(this).text(); $(this).removeClass('expanded'); } else{ $(this).text(); $(this).addClass('expanded'); } }) ); </script> <?php if(!osc_is_home_page()){ echo '</div>'; } ?> <?php } }
<?php /**/if ( osc_count_subcategories() > 0 ) { ?> <ul class="category"> <?php while ( osc_has_subcategories() ) { ?> <li> <?php if( osc_category_total_items() > 0 ) { ?><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <?php } else { ?><span><?php echo osc_category_name() ; ?></span></li> <?php } ?> <?php } ?> </ul><br /> <?php } ?>
<a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"> <img src="<?php echo osc_current_web_theme_url('icons/maincategoryicons/') . osc_category_name() .'.png' ?>" alt="" title=""/></a>
thanks for the reply but i got error