Changeset 1026533
- Timestamp:
- 11/16/2014 01:31:24 AM (11 years ago)
- Location:
- feedback-side-tab/trunk
- Files:
-
- 2 edited
-
feedback-side-tab.php (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
feedback-side-tab/trunk/feedback-side-tab.php
r1021683 r1026533 4 4 Plugin URI: http://www.grabimo.com 5 5 Description: A feedback tab on your web. Enable your customers to provide feedbacks in video, audio, photo. You approve and publish video to YouTube with 1-click. photo, and text formats. 6 Version: 1.4. 06 Version: 1.4.1 7 7 Author: Grabimo 8 8 Author URI: http://www.grabimo.com … … 49 49 if (!array_key_exists('tab_offset', $multimedia_feedback_tab_plugin_option_array)) { 50 50 // but not show_title 51 $multimedia_feedback_tab_plugin_option_array[ 'tab_offset' ] = '50'; 51 $multimedia_feedback_tab_plugin_option_array[ 'tab_offset' ] = '50%'; 52 } else { 53 $oldVar = $multimedia_feedback_tab_plugin_option_array[ 'tab_offset' ]; 54 if (is_numeric($oldVar)) { 55 $multimedia_feedback_tab_plugin_option_array[ 'tab_offset' ] = $oldVar . '%'; 56 } 52 57 } 53 58 … … 66 71 'hover_color' => '#A4A4A4', 67 72 'tab_align' => 'right', 68 'tab_offset' => '50 ',73 'tab_offset' => '50%', 69 74 'corner_radius' => '5', 70 75 'show_title' => '1' … … 145 150 $multimedia_feedback_tab_text_for_tab = $multimedia_feedback_tab_plugin_option_array['text_for_tab']; 146 151 $multimedia_feedback_tab_align = $multimedia_feedback_tab_plugin_option_array['tab_align']; 147 $multimedia_feedback_tab_business_alias = $multimedia_feedback_tab_plugin_option_array['business_alias'];152 $multimedia_feedback_tab_business_alias = sanitize_text_field($multimedia_feedback_tab_plugin_option_array['business_alias']); 148 153 $multimedia_feedback_tab_font_family = $multimedia_feedback_tab_plugin_option_array[ 'font_family' ]; 149 $multimedia_feedback_tab_show_title = $multimedia_feedback_tab_plugin_option_array[ 'show_title' ]; 154 $multimedia_feedback_tab_show_title = $multimedia_feedback_tab_plugin_option_array[ 'show_title' ]; 150 155 151 156 // set side of page for tab … … 234 239 235 240 <tr valign="top"> 236 <td><label for="multimedia_feedback_tab_pixels_from_top">Offset to bottom or right (%)</label></td>237 <td><input maxlength=" 4" size="4" type="text" name="multimedia_feedback_tab_plugin_options[tab_offset]" value="<?php echo sanitize_text_field( $multimedia_feedback_tab_offset ); ?>" />241 <td><label for="multimedia_feedback_tab_pixels_from_top">Offset to bottom or right</label></td> 242 <td><input maxlength="10" size="10" type="text" placeholder="0-100%" name="multimedia_feedback_tab_plugin_options[tab_offset]" value="<?php echo sanitize_text_field( $multimedia_feedback_tab_offset ); ?>" /> 238 243 <p class="description">The offset in percentage measures from the right side when your tab aligns the top or bottom side of the web browser. Otherwise, it measures from the bottom side.</td> 239 244 </tr> … … 313 318 $multimedia_feedback_tab_font_weight_bold = $multimedia_feedback_tab_plugin_option_array[ 'font_weight_bold' ]; 314 319 $multimedia_feedback_tab_text_shadow = $multimedia_feedback_tab_plugin_option_array[ 'text_shadow' ]; 315 $multimedia_feedback_tab_offset = $multimedia_feedback_tab_plugin_option_array[ 'tab_offset' ];320 $multimedia_feedback_tab_offset = $multimedia_feedback_tab_plugin_option_array[ 'tab_offset' ]; 316 321 $multimedia_feedback_tab_text_color = $multimedia_feedback_tab_plugin_option_array[ 'text_color' ]; 317 322 $multimedia_feedback_tab_tab_color = $multimedia_feedback_tab_plugin_option_array[ 'tab_color' ]; … … 362 367 .multimedia_feedback_tab_left { 363 368 left:-1px; 364 bottom: <?php echo $multimedia_feedback_tab_offset; ?> %;369 bottom: <?php echo $multimedia_feedback_tab_offset; ?>; 365 370 cursor: pointer; 366 371 -webkit-transform-origin:0 0; … … 377 382 .multimedia_feedback_tab_right { 378 383 right:-1px; 379 bottom: <?php echo $multimedia_feedback_tab_offset; ?> %;384 bottom: <?php echo $multimedia_feedback_tab_offset; ?>; 380 385 cursor: pointer; 381 386 -webkit-transform-origin:100% 100%; … … 392 397 .multimedia_feedback_tab_bottom { 393 398 bottom:-1px; 394 right: <?php echo $multimedia_feedback_tab_offset; ?> %;399 right: <?php echo $multimedia_feedback_tab_offset; ?>; 395 400 cursor: pointer; 396 401 } … … 398 403 .multimedia_feedback_tab_top { 399 404 top:-1px; 400 right: <?php echo $multimedia_feedback_tab_offset; ?> %;405 right: <?php echo $multimedia_feedback_tab_offset; ?>; 401 406 cursor: pointer; 402 407 } -
feedback-side-tab/trunk/readme.txt
r1021683 r1026533 5 5 Requires at least: 3.0 6 6 Tested up to: 3.8 7 Stable tag: 1.4. 07 Stable tag: 1.4.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 92 92 == Changelog == 93 93 94 = 1.4.1 = 95 * trim business alias 96 94 97 = 1.4.0 = 95 98 * supported flexible locations
Note: See TracChangeset
for help on using the changeset viewer.