function pop_get_listing_map_image($item_id)
{
    return osc_uploads_url($item_id . '_map.png');
}
Example #2
0
 function osclasswizards_homeimage_url()
 {
     $logo = osc_get_preference('homeimage', 'osclasswizards_theme');
     if ($logo) {
         return osc_uploads_url($logo);
     }
     return false;
 }
<?php

$map_image = str_replace(osc_uploads_url(), osc_uploads_path(), pop_get_listing_map_image(osc_item_id()));
if (!file_exists($map_image)) {
    pop_listing_location_img(osc_item());
}
// meta tag robots
osc_add_hook('header', 'pop_follow_construct');
pop_add_body_class('item');
osc_enqueue_script('jquery-validate');
osc_enqueue_script('jquery-bxslider');
osc_enqueue_style('jquery-bxslider-css', osc_current_web_theme_url('css/jquery.bxslider.css'));
View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id()));
?>

<?php 
osc_current_web_theme_path('header.php');
$class = '';
if (osc_count_item_resources() == 0) {
    $class = "no-image";
}
?>
<div class="box photos <?php 
echo $class;
?>
">
    <div class="photos-slider">
        <?php 
if (osc_count_item_resources() > 0) {
    ?>
            <ul class="bxslider">
Example #4
0
 function bender_logo_url()
 {
     $logo = osc_get_preference('logo', 'bender');
     if ($logo) {
         return osc_uploads_url($logo);
     }
     return false;
 }
Example #5
0
 function flatter_logo_url()
 {
     $logo = osc_get_preference('logo', 'flatter_theme');
     if ($logo) {
         return osc_uploads_url($logo);
     }
     return false;
 }
Example #6
0
 function osclassclsx_logo_url()
 {
     $logo = osc_get_preference('logo', 'osclassclsx');
     if ($logo) {
         return osc_uploads_url($logo);
     }
     return false;
 }