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


PHP dbc_url_title函数代码示例

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


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

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

示例2: get_title_for_edit_by_id_lang

                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 
echo $map_id;
?>
 {
        background-color: #fff;
        padding: 0 11px 0 13px;
        width: 400px;
        font-family: Roboto;
        font-size: 15px;
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:map_view.php

示例3: site_url

            $class = "green";
        } else {
            if ($i % 4 == 3) {
                $class = "orange";
            } else {
                $class = "blue";
            }
        }
    }
    ?>

								<div class="col-md-4 col-sm-4 col-xs-12">
									<!-- counter item -->
									<div class="counter-item">
										<a href="<?php 
    echo site_url('show/categoryposts/' . $parent->id . '/' . dbc_url_title(lang_key($parent->title)));
    ?>
">
										<i class="fa <?php 
    echo $parent->fa_icon . ' ' . $class;
    ?>
"></i>
										</a>
										<!-- Heading -->
										<h4><span class="number-count" data-from="0" data-to="<?php 
    echo $CI->post_model->count_post_by_category_id($parent->id);
    ?>
" data-speed="800" data-refresh-interval="50"></span></h4>
										<!-- Paragraph -->
										<h6><?php 
    echo lang_key($parent->title);
开发者ID:priyranjansingh,项目名称:classified,代码行数:31,代码来源:category_counter.php

示例4: site_url

        } else {
            ?>
                                    <div class="content"><?php 
            echo $row->bedroom;
            ?>
</div>
                                    <?php 
        }
        ?>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div style="clear:both; border-bottom:1px solid #ccc; margin:10px 0px;"></div>
                            <p>
                                <a href="<?php 
        echo site_url('property/' . $row->unique_id . '/' . dbc_url_title($title));
        ?>
" class="btn btn-primary  btn-labeled">
                                    <?php 
        echo lang_key('details');
        ?>
                                    <span class="btn-label btn-label-right">
                                       <i class="fa fa-arrow-right"></i>
                                    </span>
                                </a>
                            </p>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:list_view.php

示例5: date

                            <div class="blog-meta">
                                <!-- Date -->
                                <i class="fa fa-calendar"></i>   <?php 
        echo date('D, M d, Y', $post->create_time);
        ?>
  
                                <!-- Author -->
                                <i class="fa fa-user"></i>   <?php 
        echo get_user_fullname_by_id($post->created_by);
        ?>
</a>

                            </div>
                            <!-- Paragraph -->
                            <p><?php 
        echo truncate(strip_tags($desc), 400, ' <a href="' . site_url('post-detail/' . $post->id . '/' . dbc_url_title($title)) . '">' . lang_key('view_more') . '</a>', false);
        ?>
</p>
                        </div>
                    </div>
                    <!-- Blog item ends -->
                <?php 
    }
}
?>
            <ul class="pagination">
                <?php 
echo isset($pages) ? $pages : '';
?>
            </ul>
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:30,代码来源:article_post.php

示例6: site_url

        ?>
"></a>
                </div-->
                <a href="<?php 
        echo site_url('show/postdetail/' . $post->id . '/' . dbc_url_title($post->title));
        ?>
"><img src="<?php 
        echo get_featured_photo_by_id($post->featured_img);
        ?>
" class="post-thumb"></a>
                <?php 
        echo truncate(strip_tags($post->description), 400, '&nbsp;<a href="' . site_url('show/postdetail/' . $post->id . '/' . dbc_url_title($post->title)) . '">' . lang_key('view_more') . '</a>', false);
        ?>

                <?php 
        $detail_link = site_url('show/postdetail/' . $post->id . '/' . dbc_url_title($post->title));
        ?>
                <div class="follow-agent clearfix">
                    <ul class="social-networks clearfix">
                        <li class="fb">
                            <a href="https://www.facebook.com/sharer/sharer.php?u=<?php 
        echo $detail_link;
        ?>
" target="_blank"><i class="fa fa-facebook fa-lg"></i></a>
                        </li>
                        <li class="twitter">
                            <a href="https://twitter.com/share?url=<?php 
        echo $detail_link;
        ?>
" target="_blank"><i class="fa fa-twitter fa-lg"></i></a>
                        </li>
开发者ID:ageo80,项目名称:test,代码行数:31,代码来源:posts_view.php

示例7: social_sharing_meta_tags_for_blog

 function social_sharing_meta_tags_for_blog($blog_meta = '')
 {
     if ($blog_meta != '') {
         $site_title = get_settings('site_settings', 'site_title', 'Memento');
         $title = get_post_data_by_lang($blog_meta, 'title');
         $detail_link = site_url('post-detail/' . $blog_meta->id . '/' . dbc_url_title($title));
         $image_path = !empty($blog_meta->featured_img) ? base_url() . 'uploads/thumbs/' . $blog_meta->featured_img : base_url() . 'assets/admin/img/preview.jpg';
         $remove_tag_text = !empty($blog_meta->description) ? strip_tags(get_post_data_by_lang($blog_meta, 'description')) : '';
         $description = word_limiter($remove_tag_text, 20, " ");
         $meta = '<meta name="twitter:card" content="photo" />' . "\n" . '<meta name="twitter:site" content="' . $site_title . '" />' . "\n" . '<meta name="twitter:image" content="' . $image_path . '" />' . "\n" . '<meta property="og:title" content="' . $title . '" />' . "\n" . '<meta property="og:site_name" content="' . $site_title . '" />' . "\n" . '<meta property="og:url" content="' . $detail_link . '" />' . "\n" . '<meta property="og:description" content="' . $description . '" />' . "\n" . '<meta property="og:type" content="article" />' . "\n" . '<meta property="og:image" content="' . $image_path . '" />' . "\n" . '<meta property="fb:app_id" content="' . get_settings('memento_settings', 'fb_app_id', 'none') . '" />';
         return $meta;
     } else {
         return '';
     }
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:15,代码来源:dbcbusiness_helper.php

示例8: get_site_map_xml

 function get_site_map_xml()
 {
     $page_checked = $this->input->post('pages');
     $blog_post_checked = $this->input->post('blog_post');
     $estate_checked = $this->input->post('estate');
     $xml_array = array();
     if ($page_checked == 1 or $blog_post_checked == 2 or $estate_checked == 3) {
         if ($page_checked == 1) {
             $menu = get_option('top_menu');
             $menu = json_decode($menu->values);
             $page_url_array = array();
             foreach ($menu as $row) {
                 $id = $row->id;
                 $url = $this->get_page_url_by_id($id);
                 $page_url_array[] = $url;
             }
             if ($page_url_array) {
                 $xml_array = $page_url_array;
             }
         }
         if ($blog_post_checked == 2) {
             $this->load->model('show/show_model');
             $blog_post = $this->show_model->get_all_active_blog_posts_by_range('all', 'all', 'id', 'desc', 'all');
             if ($blog_post->num_rows() > 0) {
                 $blog_post_array = array();
                 foreach ($blog_post->result() as $row) {
                     $post_id = $row->id;
                     $post_title = $row->title;
                     $url = site_url('show/postdetail/' . $post_id . '/' . dbc_url_title($post_title));
                     $blog_post_array[] = $url;
                 }
             }
             if ($blog_post_array) {
                 $xml_array = array_merge($xml_array, $blog_post_array);
             }
         }
         if ($estate_checked == 3) {
             $estate_array = array();
             $this->load->model('realestate_model');
             $estate_data = $this->realestate_model->get_all_estates_admin('all', 'all', 'create_time', 'desc');
             if ($estate_data->num_rows() > 0) {
                 foreach ($estate_data->result() as $row) {
                     $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en';
                     $title = get_title_for_edit_by_id_lang($row->id, $curr_lang);
                     $unique_id = $row->unique_id;
                     $site_title = dbc_url_title($title);
                     //                        $site_title = str_replace('&', '-', $site_title);
                     $site_title = preg_replace('/[^\\p{L}\\s\\p{N}]+/u', '', $site_title);
                     $url = site_url('property/' . $unique_id . '/' . $site_title);
                     $estate_array[] = $url;
                 }
             }
             if ($estate_array) {
                 $xml_array = array_merge($xml_array, $estate_array);
             }
         }
         $xml = $this->prepare_xml($xml_array);
         $this->load->helper('file');
         if (!write_file('./sitemap.xml', $xml)) {
             $this->session->set_flashdata('msg', '<div class="alert alert-danger">ROOT/sitemap.xml does not have write permission .</div>');
             redirect(site_url('admin/system/generatesitemap'));
         }
         $this->session->set_flashdata('msg', '<div class="alert alert-success">Site map generated successfully .</div>');
         redirect(site_url('admin/system/generatesitemap'));
     } else {
         $this->session->set_flashdata('msg', '<div class="alert alert-danger">Please select on or more select options .</div>');
         redirect(site_url('admin/system/generatesitemap'));
     }
 }
开发者ID:firastunsi,项目名称:oskon,代码行数:69,代码来源:system_core.php

示例9: lang_key

?>
<div class="s-widget">
    <!-- Heading -->
    <h5><i class="fa fa-map-marker color"></i>  <?php 
echo lang_key('top_locations');
?>
</h5>
    <!-- Widgets Content -->

    <div class="widget-content categories">
        <ul class="list-6">
            <?php 
foreach ($query->result() as $post) {
    ?>
                <li class="col-xs-12 col-sm-6 col-md-12 col-lg-12"><a href="<?php 
    echo site_url('location-posts/' . $post->city . '/city/' . dbc_url_title(get_location_name_by_id($post->city)));
    ?>
"><?php 
    echo get_location_name_by_id($post->city);
    ?>
 <span dir="rtl" class="color">(<?php 
    echo $post->total;
    ?>
)</span></a></li>
            <?php 
}
?>
        </ul>
    </div>
</div>
<div style="clear:both"></div>
开发者ID:priyranjansingh,项目名称:classified,代码行数:31,代码来源:top_locations_sidebar.php

示例10: lang_key

        $estate_bathroom = '';
        $estate_bathroom_label = '';
    }
    if ($row->category_type == 'DBC_TYPE_RESIDENTIAL') {
        $estate_bedroom = $row->bedroom;
        $estate_bedroom_label = lang_key('Beds');
    } else {
        $estate_bedroom = '';
        $estate_bedroom_label = '';
    }
    $estate_type = $row->type;
    $estate_type_label = lang_key('Type');
    $estate_type_lang = lang_key($row->type);
    $property_address_short = lang_key(get_location_name_by_id($row->city)) . ', ' . lang_key(get_location_name_by_id($row->state)) . ', ' . lang_key(get_location_name_by_id($row->country));
    $property_price = number_format($row->total_price);
    $detail_link = site_url('property/' . $row->unique_id . '/' . dbc_url_title(character_limiter($estate_title, 20)));
    $estate_category_type = $row->category_type;
    $estate_area_label = lang_key('area');
    if ($isAgent == 1) {
        $agentlbl = lang_key('agent');
    } else {
        $agentlbl = lang_key('User');
    }
    ?>
    
<?php 
    $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en';
    if ($curr_lang == 'en') {
        ?>
    <?php 
        $styleL = 'left';
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:detail_view.php

示例11: get_settings

)</span></a></h4>
                <div class="divider-5"></div>
                <div class="clearfix"></div>

                <?php 
        $state_active = get_settings('classified_settings', 'show_state_province', 'yes');
        $child = $state_active == 'yes' ? 'state' : 'city';
        $total_count = 0;
        $locations = $child == 'state' ? get_all_child_of_location('state', $country->id) : get_all_location_of_parent_country('city', $country->id);
        $i = 0;
        foreach ($locations->result() as $location) {
            ?>
            <div class="col-md-4 col-sm-4">
                <ul class="list-2">
                    <li><a href="<?php 
            echo site_url('location-posts/' . $location->id . '/' . $child . '/' . dbc_url_title($location->name));
            ?>
"><?php 
            echo $location->name;
            ?>
 <span dir="rtl">(<?php 
            echo get_post_count_by_location($location->id, $child);
            ?>
)</span></a></li>
                </ul>
            </div>

                <?php 
        }
        ?>
                <div class="clearfix"></div>
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:31,代码来源:location_view.php

示例12: get_site_map_xml

 function get_site_map_xml()
 {
     $page_checked = $this->input->post('pages');
     $blog_post_checked = $this->input->post('blog_post');
     $estate_checked = $this->input->post('estate');
     $xml_array = array();
     if ($page_checked == 1 or $blog_post_checked == 2 or $estate_checked == 3) {
         if ($page_checked == 1) {
             $menu = get_option('top_menu');
             $menu = json_decode($menu->values);
             $page_url_array = array();
             foreach ($menu as $row) {
                 $id = $row->id;
                 $url = $this->get_page_url_by_id($id);
                 $page_url_array[] = $url;
             }
             if ($page_url_array) {
                 $xml_array = $page_url_array;
             }
         }
         if ($blog_post_checked == 2) {
             $this->load->model('show/show_model');
             $blog_post = $this->show_model->get_all_active_blog_posts_by_range('all', 'all', 'id', 'desc', 'all');
             if ($blog_post->num_rows() > 0) {
                 $blog_post_array = array();
                 foreach ($blog_post->result() as $row) {
                     $post_id = $row->id;
                     $post_title = get_blog_data_by_lang($row, 'title');
                     $url = site_url('post-detail/' . $post_id . '/' . dbc_url_title($post_title));
                     $blog_post_array[] = $url;
                 }
             }
             if ($blog_post_array) {
                 $xml_array = array_merge($xml_array, $blog_post_array);
             }
         }
         if ($estate_checked == 3) {
             $estate_array = array();
             $this->load->model('classified_model');
             $estate_data = $this->classified_model->get_all_estates_admin('all', 'all', 'create_time', 'desc');
             if ($estate_data->num_rows() > 0) {
                 foreach ($estate_data->result() as $row) {
                     $url = post_detail_url($row);
                     $estate_array[] = $url;
                 }
             }
             if ($estate_array) {
                 $xml_array = array_merge($xml_array, $estate_array);
             }
         }
         $xml = $this->prepare_xml($xml_array);
         $this->load->helper('file');
         if (!write_file('./sitemap.xml', $xml)) {
             $this->session->set_flashdata('msg', '<div class="alert alert-danger">ROOT/sitemap.xml does not have write permission .</div>');
             redirect(site_url('admin/system/generatesitemap'));
         }
         $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('site_map_generation_success') . '</div>');
         redirect(site_url('admin/system/generatesitemap'));
     } else {
         $this->session->set_flashdata('msg', '<div class="alert alert-danger">' . lang_key('select_option') . '</div>');
         redirect(site_url('admin/system/generatesitemap'));
     }
 }
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:63,代码来源:system_core.php

示例13: editestate

 function editestate($page = 0, $id = '', $msg = '')
 {
     if ($msg == 'error') {
         $msg = '<div class="alert alert-danger">' . lang_key('Missing required feilds. Please check the form below.') . '</div>';
     }
     $value['page'] = $page;
     $value['msg'] = $msg;
     $value['estate'] = $this->realestate_model->get_estate_by_id($id);
     $value['distance_info'] = $this->get_distance_info($id);
     $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : default_lang();
     $title = get_title_for_edit_by_id_lang($value['estate']->id, $curr_lang);
     $detail_link = site_url('property/' . $value['estate']->unique_id . '/' . dbc_url_title($title));
     $data['title'] = 'Edit estate (<a href="' . $detail_link . '" target="_blank">View Detail</a>)';
     $data['content'] = $this->load->view('admin/estate/edit_estate_view', $value, TRUE);
     $this->load->view('admin/template/template_view', $data);
 }
开发者ID:firastunsi,项目名称:oskon,代码行数:16,代码来源:realestate_core.php


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