Plugin Directory

Changeset 3443319


Ignore:
Timestamp:
01/20/2026 02:01:52 PM (2 months ago)
Author:
sergiotrinity
Message:

v5.25.1

Location:
trinity-audio/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trinity-audio/trunk/README.txt

    r3442287 r3443319  
    174174== Changelog ==
    175175
     176= 5.25.1 =
     177 *Release Date - Jan 20, 2026*
     178 * Updated banner texts
     179
    176180= 5.25.0 =
    177181 *Release Date - Jan 19, 2026*
  • trinity-audio/trunk/inc/common.php

    r3430436 r3443319  
    468468  function trinity_audio_ajax_remove_post_banner() {
    469469    check_ajax_referer('remove_post_banner_action', TRINITY_AUDIO_AJAX_NONCE_NAME);
    470 
    471     update_option(TRINITY_AUDIO_REMOVE_POST_BANNER, '0');
     470    update_option(TRINITY_AUDIO_REMOVE_POST_BANNER, time());
    472471  }
    473472
  • trinity-audio/trunk/inc/constants.php

    r3371934 r3443319  
    2929
    3030  const BREAK_MACRO = '⏸';
     31  const TRINITY_AUDIO_BANNER_TTL_SECONDS = 7 * 24 * 60 * 60;
    3132  const BLOCK_MACRO = '▇';
    3233
     
    114115  const TRINITY_AUDIO_FEEDBACK_MESSAGE = 'trinity_audio_feedback_message';
    115116
    116   const TRINITY_AUDIO_PACKAGES_DATA = array(
    117     'Free'      => array(
    118       'translation'     => 'No',
    119       'description'     => 'For blog and content creators with up to 5 articles per month',
    120       'player_features' => 'No',
    121       'support'         => 'No',
    122       'dashboard'       => 'No'
    123     ),
    124     'Wordpress' => array(
    125       'translation'     => 'No',
    126       'description'     => 'For blog and content creators with up to 5 articles per month',
    127       'player_features' => 'No',
    128       'support'         => 'No',
    129       'dashboard'       => 'No'
    130     ),
    131     'Basic'     => array(
    132       'translation'     => 'Yes',
    133       'description'     => 'Perfect for Blogs & Small publications',
    134       'player_features' => 'Basic',
    135       'support'         => 'Up to 2 business days',
    136       'dashboard'       => 'No'
    137     ),
    138     'Standard'  => array(
    139       'translation'     => 'Yes',
    140       'description'     => 'Perfect for medium publications with larger content volume',
    141       'player_features' => 'Upgraded',
    142       'support'         => 'Up to 1 business days',
    143       'dashboard'       => 'Yes'
    144     ),
    145     'Premium'   => array(
    146       'translation'     => 'Yes',
    147       'description'     => 'A custom solution for all publications',
    148       'player_features' => 'Custom',
    149       'support'         => '24/7',
    150       'dashboard'       => 'Yes'
    151     ),
    152   );
    153 
    154117  const TRINITY_AUDIO_POST_MANAGEMENT_SUCCESS_MESSAGES = [
    155118    'activate-all-posts'       => 'Trinity Audio Player enabled for all ##AMOUNT## posts',
  • trinity-audio/trunk/inc/templates.php

    r3430436 r3443319  
    5454    if ($package_name === 'Wordpress') $package_name = 'Free';
    5555
    56     $packageInfo = TRINITY_AUDIO_PACKAGES_DATA[$package_name];
    57     $cap_type    = $package_data->capType;
     56    $cap_type = $package_data->capType;
    5857
    5958    $result['html'] .= "<div class='plan-banner-wrapper'>
     
    6968    }
    7069
    71     $result['html'] .= "<div class='plan-name'>" . esc_html($package_name) . "</div>
    72             <div class='description'>" . esc_html($packageInfo['description']) . "</div>";
     70    $result['html'] .= "<div class='plan-name'>" . esc_html($package_name) . "</div>";
    7371
    7472    if ($cap_type === 'chars') {
     
    147145          <div class="upgrade-odds">
    148146              <ul>
    149                   <li>Convert more article</li>
    150                   <li>Natural voices & accents</li>
    151                   <li>Edit & customize your audio</li>
     147                  <li>Get more credits</li>
     148                  <li>GenAI voices</li>
     149                  <li>Create podcasts</li>
     150                  <li>Monetize your content</li>
    152151              </ul>
    153152          </div>
     
    179178
    180179  function trinity_post_management_banner() {
    181     $messages    = [
    182       "Get additional credits to convert more content into audio each month.",
    183       "Create and edit pronunciation rules for accuracy and the highest level of audio experience.",
    184       "Get access to premium and natural-sounding AI voices.",
    185       "Get access to your personal dashboard with usability analytics.",
    186       "Select the player’s theme that best suits your website’s branding elements."
     180    $messages = [
     181      "Convert unlimited articles with premium voices and advanced features.",
     182      "Get detailed analytics and insights about your audio engagement.",
     183      "Access voice cloning and custom pronunciation controls.",
     184      "Distribute your audio content to Spotify, Apple, and Google Podcasts.",
     185      "Access AI-powered content summaries and background music.",
     186      "Clone your own voice for consistent brand narration.",
     187      "Add background music and create professional podcast episodes."
    187188    ];
    188     $message     = array_rand($messages);
    189     $show_banner = get_option(TRINITY_AUDIO_REMOVE_POST_BANNER);
    190 
    191     if ($show_banner !== '0'): ?>
     189    $message = array_rand($messages);
     190   
     191    $banner_dismissed_time = get_option(TRINITY_AUDIO_REMOVE_POST_BANNER);
     192    $should_show_banner = true;
     193   
     194    if ($banner_dismissed_time) {
     195      $should_show_banner = (time() - intval($banner_dismissed_time)) > TRINITY_AUDIO_BANNER_TTL_SECONDS;
     196    }
     197
     198    if ($should_show_banner): ?>
    192199        <div class="container">
    193200            <div class="header">
  • trinity-audio/trunk/trinity.php

    r3442287 r3443319  
    99   * Plugin URI:        https://www.trinityaudio.ai/the-trinity-audio-wordpress-plugin-implementation-guide
    1010   * Description:       This plugin generates an audio version of the post, for absolutely FREE. You can choose the language and the gender of the voice reading your content. You also have the option to add Trinity Audio's player on select posts or have it audiofy all of your content. In both cases, it only takes a few simple clicks to get it done. The plugin is built through collaboration with the Amazon Polly team.
    11    * Version:           5.25.0
     11   * Version:           5.25.1
    1212   * Author:            Trinity Audio
    1313   * Author URI:        https://trinityaudio.ai/
Note: See TracChangeset for help on using the changeset viewer.