get_var("SELECT bann_tempid FROM " . $wpdb->prefix . "bannerstyles WHERE bann_status='ON'"); $banner_style = $_REQUEST['style']; if($banner_style == '') { $get_banner_id = $banner_id; } else { $get_banner_id = $banner_style ; } require_once('../wp-content/plugins' . DIRECTORY_SEPARATOR . $folder_name . DIRECTORY_SEPARATOR . 'apptha_wpdirectory.php'); // Load file for the plugin ?> get_row("SELECT * FROM " . $wpdb->prefix . "bannerstyles WHERE bann_tempid = '$get_banner_id'"); $edit_pgname = $banner_show->bann_pagename; $edit_bgcolor = $banner_show->bann_bgcolor; $edit_brdcolor = $banner_show->bann_border; $edit_brdsize = $banner_show->bann_borsize; $edit_color = explode(',', $banner_show->bann_fontcolor); $edit_banncolor = $edit_color[0]; $edit_thumbcolor = $edit_color[1]; $edit_width = $banner_show->bann_width; $edit_height = $banner_show->bann_height; $edit_fntfamily = $banner_show->bann_fontfamily; $edit_fntsize = $banner_show->bann_fontsize; $edit_corner = $banner_show->bann_corner; $edit_hover = $banner_show->bann_hover; $edit_spacing = $banner_show->bann_spacing; $edit_timing = $banner_show->bann_timing; ?> [a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i", $subfolder[2], $matches); $customerurl = $matches['domain']; $customerurl = str_replace("www.", "", $customerurl); $customerurl = str_replace(".", "D", $customerurl); $customerurl = strtoupper($customerurl); $get_option_title = appbanner_generate($customerurl); $options = get_option('get_api_key'); if (!is_array($options)) { $options = array('title' => '', 'show' => '', 'excerpt' => '', 'exclude' => ''); } if (isset($_POST['submit_license'])) { $options['title'] = strip_tags(stripslashes($_POST['get_license'])); update_option('get_api_key', $options); } $option_title = $wpdb->get_var("SELECT option_value FROM " . $wpdb->prefix . "options WHERE option_name='get_api_key'"); $get_title = unserialize($option_title); ?>

Banner code

Method 1 : After Publishing your own style of template:
Step 1 : Please Go To Admin Menu->Appearance->Editor
Step 2 : Select your theme in top select box and go to file header.php
Step 3 : Add the following code above/below "</div> <!-- #header -->" depends on your theme.

Method 2: After Publishing your own style of template:
When you don't like to have a banner on the header part of your blog,
you can use the following plugin code to display banner on particular post/page.
Step 1:[appthabanner style=id]
Step 2:In the above plugin code you have to provide banner style number as a value to 'id'.

Note:Please use only one method to display on your blog/website to avoid conflict.