Plugin Directory

Changeset 2869254


Ignore:
Timestamp:
02/22/2023 09:52:23 AM (3 years ago)
Author:
subscribers
Message:

site language added

Location:
subscribers-com/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • subscribers-com/trunk/firebase-messaging-sw.js.php

    r2089230 r2869254  
    22require("config.php");
    33header("Content-Type: application/javascript");
     4$site_lang = get_option('subscribers_lang');
    45?>
     6var siteLanguage = "<?php echo $site_lang; ?>";
    57var version = '1.5';
    68importScripts("https://<?php echo $subscribers_cdn_host; ?>/assets/subscribers-sw.js");
  • subscribers-com/trunk/readme.txt

    r2823804 r2869254  
    9191== Changelog ==
    9292
     93= 1.5.3 =
     94* Site language option added
     95
    9396= 1.5.2 =
    9497* Capability test with wordpress version 5.5, ready for WP 5.5
  • subscribers-com/trunk/subscribers.php

    r2519904 r2869254  
    5353function subscribers_register_mysettings(){
    5454  register_setting('subscribers_options','subscribers_hash');
     55  register_setting('subscribers_options','subscribers_lang');
    5556}
    5657
     
    150151    <?php do_settings_sections( 'subscribers_options' ); ?>
    151152
    152     <label for="subscribers_hash" style="font-size: 120%; display: block; margin-top: 2em;">Your Subscriber Site ID:</label>
     153    <label for="subscribers_hash" style="font-size: 120%; display: block; margin-top: 2em;">Your Subscriber Site ID: *Mandatory</label>
    153154    <input type="text" id="subscribers_hash" name="subscribers_hash" value="<?php echo get_option('subscribers_hash'); ?>" style="margin-top: 0.5em;" size="50"/>
     155
     156    <label for="subscribers_lang" style="font-size: 120%; display: block; margin-top: 2em;">Your Site's primary Language code (Refer - https://datahub.io/core/language-codes/r/0.html) *Optional:</label>
     157    <input type="text" id="subscribers_lang" name="subscribers_lang" value="<?php echo get_option('subscribers_lang'); ?>" style="margin-top: 0.5em;" size="50"/>
    154158
    155159    <?php submit_button(); ?>
Note: See TracChangeset for help on using the changeset viewer.