Changeset 3151847
- Timestamp:
- 09/14/2024 04:46:10 PM (19 months ago)
- Location:
- wordpress-tooltips/trunk
- Files:
-
- 4 edited
-
asset/admin/css/admin.css (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
tooltips.php (modified) (4 diffs)
-
tooltipsfunctions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-tooltips/trunk/asset/admin/css/admin.css
r3101347 r3151847 18 18 , span.questioncontactform7, span.questiontooltipformaxbutton, span.questionlinktooltiptermtotooltippage 19 19 , span.questionaccesstooltipwithtabkey, span.spanquestiontooltipforrightcolumnglossarytable 20 , span.questionenablegutenbergfortooltips 20 21 { 21 22 cursor: pointer; … … 44 45 , span.questiontooltipformaxbutton:hover, span.questionlinktooltiptermtotooltippage:hover 45 46 , span.questionaccesstooltipwithtabkey:hover, span.spanquestiontooltipforrightcolumnglossarytable:hover 47 , span.questionenablegutenbergfortooltips:hover 46 48 { 47 49 background-color: #21759b; … … 53 55 , div.divdisableTooltipandEnableGlossary, div.divquestiontooltipforleftcolumnglossarytable, div.tooltip6 54 56 , div.divtooltipformaxbutton, div.divlinktooltiptermtotooltippage, div.divaccesstooltipwithtabkey 55 , div.divquestiontooltipforrightcolumnglossarytable 57 , div.divquestiontooltipforrightcolumnglossarytable, div.divenablegutenbergfortooltips 56 58 { 57 59 text-align: left; … … 72 74 , .divdisableTooltipandEnableGlossary:before, .divquestiontooltipforleftcolumnglossarytable:before, .tooltip6:before 73 75 , .divtooltipformaxbutton:before, .divlinktooltiptermtotooltippage:before, .divaccesstooltipwithtabkey:before 74 , .divquestiontooltipforrightcolumnglossarytable:before 76 , .divquestiontooltipforrightcolumnglossarytable:before, .divenablegutenbergfortooltips:before 75 77 { 76 78 border-color: transparent #21759b transparent transparent; … … 94 96 , .divtooltipformaxbutton p, .divlinktooltiptermtotooltippage p, .divaccesstooltipwithtabkey p 95 97 , .divquestiontooltipcontentfontstyle p, .divquestiontooltipforrightcolumnglossarytable p 98 , .divenablegutenbergfortooltips p 96 99 { 97 100 margin: 10px; -
wordpress-tooltips/trunk/readme.txt
r3131069 r3151847 5 5 Tags:tooltip,glossary,dictionary,woocommerce,knowledge base 6 6 Requires at least: 3.8 7 Tested up to: 6.6. 17 Tested up to: 6.6.2 8 8 Stable tag:trunk 9 9 License: GPLv3 or later … … 309 309 310 310 == Changelog == 311 = Version 9.9.3 = 312 >[1 We now support using Gutenberg to create and edit wordpress tooltips terms](https://tooltips.org/support-for-creating-and-editing-wordpress-tooltips-in-the-gutenberg-editor-wordpress-tooltips-free-plugin-version-9-9-3-has-been-released/) 313 2 We fixed issues with a few admin tooltips in global settings that were not working well 314 3 We changed a few titles in global settings to make them clearer and more attractive 315 311 316 = Version 9.8.9 = 312 317 >[New option "Glossary Term Capitalization" in Glossary Settings Panel, Instructions on how to use can be found at here](https://tooltips.org/support-for-display-glossary-term-exactly-as-entered-in-the-title-column-of-the-glossary-in-wordpress-tooltips-free-plugin-9-8-9/) -
wordpress-tooltips/trunk/tooltips.php
r3131069 r3151847 4 4 Plugin URI: https://tooltips.org/features-of-wordpress-tooltips-plugin/ 5 5 Description: Wordpress Tooltips,You can add text,image,link,video,radio in tooltips, add tooltips in gallery. More amazing features? Do you want to customize a beautiful style for your tooltips? One Minute, Check <a href='https://tooltips.org/features-of-wordpress-tooltips-plugin/' target='_blank'> Features of WordPress Tooltips Pro</a>. 6 Version: 9. 8.96 Version: 9.9.3 7 7 Author: Tomas | <a href='https://tooltips.org/wordpress-tooltip-plugin/wordpress-tooltip-plugin-document/' target='_blank'>Docs</a> | <a href='https://tooltips.org/faq/' target='_blank'>FAQ</a> | <a href='https://tooltips.org/contact-us' target='_blank'>Premium Support</a> 8 8 Author URI: https://tooltips.org/wordpress-tooltip-plugin/wordpress-tooltips-demo/ … … 157 157 } 158 158 159 /* before 9.9.3 159 160 $args = array( 160 161 'labels' => $labels, … … 172 173 'supports' => array( 'title', 'editor','author','custom-fields','thumbnail','excerpt') //7.5.1 173 174 ); 175 */ 176 177 //9.9.3 178 $enablegutenbergfortooltips = ''; 179 $enablegutenbergfortooltips = get_option('enablegutenbergfortooltips'); 180 if (empty($enablegutenbergfortooltips)) 181 { 182 $enablegutenbergfortooltips = 'NO'; 183 } 184 if ($enablegutenbergfortooltips == 'NO') 185 { 186 $args = array( 187 'labels' => $labels, 188 'public' => $hasGlossaryIndex, 189 'show_ui' => true, 190 'show_in_menu' => true, 191 '_builtin' => false, 192 'query_var' => "tooltips", 193 'rewrite' => $hasGlossaryIndexRewrite, 194 'capability_type' => 'post', 195 'has_archive' => $hasGlossaryIndex, 196 'hierarchical' => false, 197 'menu_position' => null, 198 'exclude_from_search' => $enableGlossarySearchableFlag, 199 'supports' => array( 200 'title', 201 'editor', 202 'author', 203 'custom-fields', 204 'thumbnail', 205 'excerpt' 206 ) 207 ); 208 } 209 else 210 { 211 $args = array( 212 'labels' => $labels, 213 'public' => $hasGlossaryIndex, 214 'show_ui' => true, 215 'show_in_menu' => true, 216 'show_in_rest' => true, 217 '_builtin' => false, 218 'query_var' => "tooltips", 219 'rewrite' => $hasGlossaryIndexRewrite, 220 'capability_type' => 'post', 221 'has_archive' => $hasGlossaryIndex, 222 'hierarchical' => false, 223 'menu_position' => null, 224 'exclude_from_search' => $enableGlossarySearchableFlag, 225 'supports' => array( 226 'title', 227 'editor', 228 'author', 229 'custom-fields', 230 'thumbnail', 231 'excerpt' 232 ) 233 ); 234 } 235 //end 9.9.3 174 236 175 237 register_post_type('tooltips', $args); … … 1734 1796 //!!! end 7.9.7 1735 1797 } 1736 update_option('ztooltipversion','9. 8.9');1798 update_option('ztooltipversion','9.9.3'); 1737 1799 } 1738 1800 add_action( 'init', 'upgrade_check'); -
wordpress-tooltips/trunk/tooltipsfunctions.php
r3036292 r3151847 450 450 $accesstooltipwithtabkey = get_option("accesstooltipwithtabkey"); 451 451 452 452 //9.9.3 453 if (isset($_POST['enablegutenbergfortooltipsSubmit'])) 454 { 455 check_admin_referer('fucwpexpertglobalsettings'); 456 if (isset($_POST['enablegutenbergfortooltips'])) 457 { 458 $enablegutenbergfortooltips = sanitize_text_field($_POST['enablegutenbergfortooltips']); 459 update_option("enablegutenbergfortooltips",$enablegutenbergfortooltips); 460 $enablegutenbergfortooltips = get_option("enablegutenbergfortooltips"); 461 462 } 463 $tooltipsMessageProString = __( 'Changes saved', 'wordpress-tooltips' ); 464 tooltipsMessage($tooltipsMessageProString); 465 } 466 $enablegutenbergfortooltips = get_option("enablegutenbergfortooltips"); 453 467 ?> 454 468 <div style='margin:20px 5px 10px 5px;'> … … 1839 1853 $addtipto = "span.$paneltipspanclassname"; 1840 1854 $addtiptodiv = $admin_tip_content_classname; 1841 $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>"; 1855 // 9.9.3 $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>"; 1856 $questiontip = "<div class=".'"'.$admin_tip_content_classname. '"'."><p>$admin_tip_content</p></div>"; 1842 1857 $tipadsorbent = ".$paneltipspanclassname"; 1843 1858 $adminTip = showAdminTip($addtipto,$questiontip,"div.$admin_tip_content_classname",$tipadsorbent); … … 1876 1891 1877 1892 //start 8.9.5 1878 $panel_title = __( "Enable / Disable access tooltips with tab key ?", "wordpress-tooltips");1893 $panel_title = __( "Enable / Disable access tooltips with tab key", "wordpress-tooltips"); 1879 1894 $panel_label_content = __( "Enable / Disable access tooltip with tab key: ", "wordpress-tooltips"); 1880 1895 $paneltipspanclassname = 'questionaccesstooltipwithtabkey'; … … 1885 1900 $addtipto = "span.$paneltipspanclassname"; 1886 1901 $addtiptodiv = $admin_tip_content_classname; 1887 $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>"; 1902 // before 9.9.3 $questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>"; 1903 $questiontip = "<div class=".'"'.$admin_tip_content_classname. '"'."><p>$admin_tip_content</p></div>"; 1888 1904 $tipadsorbent = ".$paneltipspanclassname"; 1889 1905 $adminTip = showAdminTip($addtipto,$questiontip,"div.$admin_tip_content_classname",$tipadsorbent); … … 1933 1949 tom_display_panel_in_admin_free($panel_title,$panel_label,$panel_content,$adminTip,$panel_submit_button_name,$panel_submit_label,$panel_tip_link); 1934 1950 //end 8.9.5 1951 1952 1953 //9.9.3 and 31.4.8 start 1954 1955 $panel_title = __( "Enable / Disable Gutenberg for Tooltips", "wordpress-tooltips"); 1956 $panel_label_content = __( "Enable Gutenberg for Tooltips: ", "wordpress-tooltips"); 1957 $paneltipspanclassname = 'questionenablegutenbergfortooltips'; 1958 $paneltipspanclass = " <span class='$paneltipspanclassname'>?</span>"; 1959 $panel_label = $panel_label_content.$paneltipspanclass; 1960 $admin_tip_content = __('Opt to Enable / Disable Gutenberg Editor for Tooltips', "wordpress-tooltips"); 1961 $admin_tip_content_classname = "divenablegutenbergfortooltips"; 1962 $addtipto = "span.$paneltipspanclassname"; 1963 $addtiptodiv = $admin_tip_content_classname; 1964 //$questiontip = "<div class=\'$admin_tip_content_classname\'><p>$admin_tip_content</p></div>"; 1965 //9.9.3 1966 $questiontip = "<div class=".'"'.$admin_tip_content_classname. '"'."><p>$admin_tip_content</p></div>"; 1967 $tipadsorbent = ".$paneltipspanclassname"; 1968 $adminTip = showAdminTip($addtipto,$questiontip,"div.$admin_tip_content_classname",$tipadsorbent); 1969 $panel_submit_button_name = 'enablegutenbergfortooltipsSubmit'; 1970 1971 $enablegutenbergfortooltips = ''; 1972 $enablegutenbergfortooltips = get_option('enablegutenbergfortooltips'); 1973 if (empty($enablegutenbergfortooltips)) 1974 { 1975 $enablegutenbergfortooltips = 'NO'; 1976 } 1977 1978 $panel_content = '<select id="enablegutenbergfortooltips" name="enablegutenbergfortooltips" style="width:300px;">'; 1979 if ($enablegutenbergfortooltips == 'NO') 1980 { 1981 $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="NO" selected="">'. __("NO, disable Gutenberg for tooltips", "wordpress-tooltips"). "</option>"; 1982 } 1983 else 1984 { 1985 $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="NO">'. __("NO, disable Gutenberg for tooltips", "wordpress-tooltips"). "</option>"; 1986 } 1987 1988 1989 if ($enablegutenbergfortooltips == 'YES') 1990 { 1991 $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="YES" selected="">'. __('Yes, enable Gutenberg for tooltips', "wordpress-tooltips") . "</option>"; 1992 } 1993 else 1994 { 1995 $panel_content .= '<option id="enablegutenbergfortooltipsOption" value="YES">'. __('Yes, enable Gutenberg for tooltips', "wordpress-tooltips") . "</option>"; 1996 } 1997 1998 $panel_content .='</select>'; 1999 $panel_submit_label_content = 'Update Now'; 2000 $panel_submit_label = __($panel_submit_label_content, "wordpress-tooltips"); 2001 $panel_tip_link = ''; 2002 2003 tom_display_panel_in_admin_free($panel_title,$panel_label,$panel_content,$adminTip,$panel_submit_button_name,$panel_submit_label,$panel_tip_link); 2004 //9.9.3 and 34.4.8 end 2005 1935 2006 ?> 1936 2007 <?php /* //!!! start 7.7.1 ?>
Note: See TracChangeset
for help on using the changeset viewer.