get('type'); // Santiize the template name! $sanitizedName = strtolower(sanitize_file_name($this->get('name'))); // Prefix all user templates so it woule be unique when added // to Wordpress queue! $queueName = "cjt-{$type}-template-{$sanitizedName}"; $this->set('queueName', $queueName); return $this; } } // End class. // Initialize static's! CJTTemplateTable::$states = array( 'draft' => cssJSToolbox::getText('draft'), 'published' => cssJSToolbox::getText('published'), 'trash' => cssJSToolbox::getText('trash'), );