Plugin Directory

Changeset 2516408


Ignore:
Timestamp:
04/16/2021 03:00:32 PM (5 years ago)
Author:
prokerala
Message:

Update to version 1.0.4 from GitHub

Location:
astrology
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • astrology/tags/1.0.4/astrology.php

    r2513947 r2516408  
    1212 * Plugin URI:  https://api.prokerala.com
    1313 * Description: Integrate astrology calculators powered by Prokerala's Astrology API
    14  * Version:     1.0.3
     14 * Version:     1.0.4
    1515 * Author:      Prokerala
    1616 * Author URI:  https://www.prokerala.com
  • astrology/tags/1.0.4/dependencies/vendor/autoload.php

    r2514021 r2516408  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67::getLoader();
     7return ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2::getLoader();
  • astrology/tags/1.0.4/dependencies/vendor/composer/autoload_real.php

    r2514021 r2516408  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67
     5class ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit17f7767e001cf98c1f342c2d0d186d67::getInitializer($loader));
     33            call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitb7b83f594773eb9c7444f58dd4447ff2::getInitializer($loader));
    3434        } else {
    3535            $classMap = require __DIR__ . '/autoload_classmap.php';
  • astrology/tags/1.0.4/dependencies/vendor/composer/autoload_static.php

    r2514021 r2516408  
    55namespace Prokerala_WP_Astrology_Composer\Autoload;
    66
    7 class ComposerStaticInit17f7767e001cf98c1f342c2d0d186d67
     7class ComposerStaticInitb7b83f594773eb9c7444f58dd4447ff2
    88{
    99    public static $classMap = array (
     
    342342    {
    343343        return \Closure::bind(function () use ($loader) {
    344             $loader->classMap = ComposerStaticInit17f7767e001cf98c1f342c2d0d186d67::$classMap;
     344            $loader->classMap = ComposerStaticInitb7b83f594773eb9c7444f58dd4447ff2::$classMap;
    345345
    346346        }, null, ClassLoader::class);
  • astrology/tags/1.0.4/readme.txt

    r2514006 r2516408  
    44Requires at least: 5.5
    55Tested up to: 5.7
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.2.0
    88License: GPLV2+
     
    6262If you are unable to use the block editor, then you can also activate the plugin using the short code `astrology`.
    6363
    64 <code>
    65 [astrology report="REPORT_NAME"]
    66 </code>
     64<code>[astrology report="REPORT_NAME"]</code>
    6765
    6866Where `REPORT_NAME` must be one of following
     
    8785- `ThirumanaPorutham`
    8886
     87*Shortcode attributes*
     88
     89- `display_charts`
     90
     91   The `display_charts` option allows showing _Rasi_ / _Navamsa_ chart in Kundli result. This will cost two additional API calls. The value of the attribute must be `lagna,navamsa`.
     92
     93   `[astrology report="Kundli" display_charts="lagna,rasi"]`
     94
     95- `result_type`
     96
     97   In calculators that support `basic` and `advanced` results, the result type can be forced using the `result_type` attribute. Settings this attribute will remove the corresponding input fields from the form.
     98
     99   `[astrology report="Kundli" result_type="advanced"]`
     100
     101- `chart_style`
     102
     103   You can set the `chart_style` attribute to one of `north-indian`, `south-indian` or `east-indian` to force the result chart style. Setting this attribute will remove the corresponding input fields from the form.
     104
     105   `[astrology report="Kundli" chart_style="south-indian"]`
     106
    89107== Frequently Asked Questions ==
    90108
     
    98116
    99117== Changelog ==
     118
     119= 1.0.4 =
     120* Fix php notices
    100121
    101122= 1.0.3 =
  • astrology/tags/1.0.4/src/Configuration.php

    r2513947 r2516408  
    224224            'astrology_plugin_options',
    225225            [
     226                'attribution'   => '1',
    226227                'ayanamsa'      => '1',
    227                 'timezone'      => date_default_timezone_get(),
    228228                'client_id'     => '',
    229229                'client_secret' => '',
     230                'theme'         => '',
     231                'timezone'      => date_default_timezone_get(),
    230232            ]
    231233        );
  • astrology/tags/1.0.4/src/Front/Front.php

    r2513947 r2516408  
    178178        global $post;
    179179
    180         return is_a( $post, 'WP_Post' ) || has_shortcode( $post->post_content, 'astrology' );
     180        return is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'astrology' );
    181181    }
    182182}
  • astrology/tags/1.0.4/src/vendor/autoload.php

    r2514021 r2516408  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db::getLoader();
     7return ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e::getLoader();
  • astrology/tags/1.0.4/src/vendor/composer/autoload_real.php

    r2514021 r2516408  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db
     5class ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitaf9575f43f247c5a42c304c9131753db::getInitializer($loader));
     33            call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit97350fc22183ab553e127f2ec2225b7e::getInitializer($loader));
    3434        } else {
    3535            $classMap = require __DIR__ . '/autoload_classmap.php';
  • astrology/tags/1.0.4/src/vendor/composer/autoload_static.php

    r2514021 r2516408  
    55namespace Prokerala_WP_Astrology_Composer\Autoload;
    66
    7 class ComposerStaticInitaf9575f43f247c5a42c304c9131753db
     7class ComposerStaticInit97350fc22183ab553e127f2ec2225b7e
    88{
    99    public static $classMap = array (
     
    4141    {
    4242        return \Closure::bind(function () use ($loader) {
    43             $loader->classMap = ComposerStaticInitaf9575f43f247c5a42c304c9131753db::$classMap;
     43            $loader->classMap = ComposerStaticInit97350fc22183ab553e127f2ec2225b7e::$classMap;
    4444
    4545        }, null, ClassLoader::class);
  • astrology/tags/1.0.4/templates/front/form/panchang.tpl.php

    r2513947 r2516408  
    4646
    4747    <?php $this->render( __DIR__ . '/panchang-form.tpl.php' ); ?>
    48     <?php $this->render( __DIR__ . '/result-type-option.tpl.php', [ 'report_type' => $options['report_type'] ] ); ?>
     48    <?php $this->render( __DIR__ . '/result-type-option.tpl.php', [ 'result_type' => $options['result_type'] ] ); ?>
    4949
    5050    <div class="pk-astrology-text-right">
  • astrology/trunk/astrology.php

    r2513947 r2516408  
    1212 * Plugin URI:  https://api.prokerala.com
    1313 * Description: Integrate astrology calculators powered by Prokerala's Astrology API
    14  * Version:     1.0.3
     14 * Version:     1.0.4
    1515 * Author:      Prokerala
    1616 * Author URI:  https://www.prokerala.com
  • astrology/trunk/dependencies/vendor/autoload.php

    r2514021 r2516408  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67::getLoader();
     7return ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2::getLoader();
  • astrology/trunk/dependencies/vendor/composer/autoload_real.php

    r2514021 r2516408  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67
     5class ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInit17f7767e001cf98c1f342c2d0d186d67', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitb7b83f594773eb9c7444f58dd4447ff2', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit17f7767e001cf98c1f342c2d0d186d67::getInitializer($loader));
     33            call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitb7b83f594773eb9c7444f58dd4447ff2::getInitializer($loader));
    3434        } else {
    3535            $classMap = require __DIR__ . '/autoload_classmap.php';
  • astrology/trunk/dependencies/vendor/composer/autoload_static.php

    r2514021 r2516408  
    55namespace Prokerala_WP_Astrology_Composer\Autoload;
    66
    7 class ComposerStaticInit17f7767e001cf98c1f342c2d0d186d67
     7class ComposerStaticInitb7b83f594773eb9c7444f58dd4447ff2
    88{
    99    public static $classMap = array (
     
    342342    {
    343343        return \Closure::bind(function () use ($loader) {
    344             $loader->classMap = ComposerStaticInit17f7767e001cf98c1f342c2d0d186d67::$classMap;
     344            $loader->classMap = ComposerStaticInitb7b83f594773eb9c7444f58dd4447ff2::$classMap;
    345345
    346346        }, null, ClassLoader::class);
  • astrology/trunk/readme.txt

    r2514006 r2516408  
    44Requires at least: 5.5
    55Tested up to: 5.7
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.2.0
    88License: GPLV2+
     
    6262If you are unable to use the block editor, then you can also activate the plugin using the short code `astrology`.
    6363
    64 <code>
    65 [astrology report="REPORT_NAME"]
    66 </code>
     64<code>[astrology report="REPORT_NAME"]</code>
    6765
    6866Where `REPORT_NAME` must be one of following
     
    8785- `ThirumanaPorutham`
    8886
     87*Shortcode attributes*
     88
     89- `display_charts`
     90
     91   The `display_charts` option allows showing _Rasi_ / _Navamsa_ chart in Kundli result. This will cost two additional API calls. The value of the attribute must be `lagna,navamsa`.
     92
     93   `[astrology report="Kundli" display_charts="lagna,rasi"]`
     94
     95- `result_type`
     96
     97   In calculators that support `basic` and `advanced` results, the result type can be forced using the `result_type` attribute. Settings this attribute will remove the corresponding input fields from the form.
     98
     99   `[astrology report="Kundli" result_type="advanced"]`
     100
     101- `chart_style`
     102
     103   You can set the `chart_style` attribute to one of `north-indian`, `south-indian` or `east-indian` to force the result chart style. Setting this attribute will remove the corresponding input fields from the form.
     104
     105   `[astrology report="Kundli" chart_style="south-indian"]`
     106
    89107== Frequently Asked Questions ==
    90108
     
    98116
    99117== Changelog ==
     118
     119= 1.0.4 =
     120* Fix php notices
    100121
    101122= 1.0.3 =
  • astrology/trunk/src/Configuration.php

    r2513947 r2516408  
    224224            'astrology_plugin_options',
    225225            [
     226                'attribution'   => '1',
    226227                'ayanamsa'      => '1',
    227                 'timezone'      => date_default_timezone_get(),
    228228                'client_id'     => '',
    229229                'client_secret' => '',
     230                'theme'         => '',
     231                'timezone'      => date_default_timezone_get(),
    230232            ]
    231233        );
  • astrology/trunk/src/Front/Front.php

    r2513947 r2516408  
    178178        global $post;
    179179
    180         return is_a( $post, 'WP_Post' ) || has_shortcode( $post->post_content, 'astrology' );
     180        return is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'astrology' );
    181181    }
    182182}
  • astrology/trunk/src/vendor/autoload.php

    r2514021 r2516408  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db::getLoader();
     7return ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e::getLoader();
  • astrology/trunk/src/vendor/composer/autoload_real.php

    r2514021 r2516408  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db
     5class ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitaf9575f43f247c5a42c304c9131753db', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit97350fc22183ab553e127f2ec2225b7e', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitaf9575f43f247c5a42c304c9131753db::getInitializer($loader));
     33            call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit97350fc22183ab553e127f2ec2225b7e::getInitializer($loader));
    3434        } else {
    3535            $classMap = require __DIR__ . '/autoload_classmap.php';
  • astrology/trunk/src/vendor/composer/autoload_static.php

    r2514021 r2516408  
    55namespace Prokerala_WP_Astrology_Composer\Autoload;
    66
    7 class ComposerStaticInitaf9575f43f247c5a42c304c9131753db
     7class ComposerStaticInit97350fc22183ab553e127f2ec2225b7e
    88{
    99    public static $classMap = array (
     
    4141    {
    4242        return \Closure::bind(function () use ($loader) {
    43             $loader->classMap = ComposerStaticInitaf9575f43f247c5a42c304c9131753db::$classMap;
     43            $loader->classMap = ComposerStaticInit97350fc22183ab553e127f2ec2225b7e::$classMap;
    4444
    4545        }, null, ClassLoader::class);
  • astrology/trunk/templates/front/form/panchang.tpl.php

    r2513947 r2516408  
    4646
    4747    <?php $this->render( __DIR__ . '/panchang-form.tpl.php' ); ?>
    48     <?php $this->render( __DIR__ . '/result-type-option.tpl.php', [ 'report_type' => $options['report_type'] ] ); ?>
     48    <?php $this->render( __DIR__ . '/result-type-option.tpl.php', [ 'result_type' => $options['result_type'] ] ); ?>
    4949
    5050    <div class="pk-astrology-text-right">
Note: See TracChangeset for help on using the changeset viewer.