Esempio n. 1
0
        <?php 
} else {
    $data = array();
    $estates = array();
    foreach ($query->result() as $row) {
        if (get_settings('realestate_settings', 'hide_posts_if_expired', 'No') == 'Yes') {
            $is_expired = is_user_package_expired($row->created_by);
            if ($is_expired) {
                continue;
            }
        }
        $title = get_title_for_edit_by_id_lang($row->id, $curr_lang);
        $estate = array();
        $estate['estate_id'] = $row->id;
        $estate['estate_title'] = $title;
        $estate['featured_image_url'] = get_featured_photo_by_id($row->featured_img);
        $estate['latitude'] = $row->latitude;
        $estate['longitude'] = $row->longitude;
        $estate['estate_type'] = $row->type;
        $estate['estate_type_lang'] = lang_key($row->type);
        $estate['estate_status'] = $row->status;
        $estate['estate_price'] = show_price($row->total_price);
        $estate['estate_short_address'] = get_location_name_by_id($row->city) . ',' . get_location_name_by_id($row->state) . ',' . get_location_name_by_id($row->country);
        $estate['detail_link'] = site_url('property/' . $row->unique_id . '/' . dbc_url_title($title));
        array_push($estates, $estate);
    }
    $data['estates'] = $estates;
}
?>
<style>
    #pac-input-<?php 
} else {
    foreach ($posts->result() as $post) {
        $title = get_blog_data_by_lang($post, 'title');
        $desc = get_blog_data_by_lang($post, 'desc');
        ?>

                    <!-- Blog item starts -->
                    <div class="blog-one-item row">
                        <!-- blog One Img -->
                        <div class="blog-one-img col-md-3 col-sm-3 col-xs-12">
                            <!-- Image -->
                            <a href="<?php 
        echo site_url('post-detail/' . $post->id . '/' . dbc_url_title($title));
        ?>
"><img src="<?php 
        echo get_featured_photo_by_id($post->featured_img);
        ?>
" alt="" class="img-responsive img-thumbnail" /></a>
                        </div>
                        <!-- blog One Content -->
                        <div class="blog-one-content  col-md-9 col-sm-9 col-xs-12">
                            <!-- Heading -->
                            <h3><a href="<?php 
        echo site_url('post-detail/' . $post->id . '/' . dbc_url_title($title));
        ?>
"><?php 
        echo $title;
        ?>
</a></h3>
                            <!-- Blog meta -->
                            <div class="blog-meta">
Esempio n. 3
0
        $title = get_title_for_edit_by_id_lang($row->id, $curr_lang);
        ?>
            <div class="col-md-12  facility <?php 
        echo $pclass;
        ?>
">
                <div class="thumbnail thumb-shadow">
                <div style="margin-top:10px"></div>
                    <div class="col-md-3 col-sm-3">
                        <div class="property-header">
                            <a href="<?php 
        echo site_url('property/' . $row->unique_id . '/' . dbc_url_title($title));
        ?>
"></a>
                            <img class="property-header-image" src="<?php 
        echo get_featured_photo_by_id($row->featured_img);
        ?>
" alt="<?php 
        echo character_limiter($title, 20);
        ?>
" style="width:100%">
                            <?php 
        if ($row->estate_condition == 'DBC_CONDITION_SOLD') {
            ?>
                            <span class="property-contract-type sold"><span><?php 
            echo lang_key('DBC_CONDITION_SOLD');
            ?>
</span>
                            <?php 
        } elseif ($row->estate_condition == 'DBC_CONDITION_RENTED') {
            ?>
Esempio n. 4
0
       <div class="box-content">

            
            <h4><?php 
echo lang_key('featured_image');
?>
 :</h4>
            
            <div class="form-group">
                <label class="col-sm-3 col-lg-2 control-label">&nbsp;</label>
                <div class="col-sm-4 col-lg-5 controls">
                    <?php 
$featured_img = set_value('featured_img') != '' ? set_value('featured_img') : $estate->featured_img;
?>
                    <img class="thumbnail" id="featured_photo" src="<?php 
echo get_featured_photo_by_id($featured_img);
?>
" style="width:256px;">
                </div>
                <div class="clearfix"></div>                   
                <span id="featured-photo-error"></span> 
            </div>

            <div class="form-group">
                <label class="col-sm-3 col-lg-2 control-label"><?php 
echo lang_key('featured_image');
?>
:</label>
                <div class="col-sm-4 col-lg-5 controls">                    
                    <input type="hidden" name="featured_img" id="featured_photo_input" value="<?php 
echo $featured_img;
 function prepare_map_json_from_query($query)
 {
     $CI = get_instance();
     $data = array();
     $posts = array();
     $i = 0;
     foreach ($query->result() as $row) {
         $i++;
         $post = array();
         $post['post_id'] = $row->id;
         $post['post_title'] = get_post_data_by_lang($row, 'title');
         $post['post_purpose'] = '';
         $post['featured_image_url'] = get_featured_photo_by_id($row->featured_img);
         $post['latitude'] = $row->latitude;
         $post['longitude'] = $row->longitude;
         $post['price'] = '';
         $post['rating'] = $row->rating;
         $post['post_short_address'] = get_location_name_by_id($row->city);
         $post['detail_link'] = post_detail_url($row);
         $post['parent_category'] = get_category_title_by_id($row->category);
         $post['fa_icon'] = get_category_fa_icon($row->category);
         if ($i % 3 == 1) {
             $color = "#ed5441";
         } else {
             if ($i % 3 == 2) {
                 $color = "#51d466";
             } else {
                 $color = "#609cec";
             }
         }
         $post['fa_color'] = $color;
         array_push($posts, $post);
     }
     $data['posts'] = $posts;
     return $data;
 }
                <h5><?php 
    echo lang_key($parent->title);
    ?>
</h5>
                <strong class="count">(<?php 
    echo $CI->post_model->count_post_by_category_id($parent->id);
    ?>
)</strong>
            </div>
        </a>
    </header>
    <div class="img-box-6-item category-thumb-img">
        <!-- Image Box #6 Image -->
        <div class="image-style-one">
            <!-- Image -->
            <a href="<?php 
    echo site_url('show/categoryposts/' . $parent->id . '/' . dbc_url_title(lang_key($parent->title)));
    ?>
">    <img src="<?php 
    echo get_featured_photo_by_id($parent->featured_img);
    ?>
" alt="" class="img-responsive">
            </a>
        </div>
    </div>
</div>
<?php 
}
?>
<div class="clearfix"></div>
Esempio n. 7
0
echo theme_url();
?>
/assets/js/lightbox.min.js"></script>
<?php 
$curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en';
?>

<?php 
if ($post->num_rows() <= 0) {
    ?>
    <div class="alert alert-danger">Invalid post id</div>
<?php 
} else {
    $row = $post->row();
    $estate_title = get_title_for_edit_by_id_lang($row->id, $curr_lang);
    $featured_image_path = get_featured_photo_by_id($row->featured_img);
    if ($row->purpose == 'DBC_PURPOSE_SALE') {
        if ($row->estate_condition == 'DBC_CONDITION_SOLD') {
            $property_status = lang_key('DBC_CONDITION_SOLD');
            $purpose_class = 'sold';
        } elseif ($row->estate_condition == 'DBC_CONDITION_RENTED') {
            $property_status = lang_key('DBC_CONDITION_RENTED');
            $purpose_class = 'rented';
        } else {
            $property_status = lang_key('DBC_PURPOSE_SALE');
            $purpose_class = 'sale';
        }
    } else {
        if ($row->purpose == 'DBC_PURPOSE_RENT') {
            if ($row->estate_condition == 'DBC_CONDITION_SOLD') {
                $property_status = lang_key('DBC_CONDITION_SOLD');
Esempio n. 8
0
echo form_error('description');
?>

			</div>

		</div>



		<div style="clear:both"></div>	
            
        <div class="form-group">
            <label class="col-sm-3 col-lg-2 control-label">&nbsp;</label>
            <div class="col-sm-4 col-lg-5 controls">
                <img class="thumbnail" id="featured_photo" src="<?php 
echo get_featured_photo_by_id('');
?>
" style="width:256px;">
            </div>
            <div class="clearfix"></div>                   
            <span id="featured-photo-error"></span> 
        </div>

        <div class="form-group">
            <label class="col-sm-3 col-lg-2 control-label"><?php 
echo lang_key('featured_image');
?>
:</label>
            <div class="col-sm-4 col-lg-5 controls">                    
            	<?php 
$featured_img = isset($page->featured_img) ? $page->featured_img : '';