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_caption = $banner_show->bann_caption; $edit_spacing = $banner_show->bann_spacing; $edit_timing = $banner_show->bann_timing; ?> get_var("SELECT option_value FROM " . $wpdb->prefix . "options WHERE option_name='get_api_key'"); $get_title = unserialize($option_title); $strDomainName = $site_url; preg_match("/(?P[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i", $strDomainName, $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); } ?>

Banner code

After Publishing your own style of template:
Step 1 : Please Go To Admin Menu->Apperance->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.