%PDF-1.4
Directory : /var/www/vhosts/lautnusantara.com/httpdocs/web/app/Controllers/ |
<?php namespace App\Controllers; use CodeIgniter\Controller; use App\Models\Theme_Model; use App\Models\Pos_Modul_Model; use App\Models\News_Statis_Model; use App\Models\Perusahaan_Model; use App\Models\Artikel_Model; use App\Models\Produk_Model; use App\Models\Video_Model; use App\Models\MenuModel; use App\Models\Dataclient_Model; // use App\Models\History_model; class Detail extends BaseController { protected $History; protected $Theme_Model; protected $Pos_Modul_Model; protected $Artikel_Model; protected $Produk_Model; protected $Video_Model; protected $Perusahaan_Model; protected $MenuModel; protected $News_Statis_Model; protected $Dataclient_Model; protected $session; public function __construct() { $this->session = session(); $this->Theme_Model = new Theme_Model(); $this->Artikel_Model = new Artikel_Model(); $this->Pos_Modul_Model = new Pos_Modul_Model(); $this->News_Statis_Model = new News_Statis_Model(); $this->Perusahaan_Model = new Perusahaan_Model(); $this->MenuModel = new MenuModel(); $this->Dataclient_Model = new Dataclient_Model(); $this->Produk_Model = new Produk_Model(); $this->Video_Model = new Video_Model(); //----- load theme ------ $theme_data = $this->Theme_Model->get_theme()->getResultArray(); $this->theme = $theme_data[0]['folder']; $this->theme_id = $theme_data[0]['id']; //---- load mainmenu ----- $this->mainmenu = $this->MenuModel->get_menu(2)->getResultArray(); //----- load pos_modul Model ------ $this->dt_model = $this->Pos_Modul_Model->get_posmodul($this->theme_id, 'HOME', 'Footer')->getResult(); foreach ($this->dt_model as $PM) { if (!is_null($PM->model)) { $mm = 'App\Models\\' . $PM->model; $this->data[$PM->model] = model($mm, false); } } //$this->dt_posmodul = $this->Pos_Modul_Model->get_posmodul($this->theme_id,'HOME','Middle')->getResultArray(); $this->dt_posmodul_footer = $this->Pos_Modul_Model->get_posmodul($this->theme_id, 'HOME', 'Footer')->getResultArray(); $this->url_base = "https://wwww.lautnusantara.com"; $this->dt_perusahaan = $this->Perusahaan_Model->get_data(1)->getResult(); } public function artikel($id) { $user_id = session()->get('user_id'); $username = session()->get('username'); $firstname = session()->get('firstname'); $lastname = session()->get('lastname'); // $this->History->save([ // 'user_id' => $user_id, // 'username' => $username, // 'name' => $firstname.' '.$lastname, // 'kegiatan' => 'Dashboard', // 'jenis_kegiatan' => 'Login/Dashboard', // 'tanggal_waktu' => date('Y-m-d H:i:s') // ]); // $this->data_dashboard = new DashboardModel(); foreach ($this->dt_model as $PM) { if (!is_null($PM->model)) { $data[$PM->model] = $this->data[$PM->model]; } } //--- mencatat IP dan userAgent ----- $agent = $this->request->getUserAgent(); $this->Dataclient_Model->get_client_ip_browser('Artikel', '.210', $agent); $this->Dataclient_Model->get_online_user($agent); //$id = $this->request->getVar('artikel_id'); $isi_artikel = $this->Artikel_Model->get_data_artikel($id)->get()->getResultArray(); //$id = $isi_artikel[0]['id']; $hits = $isi_artikel[0]['hits']; $hits = $this->hits_artikel($id, $hits, 1); //ambil data tags $dt_tags = $this->Artikel_Model->get_tags_by_artikel($id)->getResult(); // $tags = ''; // foreach ($dt_tags as $key => $dt) { // $tags = $tags . $dt->name . ','; // } //$data['dt_posmodul'] = $this->dt_posmodul; $data['canonical_url'] = current_url(); $data['dt_posmodul_footer'] = $this->dt_posmodul_footer; $data['url_logo'] = $this->dt_perusahaan[0]->logo; $data['nama_perus'] = $this->dt_perusahaan[0]->nama; $data['copyright'] = $this->dt_perusahaan[0]->copyright; $data['url_favicon'] = $this->dt_perusahaan[0]->favicon; $data['telp'] = $this->dt_perusahaan[0]->telp; $data['telp2'] = $this->dt_perusahaan[0]->telp2; $data['telp3'] = $this->dt_perusahaan[0]->telp3; $data['telp4'] = $this->dt_perusahaan[0]->telp4; $data['telp5'] = $this->dt_perusahaan[0]->telp5; $data['cs'] = $this->dt_perusahaan[0]->cs; $data['cs2'] = $this->dt_perusahaan[0]->cs2; $data['cs3'] = $this->dt_perusahaan[0]->cs3; $data['cs4'] = $this->dt_perusahaan[0]->cs4; $data['cs5'] = $this->dt_perusahaan[0]->cs5; $data['jenis_wa'] = $this->dt_perusahaan[0]->jenis_wa; $data['email'] = $this->dt_perusahaan[0]->email; $data['email2'] = $this->dt_perusahaan[0]->email2; $data['email3'] = $this->dt_perusahaan[0]->email3; $data['email4'] = $this->dt_perusahaan[0]->email4; $data['email5'] = $this->dt_perusahaan[0]->email5; // $data = array( $data['title'] = $isi_artikel[0]['title']; $data['alias'] = $isi_artikel[0]['alias']; $data['id'] = $isi_artikel[0]['id']; $data['catid'] = $isi_artikel[0]['catid']; $data['published'] = $isi_artikel[0]['publish_up']; $data['created'] = $isi_artikel[0]['created']; $data['url_data'] = $this->url_base . '/detail/artikel/' . $isi_artikel[0]['id'] . '/' . $isi_artikel[0]['alias']; $data['url_image'] = $this->url_base . $isi_artikel[0]['url_image']; $data['url_base'] = $this->url_base; $data['penulis'] = $isi_artikel[0]['first_name'] . ' ' . $isi_artikel[0]['last_name']; $data['description'] = $isi_artikel[0]['metadesc']; $data['keywords'] = $isi_artikel[0]['metakey']; $data['author'] = $this->dt_perusahaan[0]->nama; $data['parent_id_menu'] = '0'; $data['id_menu'] = '2'; $data['page1'] = 'Detail'; $data['page2'] = ''; $data['link01'] = base_url(); $data['theme'] = $this->theme; $data['mainmenu'] = $this->mainmenu; $data['dtl_artikel'] = $this->Artikel_Model->get_data_artikel($id)->get()->getResultArray(); $data['list_artikel'] = $this->Artikel_Model->get_data_artikel(false, false, false, 9)->get()->getResultArray(); $data['tags'] = $dt_tags; $data['componen'] = 'theme/' . $this->theme . '/halaman/detail'; // ); echo view('layout', $data); } public function video($id) { $user_id = session()->get('user_id'); $username = session()->get('username'); $firstname = session()->get('firstname'); $lastname = session()->get('lastname'); // $this->History->save([ // 'user_id' => $user_id, // 'username' => $username, // 'name' => $firstname.' '.$lastname, // 'kegiatan' => 'Dashboard', // 'jenis_kegiatan' => 'Login/Dashboard', // 'tanggal_waktu' => date('Y-m-d H:i:s') // ]); // $this->data_dashboard = new DashboardModel(); foreach ($this->dt_model as $PM) { if (!is_null($PM->model)) { $data[$PM->model] = $this->data[$PM->model]; } } //--- mencatat IP dan userAgent ----- $agent = $this->request->getUserAgent(); $this->Dataclient_Model->get_client_ip_browser('Video', '.310', $agent); $this->Dataclient_Model->get_online_user($agent); //$id = $this->request->getVar('artikel_id'); $isi_artikel = $this->Video_Model->get_data_video($id)->get()->getResultArray(); //$id = $isi_artikel[0]['id']; $hits = $isi_artikel[0]['hits']; $hits = $this->hits_video($id, $hits, 1); //ambil data tags $dt_tags = $this->Video_Model->get_tags_by_artikel($id)->getResult(); // $tags = ''; // foreach ($dt_tags as $key => $dt) { // $tags = $tags . $dt->name . ','; // } //$data['dt_posmodul'] = $this->dt_posmodul; $data['canonical_url'] = current_url(); $data['dt_posmodul_footer'] = $this->dt_posmodul_footer; $data['url_logo'] = $this->dt_perusahaan[0]->logo; $data['nama_perus'] = $this->dt_perusahaan[0]->nama; $data['copyright'] = $this->dt_perusahaan[0]->copyright; $data['url_favicon'] = $this->dt_perusahaan[0]->favicon; $data['telp'] = $this->dt_perusahaan[0]->telp; $data['telp2'] = $this->dt_perusahaan[0]->telp2; $data['telp3'] = $this->dt_perusahaan[0]->telp3; $data['telp4'] = $this->dt_perusahaan[0]->telp4; $data['telp5'] = $this->dt_perusahaan[0]->telp5; $data['cs'] = $this->dt_perusahaan[0]->cs; $data['cs2'] = $this->dt_perusahaan[0]->cs2; $data['cs3'] = $this->dt_perusahaan[0]->cs3; $data['cs4'] = $this->dt_perusahaan[0]->cs4; $data['cs5'] = $this->dt_perusahaan[0]->cs5; $data['jenis_wa'] = $this->dt_perusahaan[0]->jenis_wa; $data['email'] = $this->dt_perusahaan[0]->email; $data['email2'] = $this->dt_perusahaan[0]->email2; $data['email3'] = $this->dt_perusahaan[0]->email3; $data['email4'] = $this->dt_perusahaan[0]->email4; $data['email5'] = $this->dt_perusahaan[0]->email5; // $data = array( $data['title'] = $isi_artikel[0]['title']; $data['alias'] = $isi_artikel[0]['alias']; $data['id'] = $isi_artikel[0]['id']; $data['catid'] = $isi_artikel[0]['catid']; $data['published'] = $isi_artikel[0]['publish_up']; $data['created'] = $isi_artikel[0]['created']; $data['video'] = $isi_artikel[0]['url_video']; $data['url_data'] = $this->url_base . '/detail/video/' . $isi_artikel[0]['id'] . '/' . $isi_artikel[0]['alias']; $data['url_image'] = $this->url_base . $isi_artikel[0]['url_image']; $data['url_base'] = $this->url_base; $data['penulis'] = $isi_artikel[0]['first_name'] . ' ' . $isi_artikel[0]['last_name']; $data['description'] = $isi_artikel[0]['metadesc']; $data['keywords'] = $isi_artikel[0]['metakey']; $data['author'] = $this->dt_perusahaan[0]->nama; $data['parent_id_menu'] = '0'; $data['id_menu'] = '2'; $data['page1'] = 'Detail'; $data['page2'] = ''; $data['link01'] = base_url(); $data['theme'] = $this->theme; $data['mainmenu'] = $this->mainmenu; $data['dtl_artikel'] = $this->Video_Model->get_data_video($id)->get()->getResultArray(); $data['list_artikel'] = $this->Video_Model->get_data_video(false, false, false, 9)->get()->getResultArray(); $data['tags'] = $dt_tags; $data['componen'] = 'theme/' . $this->theme . '/halaman/video'; // ); echo view('layout', $data); } public function produk($id) { $user_id = session()->get('user_id'); $username = session()->get('username'); $firstname = session()->get('firstname'); $lastname = session()->get('lastname'); // $this->History->save([ // 'user_id' => $user_id, // 'username' => $username, // 'name' => $firstname.' '.$lastname, // 'kegiatan' => 'Dashboard', // 'jenis_kegiatan' => 'Login/Dashboard', // 'tanggal_waktu' => date('Y-m-d H:i:s') // ]); // $this->data_dashboard = new DashboardModel(); foreach ($this->dt_model as $PM) { if (!is_null($PM->model)) { $data[$PM->model] = $this->data[$PM->model]; } } //--- mencatat IP dan userAgent ----- $agent = $this->request->getUserAgent(); $this->Dataclient_Model->get_client_ip_browser('Produk', '.410', $agent); $this->Dataclient_Model->get_online_user($agent); $isi_artikel = $this->Produk_Model->get_data_produk($id)->get()->getResultArray(); // $id = $isi_artikel[0]['id']; $hits = $isi_artikel[0]['hits']; $hits = $this->hits_produk($id, $hits, 1); //$id = $this->request->getVar('artikel_id'); //ambil data tags $dt_tags = $this->Produk_Model->get_tags_by_artikel($id)->getResult(); // $tags = ''; // foreach ($dt_tags as $key => $dt) { // $tags = $tags . $dt->name . ','; // } $data['canonical_url'] = current_url(); $data['dt_posmodul_footer'] = $this->dt_posmodul_footer; $data['url_logo'] = $this->dt_perusahaan[0]->logo; $data['nama_perus'] = $this->dt_perusahaan[0]->nama; $data['copyright'] = $this->dt_perusahaan[0]->copyright; $data['url_favicon'] = $this->dt_perusahaan[0]->favicon; $data['telp'] = $this->dt_perusahaan[0]->telp; $data['telp2'] = $this->dt_perusahaan[0]->telp2; $data['telp3'] = $this->dt_perusahaan[0]->telp3; $data['telp4'] = $this->dt_perusahaan[0]->telp4; $data['telp5'] = $this->dt_perusahaan[0]->telp5; $data['cs'] = $this->dt_perusahaan[0]->cs; $data['cs2'] = $this->dt_perusahaan[0]->cs2; $data['cs3'] = $this->dt_perusahaan[0]->cs3; $data['cs4'] = $this->dt_perusahaan[0]->cs4; $data['cs5'] = $this->dt_perusahaan[0]->cs5; $data['jenis_wa'] = $this->dt_perusahaan[0]->jenis_wa; $data['email'] = $this->dt_perusahaan[0]->email; $data['email2'] = $this->dt_perusahaan[0]->email2; $data['email3'] = $this->dt_perusahaan[0]->email3; $data['email4'] = $this->dt_perusahaan[0]->email4; $data['email5'] = $this->dt_perusahaan[0]->email5; // $data = array( $data['title'] = $isi_artikel[0]['title']; $data['alias'] = $isi_artikel[0]['alias']; $data['id'] = $isi_artikel[0]['id']; $data['catid'] = $isi_artikel[0]['catid']; $data['published'] = $isi_artikel[0]['publish_up']; $data['created'] = $isi_artikel[0]['created']; $data['url_data'] = $this->url_base . '/detail/produk/' . $isi_artikel[0]['id'] . '/' . $isi_artikel[0]['alias']; $data['url_image'] = $this->url_base . $isi_artikel[0]['url_image']; $data['url_base'] = $this->url_base; $data['penulis'] = $isi_artikel[0]['first_name'] . ' ' . $isi_artikel[0]['last_name']; $data['description'] = $isi_artikel[0]['metadesc']; $data['keywords'] = $isi_artikel[0]['metakey']; $data['author'] = $this->dt_perusahaan[0]->nama; $data['parent_id_menu'] = '0'; $data['id_menu'] = '2'; $data['page1'] = 'Detail'; $data['page2'] = ''; $data['link01'] = base_url(); $data['theme'] = $this->theme; $data['mainmenu'] = $this->mainmenu; $data['dtl_produk'] = $this->Produk_Model->get_data_produk($id)->get()->getResultArray(); $data['list_produk'] = $this->Produk_Model->get_data_produk(false, false, false, 9)->get()->getResultArray(); $data['tags'] = $dt_tags; $data['componen'] = 'theme/' . $this->theme . '/halaman/produk'; // ); echo view('layout', $data); } public function kebijakan_privasi() { $user_id = session()->get('user_id'); $username = session()->get('username'); $firstname = session()->get('firstname'); $lastname = session()->get('lastname'); // $this->History->save([ // 'user_id' => $user_id, // 'username' => $username, // 'name' => $firstname.' '.$lastname, // 'kegiatan' => 'Dashboard', // 'jenis_kegiatan' => 'Login/Dashboard', // 'tanggal_waktu' => date('Y-m-d H:i:s') // ]); // $this->data_dashboard = new DashboardModel(); foreach ($this->dt_model as $PM) { if (!is_null($PM->model)) { $data[$PM->model] = $this->data[$PM->model]; } } //--- mencatat IP dan userAgent ----- $agent = $this->request->getUserAgent(); $this->Dataclient_Model->get_client_ip_browser('Kebijakan Privasi', '.510', $agent); $this->Dataclient_Model->get_online_user($agent); $id = 32; $catid = 7; $isi_artikel = $this->News_Statis_Model->get_statis($id, $catid)->getResultArray(); $hits = $isi_artikel[0]['hits']; $hits = $this->hits_artikel($id, $hits, 4); $data['canonical_url'] = current_url(); $data['dt_posmodul_footer'] = $this->dt_posmodul_footer; $data['url_logo'] = $this->dt_perusahaan[0]->logo; $data['nama_perus'] = $this->dt_perusahaan[0]->nama; $data['copyright'] = $this->dt_perusahaan[0]->copyright; $data['url_favicon'] = $this->dt_perusahaan[0]->favicon; $data['author'] = $this->dt_perusahaan[0]->nama; $data['telp'] = $this->dt_perusahaan[0]->telp; $data['telp2'] = $this->dt_perusahaan[0]->telp2; $data['telp3'] = $this->dt_perusahaan[0]->telp3; $data['telp4'] = $this->dt_perusahaan[0]->telp4; $data['telp5'] = $this->dt_perusahaan[0]->telp5; $data['cs'] = $this->dt_perusahaan[0]->cs; $data['cs2'] = $this->dt_perusahaan[0]->cs2; $data['cs3'] = $this->dt_perusahaan[0]->cs3; $data['cs4'] = $this->dt_perusahaan[0]->cs4; $data['cs5'] = $this->dt_perusahaan[0]->cs5; $data['jenis_wa'] = $this->dt_perusahaan[0]->jenis_wa; $data['email'] = $this->dt_perusahaan[0]->email; $data['email2'] = $this->dt_perusahaan[0]->email2; $data['email3'] = $this->dt_perusahaan[0]->email3; $data['email4'] = $this->dt_perusahaan[0]->email4; $data['email5'] = $this->dt_perusahaan[0]->email5; // $data = array( $data['title'] = $isi_artikel[0]['title']; $data['alias'] = $isi_artikel[0]['alias']; $data['id'] = $isi_artikel[0]['id']; $data['catid'] = $isi_artikel[0]['catid']; $data['published'] = $isi_artikel[0]['publish_up']; $data['created'] = $isi_artikel[0]['created']; $data['url_data'] = $this->url_base . '/detail/kebijakan_privasi'; $data['url_image'] = $this->url_base . $isi_artikel[0]['url_image']; $data['url_base'] = $this->url_base; $data['penulis'] = $isi_artikel[0]['first_name'] . ' ' . $isi_artikel[0]['last_name']; $data['description'] = $isi_artikel[0]['metadesc']; $data['keywords'] = $isi_artikel[0]['metakey']; $data['parent_id_menu'] = '0'; $data['id_menu'] = '2'; $data['page1'] = 'Detail'; $data['page2'] = 'Kebijakan Privasi'; $data['link01'] = base_url(); $data['theme'] = $this->theme; $data['mainmenu'] = $this->mainmenu; $data['dtl_artikel'] = $this->News_Statis_Model->get_statis($id, $catid)->getResultArray(); $data['list_artikel'] = $this->Artikel_Model->get_data_artikel(false, false, false, 9)->get()->getResultArray(); $data['componen'] = 'theme/' . $this->theme . '/halaman/kebijakan'; // ); echo view('layout', $data); } public function syarat_n_ketentuan() { $user_id = session()->get('user_id'); $username = session()->get('username'); $firstname = session()->get('firstname'); $lastname = session()->get('lastname'); // $this->History->save([ // 'user_id' => $user_id, // 'username' => $username, // 'name' => $firstname.' '.$lastname, // 'kegiatan' => 'Dashboard', // 'jenis_kegiatan' => 'Login/Dashboard', // 'tanggal_waktu' => date('Y-m-d H:i:s') // ]); // $this->data_dashboard = new DashboardModel(); foreach ($this->dt_model as $PM) { if (!is_null($PM->model)) { $data[$PM->model] = $this->data[$PM->model]; } } //--- mencatat IP dan userAgent ----- $agent = $this->request->getUserAgent(); $this->Dataclient_Model->get_client_ip_browser('Syarat & Ketentuan', '.610', $agent); $this->Dataclient_Model->get_online_user($agent); $id = 33; $catid = 8; $isi_artikel = $this->News_Statis_Model->get_statis($id, $catid)->getResultArray(); $hits = $isi_artikel[0]['hits']; $hits = $this->hits_artikel($id, $hits, 5); $data['canonical_url'] = current_url(); $data['dt_posmodul_footer'] = $this->dt_posmodul_footer; $data['url_logo'] = $this->dt_perusahaan[0]->logo; $data['nama_perus'] = $this->dt_perusahaan[0]->nama; $data['copyright'] = $this->dt_perusahaan[0]->copyright; $data['url_favicon'] = $this->dt_perusahaan[0]->favicon; $data['author'] = $this->dt_perusahaan[0]->nama; $data['telp'] = $this->dt_perusahaan[0]->telp; $data['telp2'] = $this->dt_perusahaan[0]->telp2; $data['telp3'] = $this->dt_perusahaan[0]->telp3; $data['telp4'] = $this->dt_perusahaan[0]->telp4; $data['telp5'] = $this->dt_perusahaan[0]->telp5; $data['cs'] = $this->dt_perusahaan[0]->cs; $data['cs2'] = $this->dt_perusahaan[0]->cs2; $data['cs3'] = $this->dt_perusahaan[0]->cs3; $data['cs4'] = $this->dt_perusahaan[0]->cs4; $data['cs5'] = $this->dt_perusahaan[0]->cs5; $data['jenis_wa'] = $this->dt_perusahaan[0]->jenis_wa; $data['email'] = $this->dt_perusahaan[0]->email; $data['email2'] = $this->dt_perusahaan[0]->email2; $data['email3'] = $this->dt_perusahaan[0]->email3; $data['email4'] = $this->dt_perusahaan[0]->email4; $data['email5'] = $this->dt_perusahaan[0]->email5; // $data = array( $data['title'] = $isi_artikel[0]['title']; $data['alias'] = $isi_artikel[0]['alias']; $data['id'] = $isi_artikel[0]['id']; $data['catid'] = $isi_artikel[0]['catid']; $data['published'] = $isi_artikel[0]['publish_up']; $data['created'] = $isi_artikel[0]['created']; $data['url_data'] = $this->url_base . '/detail/syarat_n_ketentuan'; $data['url_image'] = $this->url_base . $isi_artikel[0]['url_image']; $data['url_base'] = $this->url_base; $data['penulis'] = $isi_artikel[0]['first_name'] . ' ' . $isi_artikel[0]['last_name']; $data['description'] = $isi_artikel[0]['metadesc']; $data['keywords'] = $isi_artikel[0]['metakey']; $data['parent_id_menu'] = '0'; $data['id_menu'] = '2'; $data['page1'] = 'Detail'; $data['page2'] = 'Kebijakan Privasi'; $data['link01'] = base_url(); $data['theme'] = $this->theme; $data['mainmenu'] = $this->mainmenu; $data['dtl_artikel'] = $this->News_Statis_Model->get_statis($id, $catid)->getResultArray(); $data['list_artikel'] = $this->Artikel_Model->get_data_artikel(false, false, false, 9)->get()->getResultArray(); $data['componen'] = 'theme/' . $this->theme . '/halaman/kebijakan'; // ); echo view('layout', $data); } public function tentang_kami() { $user_id = session()->get('user_id'); $username = session()->get('username'); $firstname = session()->get('firstname'); $lastname = session()->get('lastname'); // $this->History->save([ // 'user_id' => $user_id, // 'username' => $username, // 'name' => $firstname.' '.$lastname, // 'kegiatan' => 'Dashboard', // 'jenis_kegiatan' => 'Login/Dashboard', // 'tanggal_waktu' => date('Y-m-d H:i:s') // ]); // $this->data_dashboard = new DashboardModel(); foreach ($this->dt_model as $PM) { if (!is_null($PM->model)) { $data[$PM->model] = $this->data[$PM->model]; } } //--- mencatat IP dan userAgent ----- $agent = $this->request->getUserAgent(); $this->Dataclient_Model->get_client_ip_browser('Tentang Kami', '.710', $agent); $this->Dataclient_Model->get_online_user($agent); $id = 1; $catid = 1; $isi_artikel = $this->News_Statis_Model->get_statis($id, $catid)->getResultArray(); $id = $isi_artikel[0]['id']; $hits = $isi_artikel[0]['hits']; $hits = $this->hits_artikel($id, $hits, 3); $data['canonical_url'] = current_url(); $data['dt_posmodul_footer'] = $this->dt_posmodul_footer; $data['url_logo'] = $this->dt_perusahaan[0]->logo; $data['nama_perus'] = $this->dt_perusahaan[0]->nama; $data['copyright'] = $this->dt_perusahaan[0]->copyright; $data['url_favicon'] = $this->dt_perusahaan[0]->favicon; $data['author'] = $this->dt_perusahaan[0]->nama; $data['telp'] = $this->dt_perusahaan[0]->telp; $data['telp2'] = $this->dt_perusahaan[0]->telp2; $data['telp3'] = $this->dt_perusahaan[0]->telp3; $data['telp4'] = $this->dt_perusahaan[0]->telp4; $data['telp5'] = $this->dt_perusahaan[0]->telp5; $data['cs'] = $this->dt_perusahaan[0]->cs; $data['cs2'] = $this->dt_perusahaan[0]->cs2; $data['cs3'] = $this->dt_perusahaan[0]->cs3; $data['cs4'] = $this->dt_perusahaan[0]->cs4; $data['cs5'] = $this->dt_perusahaan[0]->cs5; $data['jenis_wa'] = $this->dt_perusahaan[0]->jenis_wa; $data['email'] = $this->dt_perusahaan[0]->email; $data['email2'] = $this->dt_perusahaan[0]->email2; $data['email3'] = $this->dt_perusahaan[0]->email3; $data['email4'] = $this->dt_perusahaan[0]->email4; $data['email5'] = $this->dt_perusahaan[0]->email5; // $data = array( $data['title'] = $isi_artikel[0]['title']; $data['alias'] = $isi_artikel[0]['alias']; $data['id'] = $isi_artikel[0]['id']; $data['catid'] = $isi_artikel[0]['catid']; $data['published'] = $isi_artikel[0]['publish_up']; $data['created'] = $isi_artikel[0]['created']; $data['url_data'] = $this->url_base . '/detail/tentang_kami'; $data['url_image'] = $this->url_base . $isi_artikel[0]['url_image']; $data['url_base'] = $this->url_base; $data['penulis'] = $isi_artikel[0]['first_name'] . ' ' . $isi_artikel[0]['last_name']; $data['description'] = $isi_artikel[0]['metadesc']; $data['keywords'] = $isi_artikel[0]['metakey']; $data['parent_id_menu'] = '0'; $data['id_menu'] = '2'; $data['page1'] = 'Detail'; $data['page2'] = 'Tentang Kami'; $data['link01'] = base_url(); $data['theme'] = $this->theme; $data['mainmenu'] = $this->mainmenu; $data['dtl_artikel'] = $this->News_Statis_Model->get_statis($id, $catid)->getResultArray(); $data['list_artikel'] = $this->Artikel_Model->get_data_artikel(false, false, false, 9)->get()->getResultArray(); $data['componen'] = 'theme/' . $this->theme . '/halaman/tentang_kami'; // ); echo view('layout', $data); } /////////////////// hits /////////////////////////// public function hits_artikel($id, $hits = 0, $jenis = 1) { $hits2 = array( 'hits' => $hits + 1, ); $this->Artikel_Model->save_news_hits($id, $jenis, $hits2); $data = array( 'items_id' => $id, 'hits' => '1' ); $this->Artikel_Model->save_hits($id, $jenis, $data); } public function hits_video($id, $hits = 0, $jenis = 1) { $hits2 = array( 'hits' => $hits + 1, ); $this->Video_Model->save_news_hits_video($id, $jenis, $hits2); $data = array( 'items_id' => $id, 'hits' => '1' ); $this->Video_Model->save_hits_video($id, $jenis, $data); } public function hits_produk($id, $hits = 0, $jenis = 1) { $hits2 = array( 'hits' => $hits + 1, ); $this->Produk_Model->save_news_hits_produk($id, $jenis, $hits2); $data = array( 'items_id' => $id, 'hits' => '1' ); $this->Produk_Model->save_hits_produk($id, $jenis, $data); } } ?>