1. Home
  2. Docs
  3. Function Reference
  4. Featured Variables
  5. Variables For Frontend

Variables For Frontend

In the frontend side, there are also some static variables to make our life easier like the Admin side. They can be accessed through MVC_Front_Factory::$variable;

The Variables

MVC_Front_Factory::$actTbs_arr: return active Pods tables. Sample:


array(
     'pod_409' => array (
                    'id'         => 409,
                    'name'       => 'pods_something',
                    'title'      => 'Something',
                    'pod'        => 'something',
                    'type'       => 'pod',
                    'name_field' => 'name',
                  );

     'pods_something' => array(
                              'id'         => 409,
                              'name'       => 'pods_something',
                              'title'      => 'Something',
                              'pod'        => 'something',
                              'type'       => 'pod',
                              'name_field' => 'name',
                         );
)

 

MVC_Front_Factory::$actTbs_arr: A quick way to access Pods table information;

MVC_Front_Factory::$curPageID_int: When you can’t use get_the_ID() to get the current page ID, try MVC_Front_Factory::$curPageID_int;

 

MVC_Front_Factory::$messages_arr: You can save your global messages into MVC_Front_Factory::$messages_arr;

MVC_Front_Factory::$options_arr: Save your global options into MVC_Front_Factory::$options_arr if you like;

MVC_Front_Factory::$styles_arr_arr: The collection of style sheets enqueued into MVC_Front_Factory::$styles_arr;

MVC_Front_Factory::$scripts_arr: The collection of JavaScript files enqueued into MVC_Front_Factory::$scripts_arr;