public function admin_enqueue_scripts() { } /** * Enqueue scripts for public pages * * @return void * @since 1.0.0 * @author Antonio La Rocca <*****@*****.**> */ public function enqueue_scripts() { yit_enqueue_style('yit-feature-tab', $this->plugin_assets_url . '/css/featurestab.css'); } } /** * Main instance of plugin * * @return object * @since 1.0 * @author Antonio La Rocca <*****@*****.**> */ function YIT_Feature_Tabs() { return YIT_Feature_Tabs::instance(); } /** * Create a new YIT_Feature_Tabs object */ YIT_Feature_Tabs();
/** * Populate the attribute $data with all informations of current feature tab * * @return void * @since 1.0 * @author Antonino Scarfì <*****@*****.**> */ protected function _populate() { if (is_null($this->config)) { global $wpdb; $this->config = $wpdb->get_row($wpdb->prepare("SELECT * FROM {$wpdb->posts} WHERE post_name = %s AND post_type = %s", $this->name, YIT_Feature_Tabs()->feature_tab_post_type)); $this->post_type = get_post_meta($this->config->ID, '_post_type', true); } }