• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_post_data_by_lang函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: detail

 public function detail($unique_id = '')
 {
     $value = array();
     $this->load->model('user/post_model');
     $value['post'] = $this->post_model->get_post_by_unique_id($unique_id);
     $data['content'] = load_view('detail_view', $value, TRUE);
     $data['alias'] = 'detail';
     $id = 0;
     $status = 1;
     if ($value['post']->num_rows() > 0) {
         $row = $value['post']->row();
         $status = $row->status;
         $id = $row->id;
         $seo['key_words'] = $row->tags;
         $title = get_post_data_by_lang($row, 'title');
         $description = get_post_data_by_lang($row, 'description');
         $this->post_model->inc_view_count_by_unique_id($unique_id);
     }
     if ($status != 1) {
         $this->output->set_status_header('404');
         $data['content'] = load_view('404_view', '', TRUE);
         load_template($data, $this->active_theme, 'template_view');
     } else {
         $data['sub_title'] = $title;
         $description = strip_tags($description);
         $description = str_replace("'", "", $description);
         $description = str_replace('"', "", $description);
         $seo['meta_description'] = $description;
         $data['seo'] = $seo;
         load_template($data, $this->active_theme);
     }
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:32,代码来源:show_core.php


示例2: post_detail_url

 function post_detail_url($post)
 {
     $CI =& get_instance();
     $url = site_url('ads/' . $post->unique_id);
     #never remove this line
     $url .= '/' . dbc_url_title(get_category_title_by_id($post->category));
     $url .= '/' . dbc_url_title(get_post_data_by_lang($post, 'title'));
     return $url;
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:9,代码来源:MY_url_helper.php


示例3: post_detail_url

                        <a href="<?php 
        echo post_detail_url($post);
        ?>
"><img class="img-responsive img-thumbnail" src="<?php 
        echo get_featured_photo_by_id($post->featured_img);
        ?>
" alt="<?php 
        echo get_post_data_by_lang($post, 'title');
        ?>
" /></a>
                        <!-- Heading -->
                        <h4><a href="<?php 
        echo post_detail_url($post);
        ?>
"><?php 
        echo get_post_data_by_lang($post, 'title');
        ?>
</a></h4>
                        <!-- Price -->
                        <div class="price"><strong><?php 
        echo lang_key('city');
        ?>
</strong>: <?php 
        echo get_location_name_by_id($post->city);
        ?>
                            <?php 
        $average_rating = $post->rating;
        ?>
                            <?php 
        $half_star_position = check_half_star_position($average_rating);
        ?>
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:31,代码来源:category_featured_post.php


示例4: 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


示例5: Marker

            content: contentString

        });

        var marker, i;

        var markers = [];

        marker = new Marker({

            position: myLatlng,

            map: map,

            title: '<?php 
echo get_post_data_by_lang($post, "title");
?>
',
            zIndex: 9,
            icon: {
                path: SQUARE_PIN,
                fillColor: '#ed5441',
                fillOpacity: 1,
                strokeColor: '',
                strokeWeight: 0,
                scale: 1/3
            },
            label: '<i class="fa <?php 
echo $fa_icon;
?>
"></i>'
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:31,代码来源:detail_view.php


示例6: form_error

" class="form-control">
                                <?php 
    echo form_error('title_' . $lang);
    ?>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-md-3 control-label"><?php 
    echo lang_key('description');
    ?>
</label>
                            <div class="col-md-8">
                                <?php 
    $v = set_value('description_' . $lang) != '' ? set_value('description_' . $lang) : get_post_data_by_lang($post, 'description', $lang);
    ?>
                                <textarea rows="15" name="description_<?php 
    echo $lang;
    ?>
" class="form-control rich"><?php 
    echo $v;
    ?>
</textarea>
                                <?php 
    echo form_error('description_' . $lang);
    ?>
                            </div>
                        </div>

                    
开发者ID:priyranjansingh,项目名称:classified,代码行数:29,代码来源:edit_ad_view.php


示例7: site_url

</a> &nbsp;
				<!-- Comments -->
				<a href="<?php 
        echo site_url('location-posts/' . $post->city . '/city/' . dbc_url_title(get_location_name_by_id($post->city)));
        ?>
"><i class="fa fa-map-marker"></i> &nbsp; <?php 
        echo get_location_name_by_id($post->city);
        ?>
</a> &nbsp;

				<i class="fa fa-calendar"></i> &nbsp; <?php 
        echo date('M d, Y', $post->create_time);
        ?>
			</div>
			<!-- Paragraph -->
			<p><?php 
        echo truncate(strip_tags(get_post_data_by_lang($post, 'description')), 200, '', false);
        ?>
</p>
		</div>
		<div class="clearfix"></div>
	</div>
	<?php 
    }
}
?>

</div>
<div class="clearfix"></div>
<?php 
echo isset($pages) ? '<ul class="pagination">' . $pages . '</ul>' : '';
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:31,代码来源:list_view.php


示例8: lang_key

        ?>
</td>

                  <td data-title="<?php 
        echo lang_key('image');
        ?>
" class="numeric"><img class="thumbnail" style="width:50px;margin-bottom:0px;" src="<?php 
        echo get_featured_photo_by_id($row->featured_img);
        ?>
" /></td>

                  <td data-title="<?php 
        echo lang_key('title');
        ?>
" class="numeric"><?php 
        echo get_post_data_by_lang($row, 'title');
        ?>
</td>

                  <td data-title="<?php 
        echo lang_key('category');
        ?>
" class="numeric"><?php 
        echo get_category_title_by_id($row->category);
        ?>
</td>

                  <td data-title="<?php 
        echo lang_key('price');
        ?>
" class="numeric"><?php 
开发者ID:priyranjansingh,项目名称:classified,代码行数:31,代码来源:all_posts_view.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_post_embed_html函数代码示例发布时间:2022-05-15
下一篇:
PHP get_post_data函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap