PluginProbe
Team Showcase / 1.7
Team Showcase v1.7
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 / includes / menu / settings.php

settings.php in Team Showcase 1.7, at includes/menu/settings.php

234 lines 8.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * @Author ParaTheme
5 * @Folder Team/Templates
6 * @version 3.0.5
7
8 * Copyright: 2015 ParaTheme
9 */
10
11 if ( ! defined('ABSPATH')) exit; // if direct access
12
13
14
15 if(empty($_POST['team_hidden']))
16 {
17
18
19 $team_member_social_field = get_option( 'team_member_social_field' );
20 $team_member_social_icon = get_option( 'team_member_social_icon' );
21
22 }
23 else
24 {
25 if($_POST['team_hidden'] == 'Y') {
26 //Form data sent
27
28 if(empty($_POST['team_themes']))
29 {
30 $_POST['team_themes'] = array();
31 }
32
33
34
35 $team_member_social_field = stripslashes_deep($_POST['team_member_social_field']);
36 update_option('team_member_social_field', $team_member_social_field);
37
38 $team_member_social_icon = stripslashes_deep($_POST['team_member_social_icon']);
39 update_option('team_member_social_icon', $team_member_social_icon);
40
41 ?>
42 <div class="updated"><p><strong><?php _e('Changes Saved.', 'team' ); ?></strong></p></div>
43
44 <?php
45 }
46 }
47
48
49 $team_version = get_option('team_version');
50
51 $class_team_functions = new class_team_functions();
52
53 $default_social_field = $class_team_functions->team_member_social_field();
54
55 ?>
56
57
58
59
60
61 <div class="wrap">
62
63 <div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__(team_plugin_name.' Settings', 'team')."</h2>";?>
64 <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
65 <input type="hidden" name="team_hidden" value="Y">
66 <?php settings_fields( 'team_plugin_options' );
67 do_settings_sections( 'team_plugin_options' );
68
69 ?>
70
71 <div class="para-settings team-settings">
72
73 <ul class="tab-nav">
74 <li nav="1" class="nav1 active">Options</li>
75 <li nav="2" class="nav2">Help & Support</li>
76 </ul> <!-- tab-nav end -->
77 <ul class="box">
78 <li style="display: block;" class="box1 tab-box active">
79 <div class="option-box">
80 <p class="option-title"><?php _e('Display social field on team member profile.','team'); ?></p>
81 <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>
82 <table class="team_member_social_field" id="team_member_social_field">
83
84
85 <?php
86
87 if(empty($team_member_social_field))
88 {
89 $team_member_social_field = array(''=>'');
90 }
91
92 $team_member_social_field = array_merge($team_member_social_field,$default_social_field);
93
94 foreach ($team_member_social_field as $value) {
95 if(!empty($value))
96 {
97 ?>
98 <tr><td>*</td><td>
99 <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 />
100 </td>
101 <td>
102 <span style=" <?php if(!empty($team_member_social_icon[$value])) echo 'background:url('.$team_member_social_icon[$value].') no-repeat scroll 0 0 rgba(0, 0, 0, 0);'; ?>" title="Icon for this field." class="team_member_social_icon <?php if(empty($team_member_social_icon[$value])) echo 'empty_icon';?>" icon-name="<?php echo $value; ?>"> </span>
103
104
105 <input class="team_member_social_icon team_member_social_icon_<?php echo $value; ?>" name="team_member_social_icon[<?php echo $value; ?>]" type="hidden" value="<?php if(isset($team_member_social_icon[$value])) echo $team_member_social_icon[$value]; ?>" />
106
107 <span class="remove_icon">X</span>
108 </td>
109 </tr>
110 <?php
111
112
113
114 }
115 }
116
117 ?>
118
119
120 </table>
121
122
123
124 <script>
125
126 jQuery(document).ready(function() {
127
128 // Initialise the table
129 jQuery("#team_member_social_field").tableDnD();
130
131 });
132
133 </script>
134
135
136
137
138
139
140 <div class="button new_team_member_social_field"><?php _e('Add New','team'); ?></div>
141
142 </div>
143
144
145 </li>
146
147 <li style="display: none;" class="box2 tab-box">
148
149 <div class="option-box">
150 <p class="option-title">Plugin info ?</p>
151 <p class="option-info">
152 <?php
153
154 if(team_customer_type=="free")
155 {
156
157 echo 'You are using <strong> '.team_customer_type.' version '.team_plugin_version.'</strong> of <strong>'.team_plugin_name.'</strong>, To get more feature you could try our premium version. ';
158 echo '<br /><a href="'.team_pro_url.'">'.team_pro_url.'</a>';
159
160 }
161 else
162 {
163
164 echo 'Thanks for using <strong> premium version '.team_plugin_version.'</strong> of <strong>'.team_plugin_name.'</strong> ';
165
166
167 }
168
169 ?>
170
171
172 </p>
173
174 </div>
175
176 <div class="option-box">
177 <p class="option-title">Need Help ?</p>
178 <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 /> please read <strong>documentation</strong> here <a href="<?php echo team_tutorial_doc_url; ?>"><?php echo team_tutorial_doc_url; ?></a>
179
180 </p>
181
182 </div>
183
184 <div class="option-box">
185 <p class="option-title">Submit Reviews...</p>
186 <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>
187 <img class="team-pro-pricing" src="<?php echo team_plugin_url."css/five-star.png";?>" /><br />
188 <a target="_blank" href="<?php echo team_wp_reviews; ?>">
189 <?php echo team_wp_reviews; ?>
190 </a>
191
192
193
194 </div>
195 <div class="option-box">
196 <p class="option-title">Please Share</p>
197 <p class="option-info">If you like this plugin please share with your social share network.</p>
198 <?php
199 $class_team_functions = new class_team_functions();
200 echo $class_team_functions->team_share_plugin();
201 ?>
202 </div>
203
204 <div class="option-box">
205 <p class="option-title">Video Tutorial</p>
206 <p class="option-info">Please watch this video tutorial.</p>
207 <iframe width="640" height="480" src="<?php echo team_tutorial_video_url; ?>" frameborder="0" allowfullscreen></iframe>
208 </div>
209
210
211
212
213 </li>
214 </ul>
215
216
217
218
219
220 </div>
221
222
223
224
225
226
227 <p class="submit">
228 <input class="button button-primary" type="submit" name="Submit" value="<?php _e('Save Changes','team' ); ?>" />
229 </p>
230 </form>
231
232
233 </div>
234