当前位置: 首页>>代码示例>>PHP>>正文


PHP get_featured_photo_by_id函数代码示例

本文整理汇总了PHP中get_featured_photo_by_id函数的典型用法代码示例。如果您正苦于以下问题:PHP get_featured_photo_by_id函数的具体用法?PHP get_featured_photo_by_id怎么用?PHP get_featured_photo_by_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_featured_photo_by_id函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

        <?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 
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:map_view.php

示例2: foreach

} 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">
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:31,代码来源:article_post.php

示例3: get_title_for_edit_by_id_lang

        $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') {
            ?>
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:list_view.php

示例4: lang_key

       <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;
开发者ID:ageo80,项目名称:test,代码行数:31,代码来源:edit_estate_view.php

示例5: prepare_map_json_from_query

 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;
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:36,代码来源:dbcbusiness_helper.php

示例6: lang_key

                <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>
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:30,代码来源:category_main.php

示例7: theme_url

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');
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:detail_view.php

示例8: form_error

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 : '';
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:post_view.php


注:本文中的get_featured_photo_by_id函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。