| 1 |
<!-- |
| 2 |
Original Plugin Name: OptionTree |
| 3 |
Original Plugin URI: http://wp.envato.com |
| 4 |
Original Author: Derek Herman |
| 5 |
Original Author URI: http://valendesigns.com |
| 6 |
--> |
| 7 |
<?php if (!defined('ProfileBuilderVersion')) exit('No direct script access allowed'); ?> |
| 8 |
<?php require_once('menu.file.php'); ?> |
| 9 |
|
| 10 |
<div id="framework_wrap" class="wrap"> |
| 11 |
|
| 12 |
<div id="header"> |
| 13 |
<h1>Profile Builder</h1> |
| 14 |
<span class="icon"> </span> |
| 15 |
<div class="version"> |
| 16 |
<?php echo 'Version ' . ProfileBuilderVersion; ?> |
| 17 |
</div> |
| 18 |
</div> |
| 19 |
|
| 20 |
<div id="content_wrap"> |
| 21 |
|
| 22 |
<?php |
| 23 |
$wppb_premium = wppb_plugin_dir . '/premium/'; |
| 24 |
if (!file_exists ( $wppb_premium.'premium.php' )){ |
| 25 |
?> |
| 26 |
<div class="info basic-version-info"> |
| 27 |
<img src="<?php echo wppb_plugin_url ?>/assets/images/ad_image.png" alt="Profile Builder Pro" /> |
| 28 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> |
| 29 |
<input type="hidden" name="cmd" value="_s-xclick"> |
| 30 |
<input type="hidden" name="hosted_button_id" value="3J62P8ZXKFJM4"> |
| 31 |
<input type="image" src="http://beta.cozmoslabs.com/wp-content/plugins/reflection-media-subscriber/includes/icons/buy_now_button.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> |
| 32 |
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> |
| 33 |
</form> |
| 34 |
<a href="http://www.cozmoslabs.com/wordpress-profile-builder/">Or Learn More</a> |
| 35 |
|
| 36 |
</div> |
| 37 |
<?php |
| 38 |
} |
| 39 |
?> |
| 40 |
<div class="info top-info"></div> |
| 41 |
|
| 42 |
<?php $wppb_premium = wppb_plugin_dir . '/premium/'; |
| 43 |
if (file_exists ( $wppb_premium.'premium.php' )){ |
| 44 |
echo '<div class="ajax-message'; |
| 45 |
if ( isset( $message ) ) { echo ' show'; } |
| 46 |
echo '">'; |
| 47 |
if ( isset( $message ) ) { echo $message; } |
| 48 |
echo '</div>'; |
| 49 |
} |
| 50 |
?> |
| 51 |
|
| 52 |
<div id="content"> |
| 53 |
|
| 54 |
<div id="options_tabs"> |
| 55 |
|
| 56 |
<ul class="options_tabs"> |
| 57 |
<li><a href="#profile-builder"><?php _e('Basic Information','profilebuilder');?></a><span></span></li> |
| 58 |
<li><a href="#plugin-layout"><?php _e('Plugin Layout','profilebuilder');?></a><span></span></li> |
| 59 |
<li><a href="#show-hide-admin-bar"><?php _e('Show/Hide the Admin Bar on Front-end','profilebuilder');?></a><span></span></li> |
| 60 |
<li><a href="#default-fields"><?php _e('Default Profile Fields','profilebuilder');?></a><span></span></li> |
| 61 |
<?php |
| 62 |
$wppb_premium = wppb_plugin_dir . '/premium/'; |
| 63 |
$wppb_addons = wppb_plugin_dir . '/premium/addon/'; |
| 64 |
|
| 65 |
if (file_exists ( $wppb_premium.'premium.php' )){ |
| 66 |
echo '<li><a href="#create-extra-fields">'; _e('Extra Profile Fields','profilebuilder'); echo'</a><span></span></li>'; |
| 67 |
} |
| 68 |
if (file_exists ( $wppb_addons.'addon.php' )){ |
| 69 |
echo '<li><a href="#add-ons">'; _e('Addons','profilebuilder'); echo'</a><span></span></li>'; |
| 70 |
} |
| 71 |
if (file_exists ( $wppb_premium.'premium.php' )){ |
| 72 |
echo '<li><a href="#register-profile-builder">'; _e('Register Your Version','profilebuilder'); echo'</a><span></span></li>'; |
| 73 |
} |
| 74 |
?> |
| 75 |
<?php |
| 76 |
$addons_options_set = get_option('wppb_premium_addon_settings','not_found'); |
| 77 |
if ($addons_options_set != 'not_found'){ |
| 78 |
$addons_options_description = get_option('wppb_premium_addon_settings_description'); //fetch the descriptions array |
| 79 |
foreach ($addons_options_set as $key => $value) |
| 80 |
if ($value == 'show'){ |
| 81 |
echo '<li><a href="#'.$key.'">'; _e($addons_options_description[$key],'profilebuilder'); echo '</a><span></span></li>'; |
| 82 |
} |
| 83 |
} |
| 84 |
?> |
| 85 |
|
| 86 |
</ul> |
| 87 |
<div id="profile-builder" class="block"> |
| 88 |
<?php basic_info(); ?> |
| 89 |
</div> |
| 90 |
|
| 91 |
<div id="plugin-layout" class="block"> |
| 92 |
<?php plugin_layout(); ?> |
| 93 |
</div> |
| 94 |
|
| 95 |
|
| 96 |
<div id="show-hide-admin-bar" class="block has-table"> |
| 97 |
<?php display_admin_settings(); ?> |
| 98 |
</div> |
| 99 |
|
| 100 |
<div id="default-fields" class="block has-table"> |
| 101 |
<?php default_settings(); ?> |
| 102 |
</div> |
| 103 |
|
| 104 |
<?php $wppb_premium = wppb_plugin_dir . '/premium/'; |
| 105 |
if (file_exists ( $wppb_premium.'premium.php' )){ |
| 106 |
require_once($wppb_premium.'premium.php'); |
| 107 |
echo '<div id="create-extra-fields" class="block has-table">'; |
| 108 |
custom_settings(); |
| 109 |
echo '</div>'; |
| 110 |
echo '<div id="register-profile-builder" class="block">'; |
| 111 |
register_profile_builder(); |
| 112 |
echo '</div>'; |
| 113 |
} |
| 114 |
?> |
| 115 |
|
| 116 |
<?php $wppb_addons = wppb_plugin_dir . '/premium/addon/'; |
| 117 |
if (file_exists ( $wppb_addons.'addon.php' )){ |
| 118 |
require_once($wppb_addons.'addon.php'); |
| 119 |
echo '<div id="add-ons" class="block has-table">'; |
| 120 |
displayAddons(); |
| 121 |
echo '</div>'; |
| 122 |
|
| 123 |
$addons_options_set = get_option('wppb_premium_addon_settings','not_found'); |
| 124 |
if ($addons_options_set != 'not_found'){ |
| 125 |
foreach ($addons_options_set as $key => $value) |
| 126 |
if ($value == 'show'){ |
| 127 |
echo '<div id="'.$key.'" class="block has-table">'; |
| 128 |
$key(); |
| 129 |
echo '</div>'; |
| 130 |
} |
| 131 |
} |
| 132 |
} |
| 133 |
?> |
| 134 |
|
| 135 |
<br class="clear" /> |
| 136 |
|
| 137 |
</div> |
| 138 |
|
| 139 |
</div> |
| 140 |
|
| 141 |
<div class="info bottom"></div> |
| 142 |
|
| 143 |
</div> |
| 144 |
|
| 145 |
</div> |
| 146 |
<!-- [END] framework_wrap --> |