Plugin Directory

Changeset 3468683


Ignore:
Timestamp:
02/24/2026 01:54:19 PM (5 weeks ago)
Author:
adatosystems
Message:

added 3 additional announcement shortcodes

Location:
zmanim-wp
Files:
1226 added
3 edited

Legend:

Unmodified
Added
Removed
  • zmanim-wp/trunk/README.txt

    r3463637 r3468683  
    44Tags: #time #zmanim #jewish
    55Tested up to: 6.9
    6 Stable tag: 2.3.0
     6Stable tag: 2.4.0
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    255255
    256256== Changelog ==
     257= 2.4.0 =
     258* Added 3 additional announcement boxes (shortcode: zman_announcement1 through zman_announcement4)
     259
    257260= 2.3.0 =
    258261* Added announcement box (shortcode: zman_announcement)
  • zmanim-wp/trunk/zmanim-wp-functions.php

    r3463637 r3468683  
    9191        $location = "BKCS Cleveland";
    9292    }
    93     $announcement = get_option( 'wpkz_announcement' );
    94     if ( !$announcement ) {
    95         $location = "";
    96     }
     93    // $announcement1 = get_option( 'wpkz_announcement1' );
     94    // if ( !$announcement1 ) {
     95    //     $announcement1 = "";
     96    // }
     97    // $announcement2 = get_option( 'wpkz_announcement2' );
     98    // if ( !$announcement2 ) {
     99    //     $announcement2 = "";
     100    // }
     101    // $announcement3 = get_option( 'wpkz_announcement3' );
     102    // if ( !$announcement3 ) {
     103    //     $announcement3 = "";
     104    // }
     105    // $announcement4 = get_option( 'wpkz_announcement4' );
     106    // if ( !$announcement4 ) {
     107    //     $announcement4 = "";
     108    // }
    97109    if ( !$dateinput ) {
    98110        $dateinput == "today";
     
    181193    } // end location_handler
    182194
    183     function announcement_handler() {
    184         $announcement = get_option( 'wpkz_announcement' );
    185         if ( !$announcement ) {
    186             $announcement = "";
    187         }
    188         return $announcement;
    189     } // end announcement_handler
     195    function announcement1_handler() {
     196        $announcement1 = get_option( 'wpkz_announcement1' );
     197        if ( !$announcement1 ) {
     198            $announcement1 = "";
     199        }
     200        return $announcement1;
     201    } // end announcement1_handler
     202
     203    function announcement2_handler() {
     204        $announcement2 = get_option( 'wpkz_announcement2' );
     205        if ( !$announcement2 ) {
     206            $announcement2 = "";
     207        }
     208        return $announcement2;
     209    } // end announcement2_handler
     210
     211    function announcement3_handler() {
     212        $announcement3 = get_option( 'wpkz_announcement3' );
     213        if ( !$announcement3 ) {
     214            $announcement3 = "";
     215        }
     216        return $announcement3;
     217    } // end announcement3_handler
     218
     219    function announcement4_handler() {
     220        $announcement4 = get_option( 'wpkz_announcement4' );
     221        if ( !$announcement4 ) {
     222            $announcement4 = "";
     223        }
     224        return $announcement4;
     225    } // end announcement4_handler
    190226
    191227    function nusach_handler() {
  • zmanim-wp/trunk/zmanim-wp.php

    r3463637 r3468683  
    1111 * Plugin URI:        https://www.adatosystems.com/zmanim-wp/
    1212 * Description:       Choose from a variety of shitot (opinions), use shortcodes (with options) to display those times in posts, pages, and widgets. With gratitude to Eliyahu Hershfeld, Zachary Weixelbaum, and Elyahu Jacobi.
    13  * Version:           2.3.0
     13 * Version:           2.4.0
    1414 * Author:            Leon Adato
    1515 * Author URI:        https://adatosystems.com/
     
    128128    ) );
    129129
    130     register_setting( 'zmanim_wp-settings_general', 'wpkz_announcement', array(
     130    register_setting( 'zmanim_wp-settings_general', 'wpkz_announcement1', array(
    131131        'type'              => 'string',
    132132        'sanitize_callback' => 'wp_kses_post',
    133133    ) );
    134 
     134    register_setting( 'zmanim_wp-settings_general', 'wpkz_announcement2', array(
     135        'type'              => 'string',
     136        'sanitize_callback' => 'wp_kses_post',
     137    ) );
     138    register_setting( 'zmanim_wp-settings_general', 'wpkz_announcement3', array(
     139        'type'              => 'string',
     140        'sanitize_callback' => 'wp_kses_post',
     141    ) );
     142    register_setting( 'zmanim_wp-settings_general', 'wpkz_announcement4', array(
     143        'type'              => 'string',
     144        'sanitize_callback' => 'wp_kses_post',
     145    ) );
    135146}
    136147
     
    298309            <input name="wpkz_chodesh" value="<?php echo esc_html( get_option( 'wpkz_chodesh' ) ); ?>"/>
    299310      </td></tr>
    300       <tr><td>Announcement Text: </td>
    301         <td>This text will appear wherever you use the zman_announcement shortcode. HTML tags are permitted:
    302             <textarea name="wpkz_announcement" rows="10" cols="50" maxlength="5000"><?php echo esc_html(get_option('wpkz_announcement'));?></textarea>
     311      <tr><td>Announcement 1 Text: </td>
     312        <td>This text will appear wherever you use the zman_announcement1 shortcode. HTML tags are permitted:
     313            <textarea name="wpkz_announcement1" rows="10" cols="50" maxlength="5000"><?php echo esc_html(get_option('wpkz_announcement1'));?></textarea>
     314      </td></tr>     
     315      <tr><td>Announcement 2 Text: </td>
     316        <td>This text will appear wherever you use the zman_announcement2 shortcode. HTML tags are permitted:
     317            <textarea name="wpkz_announcement2" rows="10" cols="50" maxlength="5000"><?php echo esc_html(get_option('wpkz_announcement3'));?></textarea>
     318      </td></tr>     
     319      <tr><td>Announcement 3 Text: </td>
     320        <td>This text will appear wherever you use the zman_announcement3 shortcode. HTML tags are permitted:
     321            <textarea name="wpkz_announcement3" rows="10" cols="50" maxlength="5000"><?php echo esc_html(get_option('wpkz_announcement3'));?></textarea>
     322      </td></tr>     
     323      <tr><td>Announcement 4 Text: </td>
     324        <td>This text will appear wherever you use the zman_announcement4 shortcode. HTML tags are permitted:
     325            <textarea name="wpkz_announcement4" rows="10" cols="50" maxlength="5000"><?php echo esc_html(get_option('wpkz_announcement4'));?></textarea>
    303326      </td></tr>     
    304327    </table>
     
    14451468    'tzone',
    14461469    'location',
    1447     'announcement',
     1470    'announcement1',
     1471    'announcement2',
     1472    'announcement3',
     1473    'announcement4',
    14481474    'lat',
    14491475    'long',
Note: See TracChangeset for help on using the changeset viewer.