first commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Table Manager
|
||||
*
|
||||
* @package WP Table Manager
|
||||
* @author Joomunited
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
use Joomunited\WPFramework\v1_0_4\View;
|
||||
|
||||
defined( 'ABSPATH' ) || die();
|
||||
|
||||
class wptmViewWptm extends View {
|
||||
public function render($tpl = null) {
|
||||
$modelCat = $this->getModel('categories');
|
||||
$this->categories = $modelCat->getCategories();
|
||||
|
||||
$modelTables = $this->getModel('tables');
|
||||
$this->tables = $modelTables->getItems();
|
||||
require_once plugin_dir_path(WPTML_PLUGIN_FILE).DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'tables.php';
|
||||
$this->tables = WptmTablesHelper::categoryObject($this->tables);
|
||||
|
||||
$modelStyles = $this->getModel('styles');
|
||||
$this->styles = $modelStyles->getStyles();
|
||||
|
||||
$modelConfig = $this->getModel('config');
|
||||
$this->params = $modelConfig->getConfig();
|
||||
|
||||
$this->dbtable_cat = (int)get_option('_wptm_dbtable_cat',0);
|
||||
|
||||
parent::render($tpl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user