Changeset 1267016
- Timestamp:
- 10/16/2015 12:23:52 AM (10 years ago)
- Location:
- daves-wordpress-live-search/trunk
- Files:
-
- 7 edited
-
admin/admin_footer.tpl.php (modified) (1 diff)
-
admin/admin_header.tpl.php (modified) (2 diffs)
-
admin/daves-wordpress-live-search-admin-advanced.tpl.php (modified) (4 diffs)
-
admin/daves-wordpress-live-search-admin-appearance.tpl.php (modified) (8 diffs)
-
admin/daves-wordpress-live-search-admin.tpl.php (modified) (4 diffs)
-
class-daves-wordpress-live-search.php (modified) (6 diffs)
-
daves-wordpress-live-search.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
daves-wordpress-live-search/trunk/admin/admin_footer.tpl.php
r771341 r1267016 1 1 <?php if ( !defined( 'ABSPATH' ) ) die( "Cannot access files directly." ); ?> 2 2 3 <p><?php printf( __( "Do you find this plugin useful? Consider a donation to %sCat Guardians%s, a wonderful no-kill shelter where I volunteer.", 'dwls' ), '<a href="http://catguardians.org">', '</a>' ); ?></p> 4 <p><?php printf( __( "Please help make Dave's WordPress Live Search available to people all over the world. Visit %sour translation tool%s and help translate. Thanks Crowdin for hosting this project's translation efforts!", 'dwls' ), '<a href="http://crowdin.net/project/daves-wordpress-live-search">', '</a>' ); ?></p> 3 <p><?php printf( __( "Do you find this plugin useful? Consider a donation to %sCat Guardians%s, a wonderful no-kill shelter where I volunteer.", 'daves-wordpress-live-search' ), '<a href="http://catguardians.org">', '</a>' ); ?></p> -
daves-wordpress-live-search/trunk/admin/admin_header.tpl.php
r1225121 r1267016 16 16 <div class="wrap"> 17 17 <?php if( $wp_pre_4_3 ) : ?><h2><?php else : ?><h1><?php endif; ?> 18 <?php _e( "Dave's WordPress Live Search Options", 'd wls' ); ?>18 <?php _e( "Dave's WordPress Live Search Options", 'daves-wordpress-live-search' ); ?> 19 19 <?php if( $wp_pre_4_3 ) : ?></h2><?php else : ?></h1><?php endif; ?> 20 20 <ul class="subsubsub"> … … 25 25 <?php foreach( $tabs as $tab_param => $tab_label ) : ?> 26 26 <li class="<?php echo $tab_param; ?>"> 27 <a href="<?php echo add_query_arg( 'tab', $tab_param, $_SERVER['REQUEST_URI'] ); ?>" class=" <?php if( $current_tab === $tab_param ) : ?>current<?php endif; ?>"><?php _e( $tab_label, 'd wls' ); ?></a><?php if( $tab_param !== $last_tab_param ) : ?> |<?php endif; ?>27 <a href="<?php echo add_query_arg( 'tab', $tab_param, $_SERVER['REQUEST_URI'] ); ?>" class=" <?php if( $current_tab === $tab_param ) : ?>current<?php endif; ?>"><?php _e( $tab_label, 'daves-wordpress-live-search' ); ?></a><?php if( $tab_param !== $last_tab_param ) : ?> |<?php endif; ?> 28 28 </li> 29 29 <?php endforeach; ?> -
daves-wordpress-live-search/trunk/admin/daves-wordpress-live-search-admin-advanced.tpl.php
r771341 r1267016 3 3 <?php include dirname( __FILE__ ) . "/admin_header.tpl.php"; ?> 4 4 <tr valign="top"> 5 <th scope="row"><?php _e( "Exceptions", 'd wls' ); ?></th>5 <th scope="row"><?php _e( "Exceptions", 'daves-wordpress-live-search' ); ?></th> 6 6 7 7 <td> 8 8 <?php $permalinkFormat = get_option( 'permalink_structure' ); ?> 9 9 10 <div><span class="setting-description"><?php printf( __( "Enter the %s of pages which should not have live searching, one per line. The * wildcard can be used at the start or end of a line. For example: %s", 'd wls' ), empty( $permalinkFormat ) ? __( 'paths', 'dwls' ) : __( 'permalinks' ), '<ul style="list-style-type:disc;margin-left: 3em;">' . empty( $permalinkFormat ) ? '<li>?page_id=123</li><li>page_id=1*</li>' : '<li>about</li><li>employee-*</li>' . '</ul>' ); ?>10 <div><span class="setting-description"><?php printf( __( "Enter the %s of pages which should not have live searching, one per line. The * wildcard can be used at the start or end of a line. For example: %s", 'daves-wordpress-live-search' ), empty( $permalinkFormat ) ? __( 'paths', 'daves-wordpress-live-search' ) : __( 'permalinks' ), '<ul style="list-style-type:disc;margin-left: 3em;">' . empty( $permalinkFormat ) ? '<li>?page_id=123</li><li>page_id=1*</li>' : '<li>about</li><li>employee-*</li>' . '</ul>' ); ?> 11 11 12 <p><strong><?php _e( "NOTE", 'd wls' ); ?>:</strong> <?php _e( "These pages will still be returned in search results. This only disables the Live Search feature for the search box on these pages.", 'dwls' ); ?></p></span></div>12 <p><strong><?php _e( "NOTE", 'daves-wordpress-live-search' ); ?>:</strong> <?php _e( "These pages will still be returned in search results. This only disables the Live Search feature for the search box on these pages.", 'daves-wordpress-live-search' ); ?></p></span></div> 13 13 <textarea name="daves-wordpress-live-search_exceptions" id="daves-wordpress-live-search_exceptions" rows="5" cols="60"><?php echo $exceptions; ?></textarea></td> 14 14 </tr> … … 16 16 <!-- X Offset --> 17 17 <tr valign="top"> 18 <th scope="row"><?php _e( "Search Results box X offset", 'd wls' ); ?></th>18 <th scope="row"><?php _e( "Search Results box X offset", 'daves-wordpress-live-search' ); ?></th> 19 19 20 20 <td> 21 <div><span class="setting-description"><?php _e( "Use this setting to move the search results box left or right to align exactly with your theme's search field. Value is in pixels. Negative values move the box to the left, positive values move it to the right.", 'd wls' ); ?></span></div>21 <div><span class="setting-description"><?php _e( "Use this setting to move the search results box left or right to align exactly with your theme's search field. Value is in pixels. Negative values move the box to the left, positive values move it to the right.", 'daves-wordpress-live-search' ); ?></span></div> 22 22 23 23 <input type="text" name="daves-wordpress-live-search_xoffset" id="daves-wordpress-live-search_xoffset" value="<?php echo $xOffset; ?>"</td> … … 26 26 <!-- Y Offset --> 27 27 <tr valign="top"> 28 <th scope="row"><?php _e( "Search Results box Y offset", 'd wls' ); ?></th>28 <th scope="row"><?php _e( "Search Results box Y offset", 'daves-wordpress-live-search' ); ?></th> 29 29 30 30 <td> 31 <div><span class="setting-description"><?php _e( "Use this setting to move the search results box up or down to align exactly with your theme's search field. Value is in pixels. Negative values move the box up, positive values move it down.", 'd wls' ); ?></span></div>31 <div><span class="setting-description"><?php _e( "Use this setting to move the search results box up or down to align exactly with your theme's search field. Value is in pixels. Negative values move the box up, positive values move it down.", 'daves-wordpress-live-search' ); ?></span></div> 32 32 33 33 <input type="text" name="daves-wordpress-live-search_yoffset" id="daves-wordpress-live-search_yoffset" value="<?php echo $yOffset; ?>"</td> … … 36 36 <!-- Apply the_content filter --> 37 37 <tr valign="top"> 38 <th scope="row"><?php _e( "Enable content filter", 'd wls' ); ?></th>38 <th scope="row"><?php _e( "Enable content filter", 'daves-wordpress-live-search' ); ?></th> 39 39 40 <td><input type="checkbox" name="daves-wordpress-live-search_apply_content_filter" id="daves-wordpress-live-search_apply_content_filter" value="true" <?php checked( $applyContentFilter ); ?> /> <label for="daves-wordpress-live-search_apply_content_filter"><?php _e("Allow other plugins to filter the content before looking for a thumbnail. This will affect Live Search performance, so only enable this if you really need it.", 'd wls'); ?></label></td>40 <td><input type="checkbox" name="daves-wordpress-live-search_apply_content_filter" id="daves-wordpress-live-search_apply_content_filter" value="true" <?php checked( $applyContentFilter ); ?> /> <label for="daves-wordpress-live-search_apply_content_filter"><?php _e("Allow other plugins to filter the content before looking for a thumbnail. This will affect Live Search performance, so only enable this if you really need it.", 'daves-wordpress-live-search'); ?></label></td> 41 41 </tr> 42 42 -
daves-wordpress-live-search/trunk/admin/daves-wordpress-live-search-admin-appearance.tpl.php
r771341 r1267016 3 3 <?php include dirname( __FILE__ ) . "/admin_header.tpl.php"; ?> 4 4 <tr valign="top"> 5 <th scope="row"><?php _e( "Display Metadata", 'd wls' ); ?></th>5 <th scope="row"><?php _e( "Display Metadata", 'daves-wordpress-live-search' ); ?></th> 6 6 7 7 <td> 8 8 <input type="hidden" name="daves-wordpress-live-search_display_post_meta" value="" /> 9 <input type="checkbox" name="daves-wordpress-live-search_display_post_meta" id="daves-wordpress-live-search_display_post_meta" value="true" <?php checked( $displayPostMeta ); ?> /> <label for="daves-wordpress-live-search_display_post_meta"><?php _e( "Display author & date for every search result", 'd wls' ); ?></label>9 <input type="checkbox" name="daves-wordpress-live-search_display_post_meta" id="daves-wordpress-live-search_display_post_meta" value="true" <?php checked( $displayPostMeta ); ?> /> <label for="daves-wordpress-live-search_display_post_meta"><?php _e( "Display author & date for every search result", 'daves-wordpress-live-search' ); ?></label> 10 10 </td> 11 11 </tr> … … 13 13 <!-- Display post thumbnail --> 14 14 <tr valign="top"> 15 <th scope="row"><?php _e( "Display Post Thumbnail", 'd wls' ); ?></th>15 <th scope="row"><?php _e( "Display Post Thumbnail", 'daves-wordpress-live-search' ); ?></th> 16 16 17 17 <td> 18 18 <input type="hidden" name="daves-wordpress-live-search_thumbs" value="" /> 19 <input type="checkbox" name="daves-wordpress-live-search_thumbs" id="daves-wordpress-live-search_thumbs" value="true" <?php checked( $showThumbs ); ?> /> <label for="daves-wordpress-live-search_thumbs"><?php _e( "Display thumbnail images for every search result with at least one image", 'd wls' ); ?></label>19 <input type="checkbox" name="daves-wordpress-live-search_thumbs" id="daves-wordpress-live-search_thumbs" value="true" <?php checked( $showThumbs ); ?> /> <label for="daves-wordpress-live-search_thumbs"><?php _e( "Display thumbnail images for every search result with at least one image", 'daves-wordpress-live-search' ); ?></label> 20 20 </td> 21 21 </tr> … … 23 23 <!-- Display post excerpt --> 24 24 <tr valign="top"> 25 <th scope="row"><?php _e( "Display Post Excerpt", 'd wls' ); ?></th>25 <th scope="row"><?php _e( "Display Post Excerpt", 'daves-wordpress-live-search' ); ?></th> 26 26 27 27 <td> 28 28 <input type="hidden" name="daves-wordpress-live-search_excerpt" value="" /> 29 <input type="checkbox" name="daves-wordpress-live-search_excerpt" id="daves-wordpress-live-search_excerpt" value="true" <?php checked( $showExcerpt ); ?> /> <label for="daves-wordpress-live-search_excerpt"><?php printf( __( "Display an excerpt for every search result. If the post doesn't have one, use the first %s characters.", 'd wls' ), "<input type=\"text\" name=\"daves-wordpress-live-search_excerpt_length\" id=\"daves-wordpress-live-search_excerpt_length\" value=\"$excerptLength\" size=\"3\" />"); ?></label>29 <input type="checkbox" name="daves-wordpress-live-search_excerpt" id="daves-wordpress-live-search_excerpt" value="true" <?php checked( $showExcerpt ); ?> /> <label for="daves-wordpress-live-search_excerpt"><?php printf( __( "Display an excerpt for every search result. If the post doesn't have one, use the first %s characters.", 'daves-wordpress-live-search' ), "<input type=\"text\" name=\"daves-wordpress-live-search_excerpt_length\" id=\"daves-wordpress-live-search_excerpt_length\" value=\"$excerptLength\" size=\"3\" />"); ?></label> 30 30 </td> 31 31 </tr> … … 33 33 <!-- Display 'more results' --> 34 34 <tr valign="top"> 35 <th scope="row"><?php _e( "Display "View more results" link", 'd wls' ); ?></th>35 <th scope="row"><?php _e( "Display "View more results" link", 'daves-wordpress-live-search' ); ?></th> 36 36 37 37 <td> 38 38 <input type="hidden" name="daves-wordpress-live-search_more_results" value="" /> 39 <input type="checkbox" name="daves-wordpress-live-search_more_results" id="daves-wordpress-live-search_more_results" value="true" <?php checked( $showMoreResultsLink ); ?> /> <label for="daves-wordpress-live-search_more_results"><?php _e( "Display the "View more results" link after the search results.", 'd wls' ); ?></label>39 <input type="checkbox" name="daves-wordpress-live-search_more_results" id="daves-wordpress-live-search_more_results" value="true" <?php checked( $showMoreResultsLink ); ?> /> <label for="daves-wordpress-live-search_more_results"><?php _e( "Display the "View more results" link after the search results.", 'daves-wordpress-live-search' ); ?></label> 40 40 </td> 41 41 </tr> … … 43 43 <!-- CSS styles --> 44 44 <tr valign="top"> 45 <td colspan="2"><h3><?php _e( "Styles", 'd wls' ); ?></h3></td>45 <td colspan="2"><h3><?php _e( "Styles", 'daves-wordpress-live-search' ); ?></h3></td> 46 46 </tr> 47 47 … … 49 49 <th scope="row"> </th> 50 50 <td> 51 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_gray" value="default_gray" <?php checked( $cssOption, 'default_gray' ); ?> /> <label for="daves-wordpress-live-search_css_default_gray"><?php _e( "Default Gray", 'd wls' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in gray.", 'dwls' ); ?></span>51 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_gray" value="default_gray" <?php checked( $cssOption, 'default_gray' ); ?> /> <label for="daves-wordpress-live-search_css_default_gray"><?php _e( "Default Gray", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in gray.", 'daves-wordpress-live-search' ); ?></span> 52 52 <br /><br /> 53 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_red" value="default_red" <?php checked( $cssOption, 'default_red' ); ?> /> <label for="daves-wordpress-live-search_css_default_red"><?php _e( "Default Red", 'd wls' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in red", 'dwls' ); ?></span>53 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_red" value="default_red" <?php checked( $cssOption, 'default_red' ); ?> /> <label for="daves-wordpress-live-search_css_default_red"><?php _e( "Default Red", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in red", 'daves-wordpress-live-search' ); ?></span> 54 54 <br /><br /> 55 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_blue" value="default_blue" <?php checked( $cssOption, 'default_blue' ); ?> /> <label for="daves-wordpress-live-search_css_default_blue"><?php _e( "Default Blue", 'd wls' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in blue", 'dwls' ); ?></span>55 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_blue" value="default_blue" <?php checked( $cssOption, 'default_blue' ); ?> /> <label for="daves-wordpress-live-search_css_default_blue"><?php _e( "Default Blue", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in blue", 'daves-wordpress-live-search' ); ?></span> 56 56 <br /><br /> 57 57 58 58 <?php if( $color_picker_supported ) : ?> 59 59 60 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_custom" value="custom" <?php checked( $cssOption, 'custom' ); ?> /> <label for="daves-wordpress-live-search_css_custom"><?php _e( "Custom", 'd wls' ); ?></label><br /><span class="setting-description"><?php _e( "Customize the search results display here", 'dwls' ); ?></span>60 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_custom" value="custom" <?php checked( $cssOption, 'custom' ); ?> /> <label for="daves-wordpress-live-search_css_custom"><?php _e( "Custom", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Customize the search results display here", 'daves-wordpress-live-search' ); ?></span> 61 61 62 62 <div id="custom_colors" style="display:none;"> … … 68 68 <div id="custom_colors_options"> 69 69 70 <div><label><?php _e("Width (in pixels)", 'd wls'); ?></label><input type="number" name="daves-wordpress-live-search_custom[width]" id="daves-wordpress-live-search_custom_width" value="<?php if(!empty($customOptions['width'])) echo $customOptions['width']; else echo "250" ?>" /></div>70 <div><label><?php _e("Width (in pixels)", 'daves-wordpress-live-search'); ?></label><input type="number" name="daves-wordpress-live-search_custom[width]" id="daves-wordpress-live-search_custom_width" value="<?php if(!empty($customOptions['width'])) echo $customOptions['width']; else echo "250" ?>" /></div> 71 71 72 <div><label><?php _e("Title", 'd wls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[title]" id="daves-wordpress-live-search_custom_title" value="<?php if(!empty($customOptions['title'])) echo $customOptions['title']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>72 <div><label><?php _e("Title", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[title]" id="daves-wordpress-live-search_custom_title" value="<?php if(!empty($customOptions['title'])) echo $customOptions['title']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div> 73 73 74 <div><label><?php _e("Excerpt", 'd wls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[fg]" id="daves-wordpress-live-search_custom_fg" value="<?php if(!empty($customOptions['fg'])) echo $customOptions['fg']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>74 <div><label><?php _e("Excerpt", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[fg]" id="daves-wordpress-live-search_custom_fg" value="<?php if(!empty($customOptions['fg'])) echo $customOptions['fg']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div> 75 75 76 <div><label><?php _e("Background", 'd wls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[bg]" id="daves-wordpress-live-search_custom_bg" value="<?php if(!empty($customOptions['bg'])) echo $customOptions['bg']; ?>" data-default-color="#ddd" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>76 <div><label><?php _e("Background", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[bg]" id="daves-wordpress-live-search_custom_bg" value="<?php if(!empty($customOptions['bg'])) echo $customOptions['bg']; ?>" data-default-color="#ddd" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div> 77 77 78 <div><label><?php _e("Hover Background", 'd wls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[hoverbg]" id="daves-wordpress-live-search_custom_hoverbg" value="<?php if(!empty($customOptions['hoverbg'])) echo $customOptions['hoverbg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>78 <div><label><?php _e("Hover Background", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[hoverbg]" id="daves-wordpress-live-search_custom_hoverbg" value="<?php if(!empty($customOptions['hoverbg'])) echo $customOptions['hoverbg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div> 79 79 80 <div><label><?php _e("Divider", 'd wls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[divider]" id="daves-wordpress-live-search_custom_divider" value="<?php if(!empty($customOptions['divider'])) echo $customOptions['divider']; ?>" data-default-color="#aaa" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>80 <div><label><?php _e("Divider", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[divider]" id="daves-wordpress-live-search_custom_divider" value="<?php if(!empty($customOptions['divider'])) echo $customOptions['divider']; ?>" data-default-color="#aaa" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div> 81 81 82 <div><label><?php _e("Footer Background", 'd wls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footbg]" id="daves-wordpress-live-search_custom_footbg" value="<?php if(!empty($customOptions['footbg'])) echo $customOptions['footbg']; ?>" data-default-color="#888" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>82 <div><label><?php _e("Footer Background", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footbg]" id="daves-wordpress-live-search_custom_footbg" value="<?php if(!empty($customOptions['footbg'])) echo $customOptions['footbg']; ?>" data-default-color="#888" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div> 83 83 84 <div><label><?php _e("Footer Text", 'd wls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footfg]" id="daves-wordpress-live-search_custom_footfg" value="<?php if(!empty($customOptions['footfg'])) echo $customOptions['footfg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>84 <div><label><?php _e("Footer Text", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footfg]" id="daves-wordpress-live-search_custom_footfg" value="<?php if(!empty($customOptions['footfg'])) echo $customOptions['footfg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div> 85 85 86 <div><label><?php _e("Shadow", 'd wls'); ?></label><input type="checkbox" name="daves-wordpress-live-search_custom[shadow]" id="daves-wordpress-live-search_custom_shadow" value="true" class="dwls_design_toggle" <?php checked(!empty($customOptions['shadow'])); ?> /></div>86 <div><label><?php _e("Shadow", 'daves-wordpress-live-search'); ?></label><input type="checkbox" name="daves-wordpress-live-search_custom[shadow]" id="daves-wordpress-live-search_custom_shadow" value="true" class="dwls_design_toggle" <?php checked(!empty($customOptions['shadow'])); ?> /></div> 87 87 88 88 </div> … … 93 93 <?php endif; ?> 94 94 95 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_theme" value="theme" <?php checked($cssOption, 'theme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific", 'd wls'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'dwls'); ?>:</strong> <?php _e("Theme must include a CSS file named daves-wordpress-live-search.css. If your theme does not have one, copy daves-wordpress-live-search_default_gray.css from this plugin's directory into your theme's directory and modify as desired.", 'dwls'); ?></span>95 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_theme" value="theme" <?php checked($cssOption, 'theme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific", 'daves-wordpress-live-search'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'daves-wordpress-live-search'); ?>:</strong> <?php _e("Theme must include a CSS file named daves-wordpress-live-search.css. If your theme does not have one, copy daves-wordpress-live-search_default_gray.css from this plugin's directory into your theme's directory and modify as desired.", 'daves-wordpress-live-search'); ?></span> 96 96 <br /><br /> 97 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_existing_theme" value="notheme" <?php checked($cssOption, 'notheme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific (theme's own CSS file)", 'd wls'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'dwls'); ?>:</strong> <?php _e("Use the styles contained within your Theme's stylesheet. Don't include a separate stylesheet for Live Search.", 'dwls'); ?>97 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_existing_theme" value="notheme" <?php checked($cssOption, 'notheme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific (theme's own CSS file)", 'daves-wordpress-live-search'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'daves-wordpress-live-search'); ?>:</strong> <?php _e("Use the styles contained within your Theme's stylesheet. Don't include a separate stylesheet for Live Search.", 'daves-wordpress-live-search'); ?> 98 98 </td> 99 99 </tr> -
daves-wordpress-live-search/trunk/admin/daves-wordpress-live-search-admin.tpl.php
r771341 r1267016 3 3 <?php include dirname(__FILE__)."/admin_header.tpl.php"; ?> 4 4 <tr valign="top"> 5 <th scope="row"><?php _e("Maximum Results to Display", 'd wls'); ?></th>5 <th scope="row"><?php _e("Maximum Results to Display", 'daves-wordpress-live-search'); ?></th> 6 6 7 <td><input type="text" name="daves-wordpress-live-search_max_results" id="daves-wordpress-live-search_max_results" value="<?php echo $maxResults; ?>" class="regular-text code" /><span class="setting-description"><?php _e("Enter "0" to display all matching results", 'd wls'); ?></span></td>7 <td><input type="text" name="daves-wordpress-live-search_max_results" id="daves-wordpress-live-search_max_results" value="<?php echo $maxResults; ?>" class="regular-text code" /><span class="setting-description"><?php _e("Enter "0" to display all matching results", 'daves-wordpress-live-search'); ?></span></td> 8 8 </tr> 9 9 10 10 <tr valign="top"> 11 <th scope="row"><?php _e("Minimum characters before searching", 'd wls'); ?></th>11 <th scope="row"><?php _e("Minimum characters before searching", 'daves-wordpress-live-search'); ?></th> 12 12 13 13 <td> 14 14 <select name="daves-wordpress-live-search_minchars"> 15 <option value="1" <?php selected($minCharsToSearch, 1); ?>><?php _e("Search right away", 'd wls'); ?></option>16 <option value="2" <?php selected($minCharsToSearch, 2); ?>><?php _e("Wait for two characters", 'd wls'); ?></option>17 <option value="3" <?php selected($minCharsToSearch, 3); ?>><?php _e("Wait for three characters", 'd wls'); ?></option>18 <option value="4" <?php selected($minCharsToSearch, 4); ?>><?php _e("Wait for four characters", 'd wls'); ?></option>15 <option value="1" <?php selected($minCharsToSearch, 1); ?>><?php _e("Search right away", 'daves-wordpress-live-search'); ?></option> 16 <option value="2" <?php selected($minCharsToSearch, 2); ?>><?php _e("Wait for two characters", 'daves-wordpress-live-search'); ?></option> 17 <option value="3" <?php selected($minCharsToSearch, 3); ?>><?php _e("Wait for three characters", 'daves-wordpress-live-search'); ?></option> 18 <option value="4" <?php selected($minCharsToSearch, 4); ?>><?php _e("Wait for four characters", 'daves-wordpress-live-search'); ?></option> 19 19 </select> 20 20 </td> … … 23 23 24 24 <tr valign="top"> 25 <th scope="row"><?php _e("Results Direction", 'd wls'); ?></th>25 <th scope="row"><?php _e("Results Direction", 'daves-wordpress-live-search'); ?></th> 26 26 27 <td><input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_down" value="down" <?php checked(empty($resultsDirection)); checked($resultsDirection, 'down'); ?> /> <label for="daves-wordpress-live-search_results_direction_down"><?php _e("Down", 'd wls'); ?></input></label>27 <td><input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_down" value="down" <?php checked(empty($resultsDirection)); checked($resultsDirection, 'down'); ?> /> <label for="daves-wordpress-live-search_results_direction_down"><?php _e("Down", 'daves-wordpress-live-search'); ?></input></label> 28 28 29 <input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_up" value="up" <?php checked($resultsDirection, 'up'); ?> /> <label for="daves-wordpress-live-search_results_direction_up"><?php _e("Up", 'd wls'); ?></label><br /><span class="setting-description"><?php _e("When search results are displayed, in which direction should the results box extend from the search box?", 'dwls'); ?></span></td>29 <input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_up" value="up" <?php checked($resultsDirection, 'up'); ?> /> <label for="daves-wordpress-live-search_results_direction_up"><?php _e("Up", 'daves-wordpress-live-search'); ?></label><br /><span class="setting-description"><?php _e("When search results are displayed, in which direction should the results box extend from the search box?", 'daves-wordpress-live-search'); ?></span></td> 30 30 </tr> 31 31 … … 33 33 <?php if(defined('WPSC_VERSION')) : ?> 34 34 <tr valign="top"> 35 <td colspan="2"><h3><?php _e("WP E-Commerce", 'd wls'); ?></h3></td>35 <td colspan="2"><h3><?php _e("WP E-Commerce", 'daves-wordpress-live-search'); ?></h3></td> 36 36 </tr> 37 37 … … 39 39 <th scope="row"> </th> 40 40 <td> 41 <div><span class="setting-description"><?php printf(__("When used with the %sWP E-Commerce%s plugin, Dave's WordPress Live Search can search your product catalog instead of posts & pages.", 'd wls'), '<a href="http://getshopped.org/">', '</a>'); ?></span></div>41 <div><span class="setting-description"><?php printf(__("When used with the %sWP E-Commerce%s plugin, Dave's WordPress Live Search can search your product catalog instead of posts & pages.", 'daves-wordpress-live-search'), '<a href="http://getshopped.org/">', '</a>'); ?></span></div> 42 42 <table> 43 <tr><td><input type="radio" id="daves-wordpress-live-search_source_1" name="daves-wordpress-live-search_source" value="0" <?php checked($searchSource, 0); ?> /> <label for="daves-wordpress-live-search_source_1"><?php _e("Search posts & pages", 'd wls'); ?></label></td></tr>44 <tr><td><input type="radio" id="daves-wordpress-live-search_source_2" name="daves-wordpress-live-search_source" value="1" <?php checked($searchSource, 1); ?> /> <label for="daves-wordpress-live-search_source_2"><?php _e("Search products", 'd wls'); ?></label></td></tr>43 <tr><td><input type="radio" id="daves-wordpress-live-search_source_1" name="daves-wordpress-live-search_source" value="0" <?php checked($searchSource, 0); ?> /> <label for="daves-wordpress-live-search_source_1"><?php _e("Search posts & pages", 'daves-wordpress-live-search'); ?></label></td></tr> 44 <tr><td><input type="radio" id="daves-wordpress-live-search_source_2" name="daves-wordpress-live-search_source" value="1" <?php checked($searchSource, 1); ?> /> <label for="daves-wordpress-live-search_source_2"><?php _e("Search products", 'daves-wordpress-live-search'); ?></label></td></tr> 45 45 </table> 46 46 -
daves-wordpress-live-search/trunk/class-daves-wordpress-live-search.php
r1225143 r1267016 18 18 public static function advanced_search_init() { 19 19 20 load_plugin_textdomain( 'd wls', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );20 load_plugin_textdomain( 'daves-wordpress-live-search', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 21 21 if ( self::isSearchablePage() ) { 22 22 wp_enqueue_script( 'underscore' ); … … 159 159 160 160 // Translations 161 $moreResultsText = __( 'View more results', 'd wls' );162 $outdatedJQueryText = __( "Dave's WordPress Live Search requires jQuery 1.2.6 or higher. WordPress ships with current jQuery versions. But if you are seeing this message, it's likely that another plugin is including an earlier version.", 'd wls' );161 $moreResultsText = __( 'View more results', 'daves-wordpress-live-search' ); 162 $outdatedJQueryText = __( "Dave's WordPress Live Search requires jQuery 1.2.6 or higher. WordPress ships with current jQuery versions. But if you are seeing this message, it's likely that another plugin is including an earlier version.", 'daves-wordpress-live-search' ); 163 163 164 164 // Neat trick: use wp_localize_script to generate the config object … … 194 194 public static function admin_menu() { 195 195 196 add_options_page( "Dave's WordPress Live Search Options", __( 'Live Search', 'd wls' ), 'manage_options', __FILE__, array(196 add_options_page( "Dave's WordPress Live Search Options", __( 'Live Search', 'daves-wordpress-live-search' ), 'manage_options', __FILE__, array( 197 197 'DavesWordPressLiveSearch', 198 198 'plugin_options' … … 252 252 update_option( 'daves-wordpress-live-search_source', $searchSource ); 253 253 254 $updateMessage = __( 'Options saved.', 'd wls' );254 $updateMessage = __( 'Options saved.', 'daves-wordpress-live-search' ); 255 255 echo "<div class=\"updated fade\"><p><strong>$updateMessage</strong></p></div>"; 256 256 } else { … … 298 298 // Translate the "Options saved" message...just in case. 299 299 // You know...the code I was copying for this does it, thought it might be a good idea to leave it 300 $updateMessage = __( 'Options saved.', 'd wls' );300 $updateMessage = __( 'Options saved.', 'daves-wordpress-live-search' ); 301 301 302 302 echo "<div class=\"updated fade\"><p><strong>$updateMessage</strong></p></div>"; … … 337 337 // Translate the "Options saved" message...just in case. 338 338 // You know...the code I was copying for this does it, thought it might be a good idea to leave it 339 $updateMessage = __( 'Options saved.', 'd wls' );339 $updateMessage = __( 'Options saved.', 'daves-wordpress-live-search' ); 340 340 341 341 echo "<div class=\"updated fade\"><p><strong>$updateMessage</strong></p></div>"; -
daves-wordpress-live-search/trunk/daves-wordpress-live-search.php
r1225133 r1267016 8 8 Author URI: http://davidmichaelross.com/ 9 9 Plugin URI: http://wordpress.org/extend/plugins/daves-wordpress-live-search/ 10 Text Domain: daves-wordpress-live-search 10 11 */ 11 12
Note: See TracChangeset
for help on using the changeset viewer.