Plugin Directory

Changeset 1574454


Ignore:
Timestamp:
01/14/2017 03:40:05 AM (9 years ago)
Author:
danielsummers
Message:

Modified plugin to not attempt to retrieve guides, as the campaign this plugin supported is no longer active

Location:
4040-prayer-vigil/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 4040-prayer-vigil/trunk/4040-class.php

    r566175 r1574454  
    1212   
    1313    /** Version. */
    14     const FORTYFORTY_VERSION = '2012.0';
     14    const FORTYFORTY_VERSION = '2017.0';
    1515   
    1616    /** Web service URL home. */
     
    169169    public function PrayerGuide() {
    170170       
    171         $guideDateTime = $this->GetCurrentDateTime();
    172        
    173         if ( ! $this->IsWithinRange( $guideDateTime ) ) {
     171        //$guideDateTime = $this->GetCurrentDateTime();
     172       
     173    //    if ( ! $this->IsWithinRange( $guideDateTime ) ) {
    174174            return '';
    175         }
    176        
     175    //    }
     176        /*
    177177        if ( is_array( $this->_cache ) && $this->_cache[ FortyForty::CACHE_DATE ] == $guideDateTime )
    178178            return $this->_cache[ FortyForty::CACHE_CONTENT ];
     
    193193        update_option( FortyForty::CACHE_OPTION_SET, $this->_cache );
    194194       
    195         return $content;
     195        return $content; */
    196196    }
    197197   
     
    201201     * @return string The date or date/time for the prayer guide.
    202202     */
    203     private function GetCurrentDateTime() {
     203    /*private function GetCurrentDateTime() {
    204204       
    205205        if ( ! empty( $this->_options[ FortyForty::DEBUG_DATE ] ) )
     
    212212                : $currentTime->format( 'Y-m-d' );
    213213       
    214     }
     214    }*/
    215215   
    216216    /**
     
    220220     * @return boolean True if the date is within the display range, false if not.
    221221     */
    222     private function IsWithinRange( $guideDateTime ) {
     222    /*private function IsWithinRange( $guideDateTime ) {
    223223       
    224224        // If we have a guide number forced, we're in the range.
     
    235235       
    236236        return ( ( $date >= $startRange ) && ( $date <= $endRange ) );
    237     }
     237    }*/
    238238   
    239239    /**
     
    243243     * @return string The number for the prayer guide.
    244244     */
    245     private function GetNumber( $guideDateTime ) {
     245    /*private function GetNumber( $guideDateTime ) {
    246246       
    247247        if ( ! empty( $this->_options[ FortyForty::DEBUG_NUMBER ] ) )
     
    249249       
    250250        return FortyForty::HttpGet( sprintf( '/Number/%s/%s', ucfirst( $this->Type() ), $guideDateTime ) );
    251     }
     251    }*/
    252252   
    253253    /**
     
    257257     * @return string The response.
    258258     */
    259     private static function HttpGet( $url ) {
     259    /*private static function HttpGet( $url ) {
    260260        return file_get_contents( FortyForty::URL_HOME . $url );
    261     }
     261    }*/
    262262   
    263263    /**
     
    270270    public static function GetOptionList( $url, $tag ) {
    271271       
    272         $doc = new DOMDocument();
     272        /*$doc = new DOMDocument();
    273273        $doc->loadXML(FortyForty::HttpGet( $url ) );
    274274       
     
    279279                'id'    => ( '' ==  $elt->getAttribute("id") ) ? $elt->textContent : $elt->getAttribute( 'id' ),
    280280                'value' => $elt->textContent
    281             );
    282        
     281            );*/
     282        $optionsList = array();
     283                $optionsList[] = array('id' => '', 'value' => 'N/A');
    283284        return $optionList;
    284285    }
  • 4040-prayer-vigil/trunk/4040-options.php

    r566175 r1574454  
    6767<div class="wrap">
    6868    <h2><?php _e( '40/40 Prayer Vigil', 'fortyforty_plugin' ); ?></h2>
    69     <form method="post" action="options.php"><?php
     69    <form method="post" action="options.php">
     70        <!--
    7071        settings_fields( '4040-prayer-vigil' );
    7172        do_settings_sections( '4040-prayer-vigil' ); ?>
    7273        <br />
    73         <?php submit_button(); ?>
     74        <?php submit_button(); ?> -->
    7475        <p>
    7576            <strong><?php _e( 'NOTE', 'fortyforty_plugin' ); ?>:</strong>
    76             <?php _e( "The plugin caches the current day's or hour's results.", 'fortyforty_plugin' );
    77             _e( 'To force a refresh, just save this page with no changes', 'fortyforty_plugin' ); ?>
     77            <?php _e( "The ERLC is no longer producing the 40/40 Prayer Vigil. You can deactivate/uninstall this plugin.", 'fortyforty_plugin' ); ?>
    7878        </p>
    79         <p>
    80             <strong><?php _e( 'NOTE', 'fortyforty_plugin' ); ?>:</strong>
    81             <?php _e( 'Invalid values in the form above will be silently translated to valid ones.', 'fortyforty_plugin' ); ?>
    82         </p>
    8379    </form>
    8480    <p>
  • 4040-prayer-vigil/trunk/4040-prayer-vigil.php

    r566174 r1574454  
    1010This plug-in provides a widget to display either the daily or hourly prayer guides. For more information on the 40/40
    1111Prayer Vigil, created by the Ethics and Religious Liberty Commission of the Southern Baptist Convention, see
    12 http://erlc.com/4040. 
     12http://erlc.com/4040.  (Updated in 2017 - the ERLC is no longer doing this.  This plug-in may be uninstalled.)
    1313*/
    1414
  • 4040-prayer-vigil/trunk/readme.txt

    r566178 r1574454  
    33Tags: prayer, guide
    44Requires at least: 3.2
    5 Tested up to: 3.4.1
    6 Stable tag: 2012.0
     5Tested up to: 4.7.1
     6Stable tag: 2017.0
    77
    8 This plugin provides the daily or hourly prayer guides for the 40/40 Prayer Vigil (English) and 40/40 Campaña de
    9 Oración (Español).
     8As the ERLC is no longer producing the 40/40 Prayer Vigil (English) and 40/40 Campaña de Oración (Español), this plugin
     9should be deactivated and uninstalled.
    1010
    1111== Description ==
    1212
    13 This plugin utilizes a web service from DJS Consulting (http://services.djs-consulting.com/FortyForty) to display the
    14 current day or hour's suggested prayer guide for the 40/40 Prayer Vigil.  The "40/40" part means that you can pray for
    15 either 40 days or 40 hours.  For days, the 2012 vigil runs from September 26th through November 4th; for hours, it runs
    16 from 4pm on November 2nd through 7am on November 4th.
    17 
    18 This plugin utilizes your blog's local date/time to display the current guide as the vigil is proceeding.  It caches
    19 the results, so there should be next to no extra work for the page displays on your blog.  You can select the language,
    20 the version that is used for the Scripture links, and the number of days before and after the actual vigil that the
    21 widget will be displayed.
     13A plugin that should be uninstalled.  This version will not attempt to find a prayer guide, no matter what you try, and
     14the web service it used has also been decommissioned.
    2215
    2316== Installation ==
    2417
    25 Unzip the archive, and upload the "4040-prayer-vigil" directory to your wp-content/plugins directory.  Once activated,
    26 the widget will be available for use, and the options page should appear under the "Settings" menu.
    27 
    28 This plugin requires PHP 5, libxml, and a server that can make outbound web (HTTP) requests and does not block
    29 services.djs-consulting.com.
    30 
    31 == Frequently Asked Questions ==
    32 
    33 = How Can I Know What It Looks Like Before the Vigil Begins? =
    34 
    35 On the options page, there are settings that will force the guide to display for a particular date or date/time, or for
    36 a day or hour number.  Select one of those to set, and you can see the results.  Be sure to clear them when you are
    37 done, so you won't miss the actual guides once the vigil begins!
    38 
    39 = Can I Change the Styling? =
    40 
    41 Yes.  The div tag containing the guide has the id attribute of "FortyFortyPrayerGuide".  You can create CSS based on
    42 that ID, and it will style the guide the way you like.  To see the tags to style, you can enable the debugging settings
    43 described above and view the source, or you can go to
    44 http://services.djs-consulting.com/FortyForty/PrayerGuide/html/2012/en/ESV/day/1 for a sample.
     18Don't.
    4519
    4620== Changelog ==
     21
     22= 2017.0 =
     23
     24Amended with uninstallation request
    4725
    4826= 2012.0 =
Note: See TracChangeset for help on using the changeset viewer.