PluginProbe
Catch Web Tools / 0.1
Catch Web Tools v0.1
trunk 0.1 0.2 0.3 0.4 1.0 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.6 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 All 58 releases
catch-web-tools / admin / modules / social-icons.php

social-icons.php in Catch Web Tools 0.1, at admin/modules/social-icons.php

283 lines 17.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Admin
4 * @sub-package Admin Social Icons Display
5 */
6 ?>
7 <div id="catchwebtools" class="wrap">
8 <?php include ( 'header.php' ); ?>
9 <?php include ( 'navigation.php' ); ?>
10 <div id="social">
11 <form method="post" action="options.php">
12 <?php settings_fields( 'social-icons-group' ); ?>
13 <?php $settings = get_catchwebtools_options( 'catchwebtools_social' ); ?>
14 <div class="option-container">
15 <h3 class="option-toggle option-active"><a href="#"><?php _e( 'Enable Social Icons Module', 'catchwebtools' ); ?></a></h3>
16 <div class="option-content inside open">
17 <table class="form-table">
18 <tbody>
19 <tr>
20 <th scope="row"><?php _e( 'Enable Social Icons Module', 'catchwebtools' ); ?></th>
21
22 <td>
23 <?php
24 $text = ( ! empty ( $settings['status'] ) && $settings['status'] ) ? 'checked' : '';
25 echo '<input type="checkbox" ' .$text. ' name="catchwebtools_social[status]" value="1"/>&nbsp;&nbsp;'. __( 'Check to Enable', 'catchwebtools' );
26 echo '<p class="description">'
27 ?>
28 <ul>
29 <li>
30 <h4><?php _e( 'Shortcode', 'catchwebtools' ); ?></h4>
31
32 <?php _e( 'The shortcode', 'catchwebtools' ); ?>
33 <code>[cathchemes_social_icons]</code>
34 <?php _e( '(in the Post/Page content) will enable Social Icons into the Page/Post.', 'catchwebtools' ); ?>
35
36 <h4><?php _e( 'Widget', 'catchwebtools' ); ?></h4>
37
38 <?php _e( 'Drag and drop Catch Web Tools\' Social Icons Widget to any Sidebar for results.', 'catchwebtools' );?>
39
40 <h4><?php _e( 'In WordPress Template', 'catchwebtools' ); ?></h4>
41
42 <?php _e( 'If Catch Web Tools\' Social Icons is required in WordPress template, the following code can be used: ', 'catchwebtools' );?>:
43
44 <br/>
45
46 <code>&lt;?php
47 if ( function_exists( 'catchwebtools_social_icons' ) )
48 catchwebtools_social_icons();
49 ?&gt;
50 </code>
51
52 <br/>
53
54 <?php _e( 'OR', 'catchwebtools' ); ?>
55
56 <br/>
57
58 <code>
59 &lt;?php
60 echo do_shortcode( '[cathchemes_social_icons]' );
61 ?&gt;
62 </code>
63 </li>
64 </ul>
65 <?php '</p>';
66 ?>
67 </td>
68 </tr>
69 </tbody>
70 </table>
71
72 <?php submit_button('Save Changes'); ?>
73 </div>
74
75 <h3 class="option-toggle"><a href="#"><?php _e( 'Social Icons Settings', 'catchwebtools' ); ?></a></h3>
76 <div class="option-content inside">
77 <table class="form-table">
78 <tbody>
79 <tr>
80 <th scope="row"><?php _e( 'Enable Social Icons Sidebar?', 'catchwebtools' ); ?></th>
81 <td>
82 <a class="button" href="<?php echo admin_url('widgets.php'); ?>" title="<?php esc_attr_e( ' Drag and Drop Catch Web Tools Social Icons widget to any sidebar', 'catchwebtools' ); ?>"><?php _e( ' Drag and Drop Catch Web Tools Social Icons widget to any sidebar', 'catchwebtools' );?></a>
83 </td>
84 </tr>
85
86 <tr>
87 <th scope="row"><?php _e( 'Social Icon Size (px)', 'catchwebtools' ); ?></th>
88 <td>
89 <?php
90 $text = ( ! empty ( $settings['social_icon_size'] ) && $settings['social_icon_size']!= '' ) ? $settings['social_icon_size'] : '32';
91 echo '<input type="text" id="catchwebtools_social_icon_size" name="catchwebtools_social[social_icon_size]" value="'. $text .'"/>';
92 echo '<p class="description"><b>'. __( 'Make sure to set the size to a multiple of 16px', 'catchwebtools' ) . '</b>'. __( ' or the icons could end up looking fuzzy', 'catchwebtools' ) . '</p>';
93 ?>
94 </td>
95 </tr>
96
97 <tr>
98 <th scope="row"><?php _e( 'Social Icon Color', 'catchwebtools' ); ?></th>
99 <td>
100 <?php
101 $text = ( ! empty ( $settings['social_icon_color'] ) && $settings['social_icon_color']!= '' ) ? $settings['social_icon_color'] : '#504f4f';
102 echo '<input type="text" id="catchwebtools_social_color" name="catchwebtools_social[social_icon_color]" value="'. $text.'" />
103 <div id="catchwebtools_social_colorpicker"></div>';
104 ?>
105 </td>
106 </tr>
107
108 <tr>
109 <th scope="row"><?php echo __( 'Facebook', 'catchwebtools' ) . '<span class="genericon genericon-facebook"></span>'; ?></th>
110 <td>
111 <?php
112 $text = ( ! empty ( $settings['Facebook'] ) && $settings['Facebook']!= '' ) ? $settings['Facebook'] : '';
113 echo '<input type="text" size="80" name="catchwebtools_social[Facebook]" value="'. $text .'"/>';
114 ?>
115 </td>
116 </tr>
117
118 <tr>
119 <th scope="row"><?php echo __( 'Twitter', 'catchwebtools' ) . '<span class="genericon genericon-twitter"></span>'; ?></th>
120 <td>
121 <?php
122 $text = ( ! empty ( $settings['Twitter'] ) && $settings['Twitter']!= '' ) ? $settings['Twitter'] : '';
123 echo '<input type="text" size="80" name="catchwebtools_social[Twitter]" value="'. $text .'"/>';
124 ?>
125 </td>
126 </tr>
127
128 <tr>
129 <th scope="row"><?php echo __( 'Google+', 'catchwebtools' ). '<span class="genericon genericon-googleplus"></span>'; ?></th>
130 <td>
131 <?php
132 $text = ( ! empty ( $settings['GooglePlus'] ) && $settings['GooglePlus']!= '' ) ? $settings['GooglePlus'] : '';
133 echo '<input type="text" size="80" name="catchwebtools_social[GooglePlus]" value="'. $text .'"/>';
134 ?>
135 </td>
136 </tr>
137
138 <tr>
139 <th scope="row"><?php echo __( 'Rss Feed', 'catchwebtools' ) . '<span class="genericon genericon-feed"></span>'; ?></th>
140 <td>
141 <?php
142 $text = ( ! empty ( $settings['Feed'] ) && $settings['Feed']!= '' ) ? $settings['Feed'] : '';
143 echo '<input type="text" size="80" name="catchwebtools_social[Feed]" value="'. $text .'"/>';
144 ?>
145 </td>
146 </tr>
147
148 <tr>
149 <th scope="row"><?php echo __( 'WordPress', 'catchwebtools' ) . '<span class="genericon genericon-wordpress"></span>'; ?></th>
150 <td>
151 <?php
152 $text = ( ! empty ( $settings['WordPress'] ) && $settings['WordPress']!= '' ) ? $settings['WordPress'] : '';
153 echo '<input type="text" size="80" name="catchwebtools_social[WordPress]" value="'. $text .'"/>';
154 ?>
155 </td>
156 </tr>
157
158 <tr>
159 <th scope="row"><?php echo __( 'GitHub', 'catchwebtools' ) . '<span class="genericon genericon-github"></span>'; ?></th>
160 <td>
161 <?php
162 $text = ( ! empty ( $settings['GitHub'] ) && $settings['GitHub']!= '' ) ? $settings['GitHub'] : '';
163 echo '<input type="text" size="80" name="catchwebtools_social[GitHub]" value="'. $text .'"/>';
164 ?>
165 </td>
166 </tr>
167
168 <tr>
169 <th scope="row"><?php echo __( 'LinkedIn', 'catchwebtools' ) . '<span class="genericon genericon-linkedin"></span>'; ?></th>
170 <td>
171 <?php
172 $text = ( ! empty ( $settings['LinkedIn'] ) && $settings['LinkedIn']!= '' ) ? $settings['LinkedIn'] : '';
173 echo '<input type="text" size="80" name="catchwebtools_social[LinkedIn]" value="'. $text .'"/>';
174 ?>
175 </td>
176 </tr>
177
178 <tr>
179 <th scope="row"><?php echo __( 'Pinterest', 'catchwebtools' ) . '<span class="genericon genericon-pinterest"></span>'; ?></th>
180 <td>
181 <?php
182 $text = ( ! empty ( $settings['Pinterest'] ) && $settings['Pinterest']!= '' ) ? $settings['Pinterest'] : '';
183 echo '<input type="text" size="80" name="catchwebtools_social[Pinterest]" value="'. $text .'"/>';
184 ?>
185 </td>
186 </tr>
187
188 <tr>
189 <th scope="row"><?php echo __( 'Flickr', 'catchwebtools' ) . '<span class="genericon genericon-flickr"></span>'; ?></th>
190 <td>
191 <?php
192 $text = ( ! empty ( $settings['Flickr'] ) && $settings['Flickr']!= '' ) ? $settings['Flickr'] : '';
193 echo '<input type="text" size="80" name="catchwebtools_social[Flickr]" value="'. $text .'"/>';
194 ?>
195 </td>
196 </tr>
197
198 <tr>
199 <th scope="row"><?php echo __( 'Vimeo', 'catchwebtools' ) . '<span class="genericon genericon-vimeo"></span>'; ?></th>
200 <td>
201 <?php
202 $text = ( ! empty ( $settings['Vimeo'] ) && $settings['Vimeo']!= '' ) ? $settings['Vimeo'] : '';
203 echo '<input type="text" size="80" name="catchwebtools_social[Vimeo]" value="'. $text .'"/>';
204 ?>
205 </td>
206 </tr>
207
208 <tr>
209 <th scope="row"><?php echo __( 'YouTube', 'catchwebtools' ) . '<span class="genericon genericon-youtube"></span>'; ?></th>
210 <td>
211 <?php
212 $text = ( ! empty ( $settings['YouTube'] ) && $settings['YouTube']!= '' ) ? $settings['YouTube'] : '';
213 echo '<input type="text" size="80" name="catchwebtools_social[YouTube]" value="'. $text .'"/>';
214 ?>
215 </td>
216 </tr>
217
218 <tr>
219 <th scope="row"><?php echo __( 'Tumblr', 'catchwebtools' ) . '<span class="genericon genericon-tumblr"></span>'; ?></th>
220 <td>
221 <?php
222 $text = ( ! empty ( $settings['Tumblr'] ) && $settings['Tumblr']!= '' ) ? $settings['Tumblr'] : '';
223 echo '<input type="text" size="80" name="catchwebtools_social[Tumblr]" value="'. $text .'"/>';
224 ?>
225 </td>
226 </tr>
227
228 <tr>
229 <th scope="row"><?php echo __( 'Instagram', 'catchwebtools' ) . '<span class="genericon genericon-instagram"></span>'; ?></th>
230 <td>
231 <?php
232 $text = ( ! empty ( $settings['Instagram'] ) && $settings['Instagram']!= '' ) ? $settings['Instagram'] : '';
233 echo '<input type="text" size="80" name="catchwebtools_social[Instagram]" value="'. $text .'"/>';
234 ?>
235 </td>
236 </tr>
237
238 <tr>
239 <th scope="row"><?php echo __( 'CodePen', 'catchwebtools' ) . '<span class="genericon genericon-codepen"></span>'; ?></th>
240 <td>
241 <?php
242 $text = ( ! empty ( $settings['CodePen'] ) && $settings['CodePen']!= '' ) ? $settings['CodePen'] : '';
243 echo '<input type="text" size="80" name="catchwebtools_social[CodePen]" value="'. $text .'"/>';
244 ?>
245 </td>
246 </tr>
247
248 <tr>
249 <th scope="row"><?php echo __( 'Polldaddy', 'catchwebtools' ) . '<span class="genericon genericon-polldaddy"></span>'; ?></th>
250 <td>
251 <?php
252 $text = ( ! empty ( $settings['Polldaddy'] ) && $settings['Polldaddy']!= '' ) ? $settings['Polldaddy'] : '';
253 echo '<input type="text" size="80" name="catchwebtools_social[Polldaddy]" value="'. $text .'"/>';
254 ?>
255 </td>
256 </tr>
257
258 <tr>
259 <th scope="row"><?php echo __( 'Path', 'catchwebtools' ) . '<span class="genericon genericon-path"></span>'; ?></th>
260 <td>
261 <?php
262 $text = ( ! empty ( $settings['Path'] ) && $settings['Path']!= '' ) ? $settings['Path'] : '';
263 echo '<input type="text" size="80" name="catchwebtools_social[Path]" value="'. $text .'"/>';
264 ?>
265 </td>
266 </tr>
267 <tr>
268 <th scope="row"><?php echo __( 'Dribbble', 'catchwebtools' ) . '<span class="genericon genericon-dribbble"></span>'; ?></th>
269 <td>
270 <?php
271 $text = ( ! empty ( $settings['Dribbble'] ) && $settings['Dribbble']!= '' ) ? $settings['Dribbble'] : '';
272 echo '<input type="text" size="80" name="catchwebtools_social[Dribbble]" value="'. $text .'"/>';
273 ?>
274 </td>
275 </tr>
276 </tbody>
277 </table>
278 <?php submit_button('Save Changes'); ?>
279 </div>
280 </div>
281 </form>
282 </div><!-- #social -->
283 </div><!-- .wrap -->