Plugin Directory

Changeset 1575342


Ignore:
Timestamp:
01/16/2017 02:11:05 AM (9 years ago)
Author:
jd7777
Message:

Version 3.0

Location:
bible-plus
Files:
8 added
8 deleted
4 edited

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 {
    22    padding-left: 7px;
    33}
    44
    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 {
    66    padding-left: 0px;
    77}
    88
    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 {
    1010    font-weight: 900;
    1111}
     12
     13.bible-plus-passage-reference {
     14    text-align: right;
     15}
  • bible-plus/trunk/assets/js/jwplg-bible-plus.js

    r1574438 r1575342  
    11jQuery(function($){
    22
    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)
    414    {
    515        element = '#jwplg-bbp-bible-box-'+index;
     16        console.log(element);
     17        console.log(attrs.bible);
    618
    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);
    1123    }
    1224
     
    3345            success: function(response) {
    3446                shortcode_atts.bible = JSON.parse(response);
    35                 jwplg_render_vue(shortcode_atts,$index)
     47                jwplg_render_template(shortcode_atts,$index);
     48                return;
    3649            }
    3750        });
  • bible-plus/trunk/index.php

    r1574613 r1575342  
    22/*
    33Plugin Name: Bible Plus
    4 Version: 2.4
     4Version: 3.0
    55Plugin URI: https://wordpress.org/plugins/bible-plus/
    66Author: Joshua Wieczorek
    77Author URI: http://www.joshuawieczorek.com
    88Description: Embed the Bible right into your pages and posts via shortcodes.
     9Text Domain: jwplgbbp
    910*/
    10 ##############################################
    11 ## File: index.php
    12 ## Path: {wp_plugin_dir}/bible-plus/index.php
    13 ## Created: 12.22.16 @ 13:11 EST
    14 ## Modified: 01.13.17 @ 20:48 EST
    15 ## Author: Joshua Wieczorek
    16 ## Description: Core plugin file.
    17 ##############################################
    1811
    19 error_reporting(E_ALL);
    20 ini_set('display_errors', 1);
     12/*
     13File: index.php
     14Path: {wp_plugin_dir}/bible-plus/index.php
     15Created: 12.22.16 @ 13:11 EST
     16Modified: 01.15.17 @ 19:13 EST
     17Author: Joshua Wieczorek
     18---
     19Description: Core plugin file.
     20*/
    2121
    2222/**
    23  * Define constants
     23 * Set debug on/off.
    2424 */
    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/');
     25defined('JWPLGBBP_DEBUG') || define('JWPLGBBP_DEBUG', false);
    3026
    3127/**
    32  * Load Files
     28 * Set plugin path.
    3329 */
    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 );
     30defined('JWPLGBBP_PATH') || define('JWPLGBBP_PATH', dirname(__FILE__).'/');
    6331
    6432/**
    65  * Run WordPress Actions
     33 * Set plugin url.
    6634 */
    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' );
     35defined('JWPLGBBP_URL') || define('JWPLGBBP_URL', plugin_dir_url(__FILE__));
    7436
    7537/**
    76  * Run WordPress Filters
     38 * Load plugin files.
    7739 */
     40require 'load.php';
    7841
    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 */
     58add_action( 'init' , 'jwplgbbp_init_plugin' );
     59
     60/**
     61 * Load plugin's javascripts and stylesheets.
     62 */
     63add_action( 'wp_enqueue_scripts', 'jwplgbbp_enqueue_scripts' );
     64
     65/**
     66 * Enable shortcodes in text widgets.
     67 */
    8068add_filter('widget_text','do_shortcode');
    8169
    8270/**
    83  * Add shortcodes
     71 * Bible shortcode.
    8472 */
    85 
    86 // Bible shortcode
    87 add_shortcode( 'bible', array( $JWPLG_BBP_Bible , 'passage_shortcode' ) );
     73add_shortcode('bible', array($JWPLGBBP_Bible, 'shortcode'));
    8874
    8975/**
    90  * Plugin initialize
     76 * Daily Proverb shortcode.
    9177 */
    92 register_activation_hook( __FILE__ , array( $JWPLG_BBP_Bible , 'init' ) );
     78add_shortcode('daily-proverb', array($JWPLGBBP_Proverbs, 'shortcode'));
     79
     80/**
     81 * Set global Bible settings and create cache directory.
     82 */
     83register_activation_hook(__FILE__ , array($JWPLGBBP_Bible, 'init'));
     84
     85/**
     86 * Set initial Verses of the Day for the Daily Proverbs.
     87 */
     88register_activation_hook(__FILE__ , array($JWPLGBBP_Proverbs, 'init'));
  • bible-plus/trunk/readme.txt

    r1574609 r1575342  
    1 === Bible Plus ===
     1=== Bible Plus+ ===
    22Contributors: jd7777
    3 Tags: bible, embed
     3Tags: bible, embed, daily, proverb
    44Donate link: http://www.joshuawieczorek.com/donate/
    55Requires at least: 3.5
    6 Tested up to: 4.7
    7 Stable tag: 4.7
     6Tested up to: 4.7.1
     7Stable tag: 4.7.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
     11This 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
    1115This plugin allows you to display bible verses and passages directly in your posts, pages or anywhere shortcodes are processed via shortcodes.
    1216
    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.
     17Bible 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
     23Available Attributes
     24
     251. passage (bible passage which to show) : default Jn3:16
     262. version (desired version of the bible) : default KJV. Available versions can be found in the FAQ section.
     273. cnum (show chapter number) yes/no : default yes.
     284. vnum (show verse number) yes/no : default yes.
     295. vpl (show verses 1-verse-per-line) yes/no : default yes.
     30
     31The 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
     39Available Attributes
     40
     411. version (desired version of the daily proverb) : default KJV. Available versions can be found in the FAQ section.
     42
    1843
    1944= Lang =
    2045
    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.
     46Currently 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.
    2247
    2348== Installation ==
     
    152177== Upgrade Notice ==
    153178
    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.
     179Version 3.0 adds a Daily Proverb functionality, improves php capability as well overall functionality.
    155180
    156181== Changelog ==
    157182
     183= Version 3.0 =
     184
     185Version 3.0 adds a Daily Proverb functionality, improves php capability as well overall functionality.
     186
     187= Version 2.5 =
     188
     189Cleans code
     190
    158191= Version 2.3 =
    159192
Note: See TracChangeset for help on using the changeset viewer.