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


PHP lang_key函数代码示例

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


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

示例1: activate

 public function activate()
 {
     if (constant("ENVIRONMENT") == 'demo') {
         $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
     } else {
         $this->themes_model->activate();
         $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('theme_activated') . '</div>');
     }
     redirect(site_url('admin/themes'));
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:10,代码来源:themes_core.php

示例2: get_locations_region_json

 function get_locations_region_json($type, $parent)
 {
     $this->db->select('*');
     $this->db->from('locations');
     $this->db->where(array('status' => 1, 'type' => $type, 'parent' => $parent));
     $this->db->order_by('name', 'ASC');
     $query = $this->db->get();
     $data = array();
     $str = '<option value="" selected="selected">' . lang_key('Select Region') . '</option>';
     foreach ($query->result() as $row) {
         $val = array();
         $val['id'] = $row->id;
         $val['label'] = $row->name;
         $str .= '<option value="' . $val['label'] . '">' . lang_key($val['label']) . '</option>';
     }
     return $str;
 }
开发者ID:firastunsi,项目名称:oskon,代码行数:17,代码来源:realestate_model.php

示例3: sort_url

function sort_url($lang, $by, $sort, $sorder, $code, $admin_folder)
{
    if ($sort == $by) {
        if ($sorder == 'asc') {
            $sort = 'desc';
            $icon = ' <i class="icon-chevron-up"></i>';
        } else {
            $sort = 'asc';
            $icon = ' <i class="icon-chevron-down"></i>';
        }
    } else {
        $sort = 'asc';
        $icon = '';
    }
    $return = site_url($admin_folder . '/products/index/' . $by . '/' . $sort . '/' . $code);
    echo '<a href="' . $return . '">' . lang_key($lang) . $icon . '</a>';
}
开发者ID:ageo80,项目名称:test,代码行数:17,代码来源:products.php

示例4: update_password

 function update_password()
 {
     if ($this->session->userdata('recovery') != 'yes') {
         $this->form_validation->set_rules('current_password', 'Current Password', 'required|callback_currentpass_check');
     }
     $this->form_validation->set_rules('new_password', 'New Password', 'required|matches[re_password]');
     $this->form_validation->set_rules('re_password', 'Password Confirmation', 'required');
     if ($this->form_validation->run() == FALSE) {
         $this->changepass();
     } else {
         if (constant("ENVIRONMENT") == 'demo') {
             $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
         } else {
             $password = $this->input->post('new_password');
             $this->auth_model->update_password($password);
             $this->session->set_userdata('recovery', "no");
             $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('Password changed successfully') . '</div>');
         }
         redirect(site_url('admin/auth/changepass'));
     }
 }
开发者ID:firastunsi,项目名称:oskon,代码行数:21,代码来源:auth_core.php

示例5: create_review

 public function create_review()
 {
     $this->form_validation->set_rules('comment', lang_key('comment'), 'required');
     if ($this->form_validation->run() == FALSE) {
         $this->load_review_form($this->input->post('post_id'));
     } else {
         $post_id = $this->input->post('post_id');
         $data = array();
         $data['comment'] = $this->input->post('comment');
         $data['post_id'] = $post_id;
         $data['rating'] = $this->input->post('rating');
         $data['created_by'] = get_id_by_username($this->session->userdata('user_name'));
         $time = time();
         $data['status'] = 1;
         $data['create_time'] = $time;
         $review_id = $this->review_model->insert_review($data);
         $average_rating = get_post_average_rating($post_id);
         $this->review_model->update_post_average_rating($post_id, $average_rating);
         echo '<div class="alert alert-success">' . lang_key('review_submitted') . '</div>';
         $this->load_review_form($post_id);
         // $this->single_review_view($review_id);
     }
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:23,代码来源:review_core.php

示例6: get_current_page

<!DOCTYPE html>

<html lang="en">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta charset="utf-8">

    <?php 
$page = get_current_page();
if (!isset($sub_title)) {
    $sub_title = isset($page['title']) ? $page['title'] : lang_key('list_your_ad');
}
$seo = isset($page['seo_settings']) && $page['seo_settings'] != '' ? (array) json_decode($page['seo_settings']) : array();
if (!isset($meta_desc)) {
    $meta_desc = isset($seo['meta_description']) ? $seo['meta_description'] : get_settings('site_settings', 'meta_description', 'autocon car dealership');
}
if (!isset($key_words)) {
    $key_words = isset($seo['key_words']) ? $seo['key_words'] : get_settings('site_settings', 'key_words', 'car dealership,car listing, house, car');
}
if (!isset($crawl_after)) {
    $crawl_after = isset($seo['crawl_after']) ? $seo['crawl_after'] : get_settings('site_settings', 'crawl_after', 3);
}
?>

    <?php 
if (isset($post)) {
    echo isset($post) ? social_sharing_meta_tags_for_post($post) : '';
} elseif (isset($blog_meta)) {
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:31,代码来源:template_view.php

示例7: foreach

    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 
echo $map_id;
?>
 {
        background-color: #fff;
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:map_view.php

示例8: site_url

"><i class="fa fa-th "></i></a>
        	<a target="featured-posts" href="<?php 
echo site_url('show/featuredposts_ajax/' . $per_page . '/list');
?>
"><i class="fa fa-th-list "></i></a>
        </div>
    </h3>
</div>
<span class="featured-posts">
</span>
<div class="ajax-loading featured-loading"><img src="<?php 
echo theme_url();
?>
/assets/img/loading.gif" alt="loading..."></div>
<a href="" class="load-more-featured btn btn-blue" style="width:100%"><?php 
echo lang_key('load_more_featured_posts');
?>
</a>
<div style="clear:both;margin-top:20px"></div>
<script type="text/javascript">
var per_page = '<?php 
echo $per_page;
?>
';
var featured_count = '<?php 
echo $per_page;
?>
';

jQuery(document).ready(function(){
	jQuery('.featured-list-switcher a').click(function(e){
开发者ID:priyranjansingh,项目名称:classified,代码行数:31,代码来源:featured_posts_main.php

示例9: lang_key

</div>



<div id="position-instruction" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">

    <div class="modal-dialog">

        <div class="modal-content">

            <div class="modal-header">

                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

                <h4 class="modal-title" id="myModalLabel"><?php 
echo lang_key('widget_positions');
?>
 </h4>

            </div>

            <div class="modal-body">
                <img src="<?php 
echo base_url('assets/admin/img/position-one.png');
?>
" style="width:100%" />
            </div>

            <div class="modal-footer">

            </div>
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:31,代码来源:widgetpositions_view.php

示例10: lang_key

<h3 class="widget-title"><?php 
echo lang_key('Follow Us');
?>
</h3>
<div class="widget-body">
    <p class="follow-me-icons">
       <a href=""><i class="fa fa-facebook fa-2"></i></a>
        <a href=""><i class="fa fa-twitter fa-2"></i></a>
        <a href=""><i class="fa fa-google-plus fa-2"></i></a>
<!--        <a href="<?php 
//echo site_url("show/rss");
?>
"><i class="fa fa-rss fa-2"></i></a>-->
    </p>    
</div>
<?php 
/*if(@file_exists('./sitemap.xml')){?>
    <h3 class="widget-title">Site Map</h3>
    <a href="<?php //echo site_url('show/sitemap')?>"> Show site map</a>
<?php }*/
开发者ID:firastunsi,项目名称:oskon,代码行数:20,代码来源:follow_us.php

示例11: base64_encode

$current_url = base64_encode(current_url() . '/#data-content');
?>
          <div class="<?php 
if ($this->session->userdata('view_style') == 'grid') {
    ?>
col-md-9<?php 
} else {
}
?>
"  style="-webkit-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out;">
              
              <?php 
if ($this->session->userdata('view_style') != 'map') {
    ?>
                <h1 class="recent-grid"><span class="OS_icon_f"><i class="fa fa-search fa-4"></i></span>&nbsp;<?php 
    echo lang_key('result');
    ?>
                    <?php 
    //require'switcher_view.php';
    ?>
                </h1>
              <?php 
} else {
    ?>
                <?php 
    //require'switcher_view.php';
    ?>
              <?php 
}
?>
              
开发者ID:firastunsi,项目名称:oskon,代码行数:30,代码来源:adsearch_view.php

示例12: lang_key

" placeholder="<?php 
echo lang_key('fa-car');
?>
" class="form-control input-sm" >
						<?php 
echo form_error('fa_icon');
?>

					</div>
				</div>	

				<div class="form-group">
					<label class="col-sm-3 col-md-3 control-label">&nbsp;</label>
					<div class="col-sm-4 col-md-4 controls">						
						<button class="btn btn-primary" type="submit"><i class="fa fa-check"></i> <?php 
echo lang_key('save');
?>
</button>
					</div>
				</div>


			</form>

	  </div>
    </div>
  </div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
	jQuery('#parent').change(function(){
开发者ID:priyranjansingh,项目名称:classified,代码行数:31,代码来源:newcategory_view.php

示例13: lang_key

<div class="alert alert-danger">
    <button type="button" class="close" data-dismiss="alert">&times;</button>
    <strong>Warning!</strong> <?php 
echo lang_key('delete_warning');
?>

</div>
<a href="<?php 
echo $url . "/{$id}/yes";
?>
" class="btn btn-success"><?php 
echo lang_key('yes');
?>
</a><a href="<?php 
echo $url . "/{$id}/no";
?>
" class="btn btn-inverse" style="margin-left:10px;"><?php 
echo lang_key('no');
?>
</a>
开发者ID:priyranjansingh,项目名称:classified,代码行数:20,代码来源:confirmation_view.php

示例14: default_lang

            </a>

            <?php 
if ($CI->uri->segment(1) == '') {
    $uri .= '/' . default_lang();
}
echo '<ul class="dropdown-menu dropdown-navbar" id="user_menu2">';
$url = $uri;
foreach ($languages as $short_name => $long_name) {
    $uri = str_replace('/' . $curr_lang . '/', '/' . $short_name . '/', $url);
    $sel = $curr_lang == $short_name ? 'active' : '';
    echo '<li class="' . $sel . '"><a href="' . $uri . '">' . $long_name . '</a></li>';
}
echo '</ul>';
?>

        </li>
		<li>
			<a href="<?php 
echo site_url();
?>
">
				<i class="fa fa-laptop"></i>
				<span class="hhh user_info"><?php 
echo lang_key("visit_site");
?>
</span>
			</a>
		</li>
	</ul>
</div>
开发者ID:priyranjansingh,项目名称:classified,代码行数:31,代码来源:header.php

示例15: form_error

echo form_error('user_email');
?>
                        <hr>

                        <div class="row">
                            <div class="col-lg-8">
                                <label class="checkbox">
                                    <a target="_blank" href="<?php 
echo site_url('account/signup');
?>
"><?php 
echo lang_key('sign_up');
?>
</a>
                                </label>
                            </div>
                            <div class="col-lg-4 text-right">
                                <button class="btn btn-action" type="submit"><?php 
echo lang_key('recover');
?>
</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div> <!-- /row -->
</div>

开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:29,代码来源:recover_view.php


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