function pop_meta_image()
{
    $url = pop_logo_url();
    // listing
    if (osc_is_ad_page()) {
        if (osc_has_item_resources()) {
            $url = osc_resource_thumbnail_url();
        }
    }
    return osc_apply_filter('pop_meta_image_filter', $url);
}
Пример #2
0
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);
}
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;
}
Пример #4
0
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;
}
Пример #5
0
">
          <?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>
Пример #6
0
function osclass_pm_link($class = '')
{
    if (osc_is_ad_page() && osc_is_web_user_logged_in() && osc_item_user_id() != '') {
        $user = User::newInstance()->findByPrimaryKey(osc_item_user_id());
        echo '<a class="' . $class . '" href="' . osc_base_url(true) . '?page=custom&file=osclass_pm/user-send.php&userId=' . osc_item_user_id() . '&itemId=' . osc_item_id() . '&mType=new">Postavi pitanje prodavcu </a>';
    } elseif (osc_is_ad_page() && !osc_is_web_user_logged_in()) {
        $user = User::newInstance()->findByPrimaryKey(osc_item_user_id());
        echo '<a class="' . $class . '" href="' . osc_user_login_url() . '&http_referer=' . osc_base_url(true) . '?page=custom&file=osclass_pm/user-send.php&userId=' . osc_item_user_id() . '&itemId=' . osc_item_id() . '&mType=new">' . __('Login to contact seller.', 'osclass_pm') . '</a>';
    }
}
Пример #7
0
 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';
     }
 }
Пример #8
0
<meta name="description" content="<?php 
        echo osc_esc_html(meta_description());
        ?>
" /><?php 
    }
    if (meta_keywords() != '') {
        ?>
<meta name="keywords" content="<?php 
        echo osc_esc_html(meta_keywords());
        ?>
" /><?php 
    }
}
osc_add_hook('osclasswizards_head', 'osclasswizards_meta');
//remove default item title and meta tags
if (function_exists('ocw_seo_item_meta') && osc_is_ad_page()) {
    osc_remove_hook('osclasswizards_head', 'osclasswizards_meta');
}
//add favicon
osc_add_hook('osclasswizards_head', 'osclasswizards_favicon');
//footer css
function osclasswizards_footer_css()
{
    echo '<link href="' . osc_current_web_theme_url('css/apps.css') . '" rel="stylesheet" type="text/css" />';
    osclasswizards_add_google_fonts();
    $custom_css = trim(osc_get_preference('custom_css', 'osclasswizards_theme'));
    if ($custom_css != "") {
        echo "<style>";
        echo $custom_css;
        echo "</style>";
    }
Пример #9
0
<?php

/**
 * Classified Theme Footer Page
 *
 * @package Osclass
 * @subpackage Classified
 */
if (nc_osc_footer_top_ads_enabled() && !osc_is_ad_page()) {
    ?>
    <div class="container">
        <div class="row">
            <div class="col-md-12 text-center">
                <?php 
    echo nc_osc_get_footer_top_ads();
    ?>
            </div>
        </div>
    </div>
<?php 
}
?>
<!-- footer -->
<div class="footer">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 footer-line">
                <div class="footer1" style="padding-top: 28px; ">
                    <?php 
if (!nc_osc_show_footer_about_us()) {
    ?>
Пример #10
0
} else {
    ?>
    <script type="text/javascript">
		/* Categories Menu Dropdown */
		$(function() {
			$(".dropdown").hover(
				function(){ $(this).addClass('open') },
				function(){ $(this).removeClass('open') }
			);
		});
    </script>
    <?php 
}
?>
    <?php 
if (osc_is_ad_page()) {
    ?>
	<script type="text/javascript">
        $(document).ready(function() {
           
		   $('#pixCarousel').carousel({
				interval: false
			});
			
			// handles the carousel thumbnails
			$('[id^=carousel-selector-]').click( function(){
			  var id_selector = $(this).attr("id");
			  var id = id_selector.substr(id_selector.length -1);
			  id = parseInt(id);
			  $('#pixCarousel').carousel(id);
			  $('[id^=carousel-selector-]').removeClass('selected');