* * You should have received a copy of the GNU Affero General Public * License along with this program. If not, see <http://www.gnu.org/licenses/>. */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?> "> <head> <?php osc_current_web_theme_path('head.php'); ?> <?php if (osc_is_search_page()) { if (osc_count_items() == 0) { osc_add_filter('meta_robots', 'meta_robots_custom'); function meta_robots_custom() { return 'noindex, nofollow'; } } } ?> <meta name="robots" content="<?php echo osc_apply_filter('meta_robots', 'index, follow'); ?> " /> <meta name="googlebot" content="<?php echo osc_apply_filter('meta_robots', 'index, follow');
function allSeo_keywords_filter($text) { // Listing page if (osc_is_ad_page() and GetItemKeywords() != '') { $text = GetItemKeywords(); } // Static page if (osc_is_static_page() and GetPageKeywords() != '') { $text = GetPageKeywords(); } // Search & Category page if (osc_is_search_page()) { $category = osc_search_category_id(); if (isset($category[0]) && GetCatKeywords($category[0]) != '') { $text = GetCatKeywords($category[0]); } $text .= GetCtrKeywords(osc_search_country()) ? ', ' . GetCtrKeywords(osc_search_country()) : ''; $text .= GetRegKeywords(osc_search_region()) ? ', ' . GetRegKeywords(osc_search_region()) : ''; } if (osc_get_preference('allSeo_keywords', 'plugin-all_in_one') != '') { if ($text != '') { $text .= ', '; } $text .= osc_get_preference('allSeo_keywords', 'plugin-all_in_one'); } return $text; }
osc_add_hook('theme_delete_pop', 'pop_delete'); osc_admin_menu_appearance(__('Theme settings', 'pop'), osc_admin_render_theme_url('oc-content/themes/pop/admin/settings.php'), 'settings_pop'); osc_admin_menu_appearance(__('Header logo', 'pop'), osc_admin_render_theme_url('oc-content/themes/pop/admin/header.php'), 'header_pop'); osc_admin_menu_appearance(__('Color settings', 'pop'), osc_admin_render_theme_url('oc-content/themes/pop/admin/color_settings.php'), 'settings_color_pop'); /** TRIGGER FUNCTIONS */ check_install_pop_theme(); if (osc_is_home_page()) { osc_add_hook('inside-main', 'pop_draw_categories_list'); } else { if (osc_is_static_page() || osc_is_contact_page()) { osc_add_hook('before-content', 'pop_draw_categories_list'); } } if (osc_is_home_page() || osc_is_search_page()) { pop_add_body_class('has-searchbox'); } function pop_sidebar_category_search($catId = null) { $aCategories = array(); if ($catId == null) { $aCategories[] = Category::newInstance()->findRootCategoriesEnabled(); } else { // if parent category, only show parent categories $aCategories = Category::newInstance()->toRootTree($catId); end($aCategories); $cat = current($aCategories); // if is parent of some category $childCategories = Category::newInstance()->findSubcategoriesEnabled($cat['pk_i_id']); if (count($childCategories) > 0) {
$loopClass = View::newInstance()->_get('listClass'); } ?> <div class="masonry"><?php echo Params::getParam('page'); ?> <?php if ((osc_is_search_page() || osc_is_home_page()) && Params::getParam('hook') != 'load_more_listing') { ?> <div class="item stamp sidebar"> <?php require WebThemes::newInstance()->getCurrentThemePath() . 'inc.search.filters.php'; ?> </div> <?php if (osc_is_search_page() && Params::getParam('hook') != 'load_more_listing') { ?> <div class="item stamp stamp-alert"> <?php require WebThemes::newInstance()->getCurrentThemePath() . 'inc.alert.form.php'; ?> </div> <?php } ?> <?php } ?> <?php // get premium ads if (!osc_is_list_items() && !osc_is_public_profile()) {
function meta_keywords() { $text = ''; // search if (osc_is_search_page()) { if (osc_has_items()) { $keywords = array(); $keywords[] = osc_item_category(); if (osc_item_city() != '') { $keywords[] = osc_item_city(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_city()); } if (osc_item_region() != '') { $keywords[] = osc_item_region(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_region()); } if (osc_item_city() != '' && osc_item_region() != '') { $keywords[] = sprintf('%s %s %s', osc_item_category(), osc_item_region(), osc_item_city()); $keywords[] = sprintf('%s %s', osc_item_region(), osc_item_city()); } $text = implode(', ', $keywords); } osc_reset_items(); } // listing if (osc_is_ad_page()) { $keywords = array(); $keywords[] = osc_item_category(); if (osc_item_city() != '') { $keywords[] = osc_item_city(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_city()); } if (osc_item_region() != '') { $keywords[] = osc_item_region(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_region()); } if (osc_item_city() != '' && osc_item_region() != '') { $keywords[] = sprintf('%s %s %s', osc_item_category(), osc_item_region(), osc_item_city()); $keywords[] = sprintf('%s %s', osc_item_region(), osc_item_city()); } $text = implode(', ', $keywords); } return osc_apply_filter('meta_keywords_filter', $text); }
"> <?php _e("Publish your ad for free", OSCLASSWIZARDS_THEME_FOLDER); ?> </a> </li> <?php } ?> </ul> <?php echo '<div class="copyright">' . sprintf(__('Bikade @ Your College by <a target="_blank" title="osclasswizards" href="%s">Mercury S.T.A.R Labs Pvt. Ltd.</a>', OSCLASSWIZARDS_THEME_FOLDER), 'http://www.mercurytech.in/') . '</div>'; ?> </div> </div> </footer> <?php osc_run_hook('footer'); if (osc_is_ad_page() || osc_is_search_page()) { ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=498033263566934&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php } ?> </body></html>
function seo_meta_keywords_filter() { $text = ''; //home page if (osc_is_home_page()) { if (osc_get_preference('seo_metakeywords_home', 'seo_plugin')) { $text = osc_get_preference('seo_metakeywords_home', 'seo_plugin'); } } // static page if (osc_is_static_page()) { if (osc_get_preference('seo_metakeywords_page_' . osc_static_page_id(), 'seo_plugin')) { $text = osc_get_preference('seo_metakeywords_page_' . osc_static_page_id(), 'seo_plugin'); } } //contact page if (osc_is_contact_page()) { if (osc_get_preference('seo_metakeywords_page_contact', 'seo_plugin')) { $text = osc_get_preference('seo_metakeywords_page_contact', 'seo_plugin'); } } // search if (osc_is_search_page()) { if (osc_has_items()) { $keywords = array(); $keywords[] = osc_item_category(); if (osc_item_city() != '') { $keywords[] = osc_item_city(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_city()); } if (osc_item_region() != '') { $keywords[] = osc_item_region(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_region()); } if (osc_item_city() != '' && osc_item_region() != '') { $keywords[] = sprintf('%s %s %s', osc_item_category(), osc_item_region(), osc_item_city()); $keywords[] = sprintf('%s %s', osc_item_region(), osc_item_city()); } $text = implode(', ', $keywords); } osc_reset_items(); } // listing if (osc_is_ad_page()) { $detail = seo_get_row(osc_item_id()); if (empty($detail['seo_item_meta_keywords'])) { $keywords = array(); $keywords[] = osc_item_category(); if (osc_item_city() != '') { $keywords[] = osc_item_city(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_city()); } if (osc_item_region() != '') { $keywords[] = osc_item_region(); $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_region()); } if (osc_item_city() != '' && osc_item_region() != '') { $keywords[] = sprintf('%s %s %s', osc_item_category(), osc_item_region(), osc_item_city()); $keywords[] = sprintf('%s %s', osc_item_region(), osc_item_city()); } $text = implode(', ', $keywords); } else { $text = $detail['seo_item_meta_keywords']; } } return $text; }
function add_default_bodyclasses() { if (osc_is_ad_page()) { echo 'ad-page'; } if (osc_is_search_page()) { echo 'search-page'; } if (osc_is_static_page()) { echo 'static-page'; } if (osc_is_home_page()) { echo 'home-page'; } if (osc_is_user_dashboard()) { echo 'user-dashboard'; } if (osc_is_publish_page()) { echo 'publish-page'; } if (osc_is_login_form()) { echo 'login-form'; } if (osc_is_contact_page()) { echo 'contact-form'; } if (Params::getParam('action') == 'send_friend') { echo 'send-friend'; } if (Params::getParam('action') == 'contact') { echo 'item-contact'; } }