Changeset 1574454
- Timestamp:
- 01/14/2017 03:40:05 AM (9 years ago)
- Location:
- 4040-prayer-vigil/trunk
- Files:
-
- 4 edited
-
4040-class.php (modified) (12 diffs)
-
4040-options.php (modified) (1 diff)
-
4040-prayer-vigil.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
4040-prayer-vigil/trunk/4040-class.php
r566175 r1574454 12 12 13 13 /** Version. */ 14 const FORTYFORTY_VERSION = '201 2.0';14 const FORTYFORTY_VERSION = '2017.0'; 15 15 16 16 /** Web service URL home. */ … … 169 169 public function PrayerGuide() { 170 170 171 $guideDateTime = $this->GetCurrentDateTime();172 173 if ( ! $this->IsWithinRange( $guideDateTime ) ) {171 //$guideDateTime = $this->GetCurrentDateTime(); 172 173 // if ( ! $this->IsWithinRange( $guideDateTime ) ) { 174 174 return ''; 175 }176 175 // } 176 /* 177 177 if ( is_array( $this->_cache ) && $this->_cache[ FortyForty::CACHE_DATE ] == $guideDateTime ) 178 178 return $this->_cache[ FortyForty::CACHE_CONTENT ]; … … 193 193 update_option( FortyForty::CACHE_OPTION_SET, $this->_cache ); 194 194 195 return $content; 195 return $content; */ 196 196 } 197 197 … … 201 201 * @return string The date or date/time for the prayer guide. 202 202 */ 203 private function GetCurrentDateTime() {203 /*private function GetCurrentDateTime() { 204 204 205 205 if ( ! empty( $this->_options[ FortyForty::DEBUG_DATE ] ) ) … … 212 212 : $currentTime->format( 'Y-m-d' ); 213 213 214 } 214 }*/ 215 215 216 216 /** … … 220 220 * @return boolean True if the date is within the display range, false if not. 221 221 */ 222 private function IsWithinRange( $guideDateTime ) {222 /*private function IsWithinRange( $guideDateTime ) { 223 223 224 224 // If we have a guide number forced, we're in the range. … … 235 235 236 236 return ( ( $date >= $startRange ) && ( $date <= $endRange ) ); 237 } 237 }*/ 238 238 239 239 /** … … 243 243 * @return string The number for the prayer guide. 244 244 */ 245 private function GetNumber( $guideDateTime ) {245 /*private function GetNumber( $guideDateTime ) { 246 246 247 247 if ( ! empty( $this->_options[ FortyForty::DEBUG_NUMBER ] ) ) … … 249 249 250 250 return FortyForty::HttpGet( sprintf( '/Number/%s/%s', ucfirst( $this->Type() ), $guideDateTime ) ); 251 } 251 }*/ 252 252 253 253 /** … … 257 257 * @return string The response. 258 258 */ 259 private static function HttpGet( $url ) {259 /*private static function HttpGet( $url ) { 260 260 return file_get_contents( FortyForty::URL_HOME . $url ); 261 } 261 }*/ 262 262 263 263 /** … … 270 270 public static function GetOptionList( $url, $tag ) { 271 271 272 $doc = new DOMDocument();272 /*$doc = new DOMDocument(); 273 273 $doc->loadXML(FortyForty::HttpGet( $url ) ); 274 274 … … 279 279 'id' => ( '' == $elt->getAttribute("id") ) ? $elt->textContent : $elt->getAttribute( 'id' ), 280 280 'value' => $elt->textContent 281 ); 282 281 );*/ 282 $optionsList = array(); 283 $optionsList[] = array('id' => '', 'value' => 'N/A'); 283 284 return $optionList; 284 285 } -
4040-prayer-vigil/trunk/4040-options.php
r566175 r1574454 67 67 <div class="wrap"> 68 68 <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 <!-- 70 71 settings_fields( '4040-prayer-vigil' ); 71 72 do_settings_sections( '4040-prayer-vigil' ); ?> 72 73 <br /> 73 <?php submit_button(); ?> 74 <?php submit_button(); ?> --> 74 75 <p> 75 76 <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' ); ?> 78 78 </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>83 79 </form> 84 80 <p> -
4040-prayer-vigil/trunk/4040-prayer-vigil.php
r566174 r1574454 10 10 This plug-in provides a widget to display either the daily or hourly prayer guides. For more information on the 40/40 11 11 Prayer Vigil, created by the Ethics and Religious Liberty Commission of the Southern Baptist Convention, see 12 http://erlc.com/4040. 12 http://erlc.com/4040. (Updated in 2017 - the ERLC is no longer doing this. This plug-in may be uninstalled.) 13 13 */ 14 14 -
4040-prayer-vigil/trunk/readme.txt
r566178 r1574454 3 3 Tags: prayer, guide 4 4 Requires at least: 3.2 5 Tested up to: 3.4.16 Stable tag: 201 2.05 Tested up to: 4.7.1 6 Stable tag: 2017.0 7 7 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).8 As the ERLC is no longer producing the 40/40 Prayer Vigil (English) and 40/40 Campaña de Oración (Español), this plugin 9 should be deactivated and uninstalled. 10 10 11 11 == Description == 12 12 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. 13 A plugin that should be uninstalled. This version will not attempt to find a prayer guide, no matter what you try, and 14 the web service it used has also been decommissioned. 22 15 23 16 == Installation == 24 17 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. 18 Don't. 45 19 46 20 == Changelog == 21 22 = 2017.0 = 23 24 Amended with uninstallation request 47 25 48 26 = 2012.0 =
Note: See TracChangeset
for help on using the changeset viewer.