[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
bem2
/
application
/
controllers
/
[
Home
]
File: Our_works.php
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Our_works extends MY_Controller { /** * --------------------------------------------------------------------------------------------- * ...:::!!! ============================== CONSTRUCTOR ============================== !!!:::... * --------------------------------------------------------------------------------------------- */ /** * Constructor */ public function __construct() { parent::__construct(); $this->viewFolder = "our_works_v"; } /** * --------------------------------------------------------------------------------------------- * ...:::!!! ============================== CONSTRUCTOR ============================== !!!:::... * --------------------------------------------------------------------------------------------- */ /** * ----------------------------------------------------------------------------------------------- * ...:::!!! ================================== ERROR ================================== !!!:::... * ----------------------------------------------------------------------------------------------- */ /** * Error */ public function error() { $this->viewFolder = "404_v/index"; $this->render(); } /** * ----------------------------------------------------------------------------------------------- * ...:::!!! ================================== ERROR ================================== !!!:::... * ----------------------------------------------------------------------------------------------- */ /** * ---------------------------------------------------------------------------------------------------- * ...:::!!! ================================== OUR WORKS =================================== !!!:::... * ---------------------------------------------------------------------------------------------------- */ /** * Our Works */ public function index() { $search = null; if (!empty(clean($this->input->get("search")))) : $search = clean($this->input->get("search")); endif; $config = []; $config['base_url'] = base_url(lang("routes_our-works") . "/"); $config['uri_segment'] = (is_numeric($this->uri->segment(3)) ? 3 : 2); $config['use_page_numbers'] = TRUE; $config["full_tag_open"] = "<ul class='pg-pagination list-unstyled justify-content-center'>"; $config["first_link"] = "<i class='fa fa-angles-left'></i>"; $config["first_tag_open"] = "<li class='prev'>"; $config["first_tag_close"] = "</li>"; $config["prev_link"] = "<i class='fa fa-angle-left'></i>"; $config["prev_tag_open"] = "<li class='prev'>"; $config["prev_tag_close"] = "</li>"; $config["cur_tag_open"] = "<li class='count active'><a class='active' title='" . $this->viewData->settings->company_name . "' rel='dofollow' href='" . str_replace("tr/index.php/", "", current_url()) . "'>"; $config["cur_tag_close"] = "</a></li>"; $config["num_tag_open"] = "<li class='count'>"; $config["num_tag_close"] = "</li>"; $config["next_link"] = "<i class='fa fa-angle-right'></i>"; $config["next_tag_open"] = "<li class='next'>"; $config["next_tag_close"] = "</li>"; $config["last_link"] = "<i class='fa fa-angles-right'></i>"; $config["last_tag_open"] = "<li class='next'>"; $config["last_tag_close"] = "</li>"; $config["full_tag_close"] = "</ul>"; $config['attributes'] = array('class' => ''); $config['total_rows'] = (!empty($search) ? $this->general_model->rowCount("our_works", ["isActive" => 1, "lang" => $this->viewData->lang], ["title" => $search, "content" => $search, "createdAt" => $search, "updatedAt" => $search]) : $this->general_model->rowCount("our_works", ["isActive" => 1, "lang" => $this->viewData->lang])); $config['per_page'] = 12; $config["num_links"] = 5; $config['reuse_query_string'] = true; $this->pagination->initialize($config); if (!empty($seo_url) && !is_numeric($seo_url)) : $uri_segment = $this->uri->segment(4); elseif (!empty($this->uri->segment(3)) && is_numeric($this->uri->segment(3))) : $uri_segment = $this->uri->segment(3); else : $uri_segment = $this->uri->segment(3); endif; if (empty($uri_segment)) : $uri_segment = 1; endif; $offset = (!empty($uri_segment) ? $uri_segment - 1 : 0) * $config['per_page']; $this->viewData->offset = $offset; $this->viewData->per_page = $config['per_page']; $this->viewData->total_rows = $config['total_rows']; $this->viewData->our_works = $this->general_model->get_all("our_works", null, null, ["isActive" => 1, "lang" => $this->viewData->lang], ["title" => $search, "content" => $search, "createdAt" => $search, "updatedAt" => $search], [], [$config["per_page"], $offset]); $this->viewData->page_title = clean(strto("lower|ucwords", lang("ourWorks"))); $this->viewData->meta_title = clean(strto("lower|ucwords", lang("ourWorks"))) . " - " . $this->viewData->settings->company_name; $this->viewData->meta_desc = str_replace("”", "\"", @stripslashes($this->viewData->settings->meta_description)); $this->viewData->og_url = clean(base_url(lang("routes_our-works"))); $this->viewData->og_image = clean(get_picture("settings_v", $this->viewData->settings->logo)); $this->viewData->og_type = "article"; $this->viewData->og_title = clean(strto("lower|ucwords", lang("ourWorks"))) . " - " . $this->viewData->settings->company_name; $this->viewData->og_description = clean($this->viewData->settings->meta_description); $this->viewData->links = $this->pagination->create_links(); if (empty($this->viewData->our_works)) : $this->viewFolder = "404_v/index"; else : $this->viewFolder = "our_works_v/index"; endif; $this->render(); } /** * ---------------------------------------------------------------------------------------------------- * ...:::!!! ================================== OUR WORKS =================================== !!!:::... * ---------------------------------------------------------------------------------------------------- */ }