prefix . 'aneeq_subscribers'; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE IF NOT EXISTS $table_name ( id int NOT NULL AUTO_INCREMENT, f_name VARCHAR(255) NOT NULL, l_name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, date timestamp, extra_detail text, UNIQUE KEY id (id) ) $charset_collate;"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); // Aneeq Contact Form $aneeq_contact_form_table = $wpdb->prefix . 'aneeq_contact_form'; $create_contact_form_query = "CREATE TABLE IF NOT EXISTS `$aneeq_contact_form_table` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `f_name` varchar(256) NOT NULL, `l_name` varchar(256) NOT NULL, `email` varchar(256) NOT NULL, `subject` varchar(256) NOT NULL, `message` text NOT NULL, `date_time` datetime NOT NULL, `status` varchar(50) NOT NULL ) $charset_collate"; $wpdb->query($create_contact_form_query); } //Add Theme Support Like - featured image, image crop, post format, rss feed add_theme_support('post-thumbnails'); // featured image add_theme_support( 'automatic-feed-links' ); // rss feed /** * Aneeq - Load Theme Option Panel CSS and JS Start */ function aneeq_backend_resources(){ // aneeq theme css wp_enqueue_style( 'aneeq-style', get_stylesheet_uri()); wp_enqueue_style( 'aneeq-bootstrap-min-css', get_template_directory_uri() . '/css/bootstrap.min.css'); // check is any custom color is set and get the custom color for skin $aneeq_option_settings = get_option('aneeq_general_settings'); if(!isset($aneeq_option_settings['skin_theme_color'])){ wp_enqueue_style( 'aneeq-screen-css', get_template_directory_uri() . '/css/style.css', array(), 'screen', 'skins' ); // default skin } //JS & CSS wp_enqueue_style( 'aneeq-font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css'); wp_enqueue_style('style', get_stylesheet_uri()); add_action('wp_enqueue_scripts', 'example_enqueue_styles'); wp_enqueue_script('jquery'); wp_enqueue_script('aneeq-main-js', get_template_directory_uri() . '/js/main.js', array('jquery'), 1.0, true); wp_enqueue_script('aneeq-bootstrap-min', get_template_directory_uri() . '/js/bootstrap.min.js'); //Slider wp_enqueue_script('aneeq-owl-carousel-js', get_template_directory_uri() . '/js/owl.carousel.min.js'); wp_enqueue_style( 'aneeq-owl-carousel-css', get_template_directory_uri() . '/css/owl.carousel.css'); } //Aneeq - Load Theme Option Panel CSS and JS End /** * Aneeq Widgets Start */ function aneeq_theme_widgets() { // Blog / Page Sidebar Widget register_sidebar( array( 'name' => 'Sidebar Widget', 'id' => 'sidebar-widget', 'before_widget' => '', 'before_title' => '
|
|
|
|
|
|
|
|