PluginProbe
Team Showcase / 1.5
Team Showcase v1.5
trunk 1.0 1.1 1.11 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.22.0 1.22.1 1.22.10 1.22.12 1.22.13 1.22.14 All 49 releases
team / team-settings.php

team-settings.php in Team Showcase 1.5, at team-settings.php

213 lines 6.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 if ( ! defined('ABSPATH')) exit; // if direct access
5
6
7
8 if(empty($_POST['team_hidden']))
9 {
10 $team_member_social_field = get_option( 'team_member_social_field' );
11
12
13 }
14 else
15 {
16 if($_POST['team_hidden'] == 'Y') {
17 //Form data sent
18 $team_member_social_field = stripslashes_deep($_POST['team_member_social_field']);
19 update_option('team_member_social_field', $team_member_social_field);
20
21
22
23 ?>
24 <div class="updated"><p><strong><?php _e('Changes Saved.', 'team' ); ?></strong></p></div>
25
26 <?php
27 }
28 }
29
30
31
32 $team_customer_type = get_option('team_customer_type');
33 $team_version = get_option('team_version');
34
35
36 ?>
37
38
39
40
41
42 <div class="wrap">
43
44 <div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__(team_plugin_name.' Settings', 'team')."</h2>";?>
45 <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
46 <input type="hidden" name="team_hidden" value="Y">
47 <?php settings_fields( 'team_plugin_options' );
48 do_settings_sections( 'team_plugin_options' );
49
50 ?>
51
52 <div class="para-settings team-settings">
53
54 <ul class="tab-nav">
55 <li nav="1" class="nav1 active">Options</li>
56 <li nav="2" class="nav2">Help & Upgrade</li>
57 </ul> <!-- tab-nav end -->
58 <ul class="box">
59 <li style="display: block;" class="box1 tab-box active">
60
61 <div class="option-box">
62 <p class="option-title"><?php _e('Display input field on team member profile.','team'); ?></p>
63 <p class="option-info"><?php _e('By adding bellow input you can control extra input field under member page. if you want to remove one profile field then please empty this field and save changes or to add new profile field simply click add new. some default profile fields are mobile, website, email, skype, facebook, twitter, googleplus, pinterest.','team'); ?></p>
64 <table class="team_member_social_field" id="team_member_social_field">
65
66
67 <?php
68
69 if(empty($team_member_social_field))
70 {
71 $team_member_social_field = array(
72 "mobile"=>"mobile",
73 "website"=>"website",
74 "email"=>"email",
75 "skype"=>"skype",
76 "facebook"=>"facebook",
77 "twitter"=>"twitter",
78 "googleplus"=>"googleplus",
79 "pinterest"=>"pinterest");
80
81 }
82
83 foreach ($team_member_social_field as $value) {
84 if(!empty($value))
85 {
86 ?>
87 <tr><td>
88 <input type="text" name="team_member_social_field[<?php echo $value; ?>]" value="<?php if(isset($team_member_social_field[$value])) echo $team_member_social_field[$value]; else echo $value; ?>" /><br />
89 </td>
90 <td>
91
92 <span class="remove_icon">X</span>
93 </td>
94 </tr>
95 <?php
96
97
98
99 }
100 }
101
102 ?>
103
104
105 </table>
106
107
108
109
110
111
112
113
114
115
116 <div class="button new_team_member_social_field"><?php _e('Add New','team'); ?></div>
117
118 </div>
119
120
121 </li>
122
123 <li style="display: none;" class="box2 tab-box">
124 <div class="option-box">
125 <p class="option-title">Need Help ?</p>
126 <p class="option-info">Feel free to contact with any issue for this plugin, Ask any question via forum <a href="<?php echo team_qa_url; ?>"><?php echo team_qa_url; ?></a> <strong style="color:#139b50;">(free)</strong><br />
127
128 </p>
129
130 </div>
131
132
133
134 <div class="option-box">
135 <p class="option-title">Upgrade</p>
136 <p class="option-info">
137 <?php
138
139 if($team_customer_type=="free")
140 {
141
142 echo 'You are using <strong> '.$team_customer_type.' version '.$team_version['current'].'</strong> of <strong>'.team_plugin_name.'</strong>, To get more feature you could try our premium version. ';
143
144 echo '<br /><a href="'.team_pro_url.'">'.team_pro_url.'</a>';
145
146 }
147 else
148 {
149
150 echo 'Thanks for using <strong> premium version '.$team_version['current'].'</strong> of <strong>'.team_plugin_name.'</strong> ';
151
152
153 }
154
155 ?>
156
157
158 </p>
159
160 </div>
161
162
163 <div class="option-box">
164 <p class="option-title">Submit Reviews...</p>
165 <p class="option-info">We are working hard to build some awesome plugins for you and spend thousand hour for plugins. we wish your three(3) minute by submitting five star reviews at wordpress.org. if you have any issue please submit at forum.</p>
166 <img class="team-pro-pricing" src="<?php echo team_plugin_url."css/five-star.png";?>" /><br />
167 <a target="_blank" href="<?php echo team_wp_reviews; ?>">
168 <?php echo team_wp_reviews; ?>
169 </a>
170
171
172
173 </div>
174 <div class="option-box">
175 <p class="option-title">Please Share</p>
176 <p class="option-info">If you like this plugin please share with your social share network.</p>
177 <?php
178
179 echo team_share_plugin();
180 ?>
181 </div>
182
183 <div class="option-box">
184 <p class="option-title">Video Tutorial</p>
185 <p class="option-info">Please watch this video tutorial.</p>
186 <iframe width="640" height="480" src="<?php echo team_tutorial_video_url; ?>" frameborder="0" allowfullscreen></iframe>
187 </div>
188
189
190
191
192 </li>
193 </ul>
194
195
196
197
198
199 </div>
200
201
202
203
204
205
206 <p class="submit">
207 <input class="button button-primary" type="submit" name="Submit" value="<?php _e('Save Changes','team' ); ?>" />
208 </p>
209 </form>
210
211
212 </div>
213