" class="form-control input-sm" > <span class="help-inline"> </span> <?php echo form_error('title' . $lang->short_name); ?> </div> </div> <div class="form-group"> <label class="col-sm-3 col-lg-2 control-label"><?php echo lang_key('description'); ?> :</label> <div class="col-sm-7 col-lg-7 controls"> <?php $description = get_description_for_edit_by_id_lang($estate->id, $lang->short_name); $description = set_value('description' . $lang->short_name) != '' ? set_value('description' . $lang->short_name) : $description; ?> <textarea style="min-height:200px" class="form-control wysihtml5" name="description<?php echo $lang->short_name; ?> "><?php echo $description; ?> </textarea> <span class="help-inline"> </span> <?php echo form_error('description' . $lang->short_name); ?> </div> </div>
public function detail($unique_id = '') { $value['post'] = $this->show_model->get_post_by_unique_id($unique_id); if ($value['post']->num_rows() > 0) { $value['distance_info'] = $this->get_existing_distance_info($value['post']->row()->id); } else { $value['distance_info'] = array(); } $data['content'] = load_view('detail_view', $value, TRUE); $data['alias'] = 'detail'; $id = 0; if ($value['post']->num_rows() > 0) { $row = $value['post']->row(); $id = $row->id; $seo['key_words'] = get_post_meta($row->id, 'tags'); } $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en'; $title = get_title_for_edit_by_id_lang($id, $curr_lang); $description = get_description_for_edit_by_id_lang($id, $curr_lang); $data['sub_title'] = $title; $seo['meta_description'] = $description; $data['seo'] = $seo; load_template($data, $this->active_theme); }
public function detail($unique_id = '') { $a = rand(1, 10); $b = rand(1, 10); $c = rand(1, 10) % 3; if ($c == 0) { $operator = '+'; $ans = $a + $b; } else { if ($c == 1) { $operator = 'X'; $ans = $a * $b; } else { if ($c == 2) { $operator = '-'; $ans = $a - $b; } } } $this->session->set_userdata('security_ans', $ans); $value['question'] = $a . " " . $operator . " " . $b . " = ?"; $value['post'] = $this->show_model->get_post_by_unique_id($unique_id); if ($value['post']->num_rows() > 0) { $value['distance_info'] = $this->get_existing_distance_info($value['post']->row()->id); } else { $value['distance_info'] = array(); } $data['content'] = load_view('detail_view', $value, TRUE); $data['alias'] = 'detail'; $id = 0; if ($value['post']->num_rows() > 0) { $row = $value['post']->row(); $id = $row->id; $seo['key_words'] = get_post_meta($row->id, 'tags'); } $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en'; $title = get_title_for_edit_by_id_lang($id, $curr_lang); $description = get_description_for_edit_by_id_lang($id, $curr_lang); $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); }
</ul> <div class="title"><i class="fa fa-home fa-4"></i> <?php echo lang_key('description'); ?> </div> <div class="panel-body"> <?php echo get_description_for_edit_by_id_lang($row->id, $curr_lang); ?> <div class="chart" data-percent="56.4" data-line-width="16" data-loop="false" data-size="188" style="width: 188px; height: 188px; line-height: 188px;"> <span class="h2 step"> A+</span> <canvas width="188" height="188"></canvas></div> </div>
echo $creator_email; ?> </dc:creator> <dc:rights>Copyright <?php echo gmdate("Y", time()); ?> </dc:rights> <admin:generatorAgent rdf:resource="http://www.codeigniter.com/" /> <?php foreach ($posts->result() as $post) { ?> <?php $estate_title = get_title_for_edit_by_id_lang($post->id, $curr_lang); $description = get_description_for_edit_by_id_lang($post->id, $curr_lang); $detail_link = site_url('property/' . $post->unique_id . '/' . url_title($estate_title)); ?> <item> <title><?php echo xml_convert($estate_title); ?> </title> <link><?php echo $detail_link; ?> </link> <guid><?php echo $detail_link; ?>