Plugin Directory

Changeset 3228916


Ignore:
Timestamp:
01/26/2025 07:22:04 PM (14 months ago)
Author:
vedicastroapiadmin
Message:

v1.0.13 release

Location:
vedicastroapi
Files:
141 added
5 edited

Legend:

Unmodified
Added
Removed
  • vedicastroapi/trunk/ReadMe.txt

    r3228490 r3228916  
    44Requires at least: 6.0
    55Tested up to: 6.7
    6 Stable tag: 1.0.12
     6Stable tag: 1.0.13
    77Requires PHP: 7.4 or later
    88Donate link: https://vedicastroapi.com/
     
    8282
    8383== Changelog ==
     84= 1.0.13 =
     85* Version 1.0.13 - January 27, 2025
     86* Information: Added total API call count on Vedic Astro Shortcode List under VedicAstroAPI Settings.
    8487
    8588= 1.0.12 =
     
    144147
    145148== Upgrade Notice ==
     149= 1.0.13 =
     150* Title: "Plugin Update Available"
     151* Introduction: "A new version of VedicAstroAPI is now available."
     152* Description: "Added total API call count on Vedic Astro Shortcode List under VedicAstroAPI Settings."
    146153
    147154= 1.0.12 =
  • vedicastroapi/trunk/admin/class-vedic-astro-api-admin.php

    r3057338 r3228916  
    184184        $original_html = wp_kses_post(sprintf(
    185185            __('<div class="wrap"><h1>%s</h1><div class="vedicastro-setting-list"><ul class="tabs"><li class="tab-link current" data-tab="tab-1"><strong>%s</strong></li><li class="tab-link" data-tab="tab-2"><strong>%s</strong></li><li class="tab-link" data-tab="tab-3"><strong>%s</strong></li></ul>', 'vedic-astro-api'),
    186             __('Vedicastro API Settings', 'vedic-astro-api'),
     186            __('VedicAstroAPI Settings', 'vedic-astro-api'),
    187187            __('API Settings', 'vedic-astro-api'),
    188188            __('Vedicastro Shortcode List', 'vedic-astro-api'),
     
    584584
    585585        if (is_array($shortcode_list) && array_key_exists('vedicastro_shortcode_lists', $shortcode_list) && is_array($shortcode_list['vedicastro_shortcode_lists'])) :
    586             echo wp_kses_post(sprintf(__('<div id="tab-2" class="tab-content" data-tab="vedicastro-lists"><h3>%s</h3><div class="form-group w-50 float-left">', 'vedic-astro-api'), __('Vedic Astro Shortcode Lists', 'vedic-astro-api')));
     586            //echo wp_kses_post(sprintf(__('<div id="tab-2" class="tab-content" data-tab="vedicastro-lists"><h3>%s</h3><div class="form-group w-50 float-left">', 'vedic-astro-api'), __('Vedic Astro Shortcode Lists', 'vedic-astro-api')));
     587
     588            echo wp_kses_post(sprintf(__('<div id="tab-2" class="tab-content" data-tab="vedicastro-lists"><h3>%s</h3><table><thead></thead><tbody>', 'vedic-astro-api'), __('Vedic Astro Shortcode Lists', 'vedic-astro-api')));
     589
     590            echo wp_kses_post(sprintf(__('<tr><th><label for="vedicastro_shortcode_name">%s</label></th><th>%s</th><th>%s</th></tr>', 'vedic-astro-api'), esc_html('API Name'), esc_html('Plugin Shortcode'), esc_html('No. of VediaAstroAPI  Used')));
    587591
    588592            if (!empty($shortcode_list['vedicastro_shortcode_lists'])) {
    589593                foreach ($shortcode_list['vedicastro_shortcode_lists'] as $shortcode_list_key => $shortcode_list_val) :
    590 
    591                     echo wp_kses_post(sprintf(__('<div class="form-group w-25 float-left"><label for="vedicastro_shortcode_name">%s</label></div><div class="form-group w-25 float-right">[%s]</div>', 'vedic-astro-api'), esc_html($shortcode_list_val), esc_html($shortcode_list_key)));
    592 
     594                    $vaaapi_count = $location_api_count = 0;
     595                    if('Predictions Shortcode' === $shortcode_list_val) {
     596                        $vaaapi_count = 1;
     597                    } else if('Sade Sati Shortcode' === $shortcode_list_val) {
     598                        $vaaapi_count = 2;
     599                        $location_api_count = 3;
     600                    } else if('Gem & Rudhraksh Shortcode' === $shortcode_list_val) {
     601                        $vaaapi_count = 2;
     602                        $location_api_count = 3;
     603                    } else if('Panchang Shortcode' === $shortcode_list_val) {
     604                        $vaaapi_count = 2;
     605                        $location_api_count = 3;
     606                    } else if('Monthly Panchang Shortcode' === $shortcode_list_val) {
     607                        $vaaapi_count = 2;
     608                    } else if('Moon Calender Shortcode' === $shortcode_list_val) {
     609                        $vaaapi_count = 2;
     610                    } else if('Retro Shortcode' === $shortcode_list_val) {
     611                        $vaaapi_count = 6;
     612                    } else if('Hora mahurat Shortcode' === $shortcode_list_val) {
     613                        $vaaapi_count = 1;
     614                        $location_api_count = 3;
     615                    } else if('Choghadiya Shortcode' === $shortcode_list_val) {
     616                        $vaaapi_count = 2;
     617                        $location_api_count = 3;
     618                    } else if('Numerology Shortcode' === $shortcode_list_val) {
     619                        $vaaapi_count = 2;
     620                    } else if('Kundali Shortcode' === $shortcode_list_val) {
     621                        $vaaapi_count = 14;
     622                        $location_api_count = 3;
     623                    } else if('Matching Shortcode' === $shortcode_list_val) {
     624                        $vaaapi_count = 10;
     625                        $location_api_count = 3;
     626                    }
     627                    else if('All in One Shortcode' === $shortcode_list_val) {
     628                        $vaaapi_count = 46;
     629                        $location_api_count = 21;
     630                    }
     631
     632                    $api_count = $vaaapi_count + $location_api_count;
     633
     634                    echo wp_kses_post(sprintf(__('<tr><td><label for="vedicastro_shortcode_name">%s</label></td><td>[%s]</td><td>%d</td></tr>', 'vedic-astro-api'), esc_html($shortcode_list_val), esc_html($shortcode_list_key), absint($api_count)));
    593635                endforeach;
    594636            }
    595637
    596             echo wp_kses_post(sprintf(__('</div></div>', 'vedic-astro-api')));
     638            echo wp_kses_post(sprintf(__('</tbody></table></div>', 'vedic-astro-api')));
    597639
    598640        endif;
  • vedicastroapi/trunk/admin/css/vedic-astro-api-admin.css

    r3039647 r3228916  
    173173    padding-top: 14px;
    174174}
     175.vedicastro-setting-list table {
     176    width: 100%;
     177    border: 1px solid #ccc;
     178    border-collapse: collapse;
     179    padding: 15px;
     180}
     181.vedicastro-setting-list table th, .vedicastro-setting-list table td {
     182    padding: 10px;
     183    border-collapse: collapse;
     184    border: 1px solid #ccc;
     185    text-align: left;
     186}
  • vedicastroapi/trunk/public/class-vedic-astro-api-public.php

    r3228490 r3228916  
    437437
    438438    /**
    439      * Vedicastro api
     439     * VedicAstroAPI
    440440     *
    441441     * @since    1.0.0
     
    458458
    459459    /**
    460      * Vedicastro api
     460     * VedicAstroAPI
    461461     *
    462462     * @since    1.0.0
     
    516516
    517517    /**
    518      * Vedicastro ashtakvarga api
     518     * VedicAstroAPI ashtakvarga api
    519519     *
    520520     * @since    1.0.0
     
    18301830
    18311831    /**
    1832      * Vedicastro ashtakvarga details
     1832     * VedicAstroAPI ashtakvarga details
    18331833     *
    18341834     * @since    1.0.0
  • vedicastroapi/trunk/vedic-astro-api.php

    r3228490 r3228916  
    1717 * Plugin URI:        https://vedicastroapi.com
    1818 * Description:       Horoscope and Astrology is the first vedic astrology plugin that lets you generate horoscope reports based on the birth details.
    19  * Version:           1.0.12
     19 * Version:           1.0.13
    2020 * Author:            Vedic Astro API
    2121 * Author URI:        https://sohamsolution.com
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'VEDIC_ASTRO_API_VERSION', '1.0.12' );
     38define( 'VEDIC_ASTRO_API_VERSION', '1.0.13' );
    3939define( 'VEDICASTRO_URL', plugin_dir_url( __FILE__ ) );
    4040define( 'VEDIC_ASTRO_API_ROOT_URL', 'https://api.vedicastroapi.com/v3-json/' );
Note: See TracChangeset for help on using the changeset viewer.