https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/laciasmara.com/public_html/shop/application/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/models/Footer_m.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Footer_m extends MY_Model
{

    function __construct()
    {
        parent::__construct();
    }

    public function get_all_categories()
    {
        $this->db->order_by('column_position', 'ASC');
        $this->db->order_by('display_order', 'ASC');
        $categories = $this->db->get('footer_categories')->result_array();

        // Get links for each category
        foreach ($categories as &$category) {
            $category['links'] = $this->get_links_by_category($category['id']);
        }

        return $categories;
    }

    public function get_category_by_id($category_id)
    {
        $this->db->where('id', $category_id);
        return $this->db->get('footer_categories')->row();
    }

    public function get_category_link_by_id($category_id)
    {
        $this->db->where('id', $category_id);
        return $this->db->get('footer_links')->row();
    }

    public function get_links_by_category($category_id)
    {
        $this->db->where('category_id', $category_id);
        $this->db->where('is_active', 1);
        $this->db->order_by('display_order', 'ASC');
        return $this->db->get('footer_links')->result_array();
    }

    public function get_social_media()
    {
        $this->db->order_by('display_order', 'ASC');
        return $this->db->get('footer_social_media')->result_array();
    }

    public function get_social_media_by_id($social_id)
    {
        $this->db->where('id', $social_id);
        return $this->db->get('footer_social_media')->row();
    }

    public function get_payment_methods()
    {
        $this->db->order_by('display_order', 'ASC');
        return $this->db->get('footer_payment_methods')->result_array();
    }

    public function get_payment_by_id($payment_id)
    {
        $this->db->where('id', $payment_id);
        return $this->db->get('footer_payment_methods')->row();
    }

    public function get_asmaradoor()
    {
        $this->db->where('is_active', 1);
        $this->db->limit(1);
        return $this->db->get('footer_asmaradoor')->row_array();
    }

    public function get_footer_bottom()
    {
        $this->db->where('is_active', 1);
        $this->db->limit(1);
        return $this->db->get('footer_bottom')->row_array();
    }

    public function get_asmaradoor_by_id($asmaradoor_id)
    {
        $this->db->where('id', $asmaradoor_id);
        return $this->db->get('footer_asmaradoor')->row();
    }

    public function get_footer_bottom_by_id($footer_id)
    {
        $this->db->where('id', $footer_id);
        return $this->db->get('footer_bottom')->row();
    }
}

https://t.me/RX1948 - 2025