Plugin Directory

Changeset 3186731


Ignore:
Timestamp:
11/12/2024 09:06:15 PM (17 months ago)
Author:
zhuyi
Message:

version 10.3.3

Location:
wordpress-tooltips/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wordpress-tooltips/trunk/addons/tooltips_languages.php

    r3036292 r3186731  
    6969    }
    7070
     71
     72    //10.3.3
     73    if (isset($_POST['tooltipLanguageReadMeSubmit']))
     74    {
     75        check_admin_referer ( 'tooltipslanguagenonce' );
     76        $tooltipLanguageReadMe = sanitize_text_field($_POST['tooltipLanguageReadMe']);
     77
     78        update_option('tooltipLanguageReadMe', $tooltipLanguageReadMe);
     79        tooltipsMessage('Language of "Read More" has been changed');
     80    }
     81
     82    $tooltipLanguageReadMe = get_option('tooltipLanguageReadMe');
     83    if (empty($tooltipLanguageReadMe))
     84    {
     85        $tooltipLanguageReadMe = 'Read More';
     86    }
     87    //end 10.3.3
     88
    7189    $glossaryLanguageCustomNavALL = get_option('glossaryLanguageCustomNavALL');
    7290    if (empty($glossaryLanguageCustomNavALL))
     
    110128   
    111129    tooltips_free_language_setting_panel($title, $content);
     130
     131    //start 10.3.3
     132    $title = 'Custom "Read More" in the excerpt paragraph -- this "Read More" will only appear when users decide to use the excerpt as the content in glossary ';
     133    $content = '';
     134   
     135    $tooltipLanguageReadMe = get_option('tooltipLanguageReadMe');
     136    if (empty($tooltipLanguageReadMe))
     137    {
     138        $tooltipLanguageReadMe = "Read More";
     139    }
     140   
     141    $content .= '<form class="formTooltips" name="formTooltips" action="" method="POST">';
     142    $content .= wp_nonce_field ( 'tooltipslanguagenonce');
     143    $content .= '<table id="tableTooltips" width="100%">';
     144   
     145    $content .= '<tr style="text-align:left;">';
     146    $content .= '<td width="25%"  style="text-align:left;">';
     147    $content .= 'Custom "Read More" in Tooltips Excerpt: ';
     148    $content .= '</td>';
     149    $content .= '<td width="30%"  style="text-align:left;">';
     150    $content .=  '<input type="text" style="width:300px;" id="tooltipLanguageReadMe" name="tooltipLanguageReadMe" value="'.  $tooltipLanguageReadMe .'" required placeholder="More Details">';
     151    $content .= '</td>';
     152    $content .= '<td width="30%"  style="text-align:left;">';
     153    $content .= '<input type="submit" class="button-primary" id="tooltipLanguageReadMeSubmit" name="tooltipLanguageReadMeSubmit" value=" Submit ">';
     154    $content .= '</td>';
     155    $content .= '</tr>';
     156   
     157    $content .= '</table>';
     158    $content .= '</form>';
     159    tooltips_free_language_setting_panel($title, $content);
     160    //end 10.3.3
    112161}
  • wordpress-tooltips/trunk/readme.txt

    r3177533 r3186731  
    55Tags:tooltip,glossary,dictionary,woocommerce,knowledge base
    66Requires at least: 3.8
    7 Tested up to: 6.6.2
     7Tested up to: 6.6.5
    88Stable tag:trunk
    99License: GPLv3 or later
     
    309309
    310310== Changelog ==
     311= Version 10.3.3 =
     312>[New option in the 'Custom Language' panel](https://tooltips.org/new-option-in-the-custom-language-panel-wordpress-tooltips-free-10-3-3-has-been-released/)
     313
    311314= Version 10.2.3 =
    312315>[How to Hide Letters Without Items in Glossary](https://tooltips.org/how-to-hide-letters-without-items-in-glossary-wordpress-tooltips-free-10-2-3/)
  • wordpress-tooltips/trunk/tooltips.php

    r3177533 r3186731  
    44Plugin URI:  https://tooltips.org/features-of-wordpress-tooltips-plugin/
    55Description: 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: 10.2.3
     6Version: 10.3.3
    77Author: 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>
    88Author URI: https://tooltips.org/wordpress-tooltip-plugin/wordpress-tooltips-demo/
     
    19181918       //!!! end 7.9.7
    19191919    }
    1920     update_option('ztooltipversion','10.2.3');
     1920    update_option('ztooltipversion','10.3.3');
    19211921}
    19221922add_action( 'init', 'upgrade_check');
     
    24122412            {
    24132413                $m_content =  wp_trim_excerpt('',$single->ID);
     2414
     2415                //10.3.3 start
     2416                $m_content_full = $single->post_content ;
     2417                //10.3.3 end
     2418
    24142419                if (empty($single->post_excerpt))
    24152420                {
    2416                     $m_content =  wp_trim_excerpt('',$single->ID);
     2421                    // before 10.3.3 $m_content =  wp_trim_excerpt('',$single->ID);
     2422                    //10.3.3 start
     2423                    $tooltipLanguageReadMe = get_option('tooltipLanguageReadMe');
     2424                    if (empty($tooltipLanguageReadMe))
     2425                    {
     2426                        $tooltipLanguageReadMe = 'Read More';
     2427                    }
     2428                    $excerpt_more = tt_excerpt_more_free($single->ID,$tooltipLanguageReadMe);                       
     2429                    $excerpt_length = 55;
     2430                    $m_content = tt_wp_trim_words_free($m_content_full, $excerpt_length, $excerpt_more);
     2431                    //10.3.3 end
    24172432                }
    24182433                else
Note: See TracChangeset for help on using the changeset viewer.