Changeset 1575342
- Timestamp:
- 01/16/2017 02:11:05 AM (9 years ago)
- Location:
- bible-plus
- Files:
-
- 8 added
- 8 deleted
- 4 edited
-
branches/1.3 (deleted)
-
branches/1.4 (deleted)
-
branches/1.5 (deleted)
-
trunk/assets/css/jwplg-bible-plus.css (modified) (1 diff)
-
trunk/assets/js/jwplg-bible-plus.js (modified) (2 diffs)
-
trunk/functions.php (deleted)
-
trunk/inc/JWPLGBBP (added)
-
trunk/inc/JWPLGBBP/admin.php (added)
-
trunk/inc/JWPLGBBP/bible.php (added)
-
trunk/inc/JWPLGBBP/proverbs.php (added)
-
trunk/inc/class.admin_settings.php (deleted)
-
trunk/inc/class.bible.php (deleted)
-
trunk/inc/class.json_cleaner.php (deleted)
-
trunk/inc/class.template_engine.php (deleted)
-
trunk/inc/functions.php (added)
-
trunk/index.php (modified) (1 diff)
-
trunk/lang/jwplgbbp-default.mo (added)
-
trunk/lang/jwplgbbp-default.po (added)
-
trunk/load.php (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bible-plus/trunk/assets/css/jwplg-bible-plus.css
r1569806 r1575342 1 . jwplg-bbp-verse-cntr-class .jwplg-bbp-verse-container span.jwplg-bbp-verse {1 .bible-plus-verse-container span.bible-plus-verse { 2 2 padding-left: 7px; 3 3 } 4 4 5 . jwplg-bbp-verse-cntr-class .jwplg-bbp-verse-container:first-child > span.jwplg-bbp-verse {5 .bible-plus-verse-container:first-child > span.bible-plus-verse { 6 6 padding-left: 0px; 7 7 } 8 8 9 . jwplg-bbp-verse-cntr-class .jwplg-bbp-verse-container .jwplg-bbp-verse > .jwplg-bbp-vnum{9 .bible-plus-verse-container .bible-plus-verse > .bible-plus-verse-number { 10 10 font-weight: 900; 11 11 } 12 13 .bible-plus-passage-reference { 14 text-align: right; 15 } -
bible-plus/trunk/assets/js/jwplg-bible-plus.js
r1574438 r1575342 1 1 jQuery(function($){ 2 2 3 function jwplg_render_vue(attrs,index) 3 function jwplg_render_verses(atts,tilte) 4 { 5 6 } 7 8 function jwplg_render_verses(verses) 9 { 10 11 } 12 13 function jwplg_render_template(attrs,index) 4 14 { 5 15 element = '#jwplg-bbp-bible-box-'+index; 16 console.log(element); 17 console.log(attrs.bible); 6 18 7 var jwplg_bbp_app = new Vue({8 el: element, 9 data: attrs 10 });19 html = '<div class="jwplg-bbp-verse-container-inner">'; 20 21 22 $(element).html(html); 11 23 } 12 24 … … 33 45 success: function(response) { 34 46 shortcode_atts.bible = JSON.parse(response); 35 jwplg_render_vue(shortcode_atts,$index) 47 jwplg_render_template(shortcode_atts,$index); 48 return; 36 49 } 37 50 }); -
bible-plus/trunk/index.php
r1574613 r1575342 2 2 /* 3 3 Plugin Name: Bible Plus 4 Version: 2.44 Version: 3.0 5 5 Plugin URI: https://wordpress.org/plugins/bible-plus/ 6 6 Author: Joshua Wieczorek 7 7 Author URI: http://www.joshuawieczorek.com 8 8 Description: Embed the Bible right into your pages and posts via shortcodes. 9 Text Domain: jwplgbbp 9 10 */ 10 ##############################################11 ## File: index.php12 ## Path: {wp_plugin_dir}/bible-plus/index.php13 ## Created: 12.22.16 @ 13:11 EST14 ## Modified: 01.13.17 @ 20:48 EST15 ## Author: Joshua Wieczorek16 ## Description: Core plugin file.17 ##############################################18 11 19 error_reporting(E_ALL); 20 ini_set('display_errors', 1); 12 /* 13 File: index.php 14 Path: {wp_plugin_dir}/bible-plus/index.php 15 Created: 12.22.16 @ 13:11 EST 16 Modified: 01.15.17 @ 19:13 EST 17 Author: Joshua Wieczorek 18 --- 19 Description: Core plugin file. 20 */ 21 21 22 22 /** 23 * Define constants23 * Set debug on/off. 24 24 */ 25 26 // Set plugin path 27 defined('JWPLG_BBP_PATH') || define('JWPLG_BBP_PATH', dirname(__FILE__).'/'); 28 // Set plugin cache directory 29 defined('JWPLG_BBP_CACHE_DIR') || define('JWPLG_BBP_CACHE_DIR', ABSPATH.'wp-content/bible-plus-cache/'); 25 defined('JWPLGBBP_DEBUG') || define('JWPLGBBP_DEBUG', false); 30 26 31 27 /** 32 * Load Files28 * Set plugin path. 33 29 */ 34 35 // Load JSON cleaner class 36 include JWPLG_BBP_PATH . 'inc/class.json_cleaner.php'; 37 // Load Template Engine class 38 include JWPLG_BBP_PATH . 'inc/class.template_engine.php'; 39 // Load Bible class 40 include JWPLG_BBP_PATH . 'inc/class.bible.php'; 41 // Load misc functions file 42 include JWPLG_BBP_PATH . 'functions.php'; 43 44 // If admin 45 if( is_admin() ) : 46 // Load admin 47 include JWPLG_BBP_PATH . 'inc/class.admin_settings.php'; 48 // Instantiate admin options 49 $admin_options = new JWPLG_BBP_Admin_Settings(); 50 // End if admin 51 endif; 52 53 // Instantiate Bible Plugin class 54 $JWPLG_BBP_Bible = new JWPLG_BBP_Bible; 55 // Bbile Set API Url 56 $JWPLG_BBP_Bible->set_api_url('https://getbible.net/json?passage='); 57 // Bbile Set Cache Directory 58 $JWPLG_BBP_Bible->set_cache_dir(JWPLG_BBP_CACHE_DIR); 59 // Bbile Set Template Engine 60 $JWPLG_BBP_Bible->set_template_engine( new JWPLG_BBP_Template_Engine ); 61 // Bbile Set JSON Cleaner 62 $JWPLG_BBP_Bible->set_json_cleaner( new JWPLG_BBP_Json_Cleaner ); 30 defined('JWPLGBBP_PATH') || define('JWPLGBBP_PATH', dirname(__FILE__).'/'); 63 31 64 32 /** 65 * Run WordPress Actions33 * Set plugin url. 66 34 */ 67 68 // Ajax actions 69 add_action( 'wp_ajax_nopriv_get_passage', array( $JWPLG_BBP_Bible , 'get_bible' ) ); 70 add_action( 'wp_ajax_get_passage', array( $JWPLG_BBP_Bible , 'get_bible' ) ); 71 72 // Load javascripts and stylesheets 73 add_action( 'wp_enqueue_scripts', 'jwplg_bbp_enqueue_scripts' ); 35 defined('JWPLGBBP_URL') || define('JWPLGBBP_URL', plugin_dir_url(__FILE__)); 74 36 75 37 /** 76 * Run WordPress Filters38 * Load plugin files. 77 39 */ 40 require 'load.php'; 78 41 79 // Enable shortcodes in text widgets 42 /** 43 * Gobally accessible Bible object. 44 * @var JWPLGBBP 45 */ 46 $JWPLGBBP_Bible = new JWPLGBBP\Bible; 47 48 /** 49 * Gobally accessible Proverbs object. 50 * @var JWPLGBBP 51 * @param object $JWPLGBBP_Bible (bible object) 52 */ 53 $JWPLGBBP_Proverbs = new JWPLGBBP\Proverbs( $JWPLGBBP_Bible ); 54 55 /** 56 * Instantiate plugin settings. 57 */ 58 add_action( 'init' , 'jwplgbbp_init_plugin' ); 59 60 /** 61 * Load plugin's javascripts and stylesheets. 62 */ 63 add_action( 'wp_enqueue_scripts', 'jwplgbbp_enqueue_scripts' ); 64 65 /** 66 * Enable shortcodes in text widgets. 67 */ 80 68 add_filter('widget_text','do_shortcode'); 81 69 82 70 /** 83 * Add shortcodes71 * Bible shortcode. 84 72 */ 85 86 // Bible shortcode 87 add_shortcode( 'bible', array( $JWPLG_BBP_Bible , 'passage_shortcode' ) ); 73 add_shortcode('bible', array($JWPLGBBP_Bible, 'shortcode')); 88 74 89 75 /** 90 * Plugin initialize76 * Daily Proverb shortcode. 91 77 */ 92 register_activation_hook( __FILE__ , array( $JWPLG_BBP_Bible , 'init' ) ); 78 add_shortcode('daily-proverb', array($JWPLGBBP_Proverbs, 'shortcode')); 79 80 /** 81 * Set global Bible settings and create cache directory. 82 */ 83 register_activation_hook(__FILE__ , array($JWPLGBBP_Bible, 'init')); 84 85 /** 86 * Set initial Verses of the Day for the Daily Proverbs. 87 */ 88 register_activation_hook(__FILE__ , array($JWPLGBBP_Proverbs, 'init')); -
bible-plus/trunk/readme.txt
r1574609 r1575342 1 === Bible Plus ===1 === Bible Plus+ === 2 2 Contributors: jd7777 3 Tags: bible, embed 3 Tags: bible, embed, daily, proverb 4 4 Donate link: http://www.joshuawieczorek.com/donate/ 5 5 Requires at least: 3.5 6 Tested up to: 4.7 7 Stable tag: 4.7 6 Tested up to: 4.7.1 7 Stable tag: 4.7.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin allows you to display bible verses and passages directly in your posts, pages or anywhere shortcodes are processed via shortcodes. Also, this plugin shows a Daily verse from the Book of Proverbs. 12 13 == Description == 14 11 15 This plugin allows you to display bible verses and passages directly in your posts, pages or anywhere shortcodes are processed via shortcodes. 12 16 13 == Description == 14 15 This plugin allows you to display bible verses and passages directly in your posts, pages or anywhere shortcodes are processed via shortcodes. 16 17 Bible Plus harnesses the power of the [GetBible.Net’s](https://getbible.net/api) API to deliver the Bible in over 100 versions and 20+ languages. 17 Bible Plus+ harnesses the power of the [GetBible.Net’s](https://getbible.net/api) API to deliver the Bible in over 100 versions and 20+ languages. 18 19 = Bible Usage = 20 21 `[bible passage="Jn3:16"]` 22 23 Available Attributes 24 25 1. passage (bible passage which to show) : default Jn3:16 26 2. version (desired version of the bible) : default KJV. Available versions can be found in the FAQ section. 27 3. cnum (show chapter number) yes/no : default yes. 28 4. vnum (show verse number) yes/no : default yes. 29 5. vpl (show verses 1-verse-per-line) yes/no : default yes. 30 31 The following is a full example. 32 33 [bible passage="gen1:1-2" version="ylt" vnum="no" cnum="no" vpl="no"] 34 35 = Daily Proverb Usage = 36 37 `[daily-proverb version="ylt"]` 38 39 Available Attributes 40 41 1. version (desired version of the daily proverb) : default KJV. Available versions can be found in the FAQ section. 42 18 43 19 44 = Lang = 20 45 21 Currently this plugin is only in English, however, if anyone would like to translate it into another language please contact me at joshuawieczorek@outlook.com. The contribution would be greatly appreciated.46 Currently this plugin is only in English, however, if anyone would like to translate it into another language please contact me at joshuawieczorek@outlook.com. All contributions are greatly appreciated. 22 47 23 48 == Installation == … … 152 177 == Upgrade Notice == 153 178 154 Version 2.0 gives the option to turn off AJAX load for Bible passages. Go to "Settings > General > Bile Plus Ajax Load" to turn AJAX on/off.179 Version 3.0 adds a Daily Proverb functionality, improves php capability as well overall functionality. 155 180 156 181 == Changelog == 157 182 183 = Version 3.0 = 184 185 Version 3.0 adds a Daily Proverb functionality, improves php capability as well overall functionality. 186 187 = Version 2.5 = 188 189 Cleans code 190 158 191 = Version 2.3 = 159 192
Note: See TracChangeset
for help on using the changeset viewer.