Plugin Directory

Changeset 2393202


Ignore:
Timestamp:
10/04/2020 06:02:11 PM (5 years ago)
Author:
coderevolution
Message:

1.0.1 update

Location:
covid-19-coronavirus-viral-pandemic-prediction-tools-free-version
Files:
28 added
3 edited

Legend:

Unmodified
Added
Removed
  • covid-19-coronavirus-viral-pandemic-prediction-tools-free-version/trunk/coronavirus-spread-prediction-graphs-free.php

    r2246719 r2393202  
    55Description: This plugin will show prediction graphs and charts for a viral pandemic spreading - applicable for COVID-19 - free version
    66Author: CodeRevolution
    7 Version: 1.0.0
     7Version: 1.0.1
    88Author URI: //coderevolution.ro/
    99Text Domain: coronavirus-spread-prediction-graphs-free
     
    2121        $cr_myplugin_url = '//codecanyon.net/item/covid19-coronavirus-viral-pandemic-prediction-tools-wordpress-plugin/25750154';
    2222        echo '<tr class="active"><td>&nbsp;</td><td colspan="2"><p class="cr_auto_update">';
    23         echo sprintf( wp_kses( __( 'This is a free version of the plugin. To get the full version of it, please click <a href="%s" target="_blank">here</a>.', 'coronavirus-spread-prediction-graphs-free'), array(  'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( 'https://1.envato.market/c/1264868/275988/4415?u=' . urlencode($cr_myplugin_url)));     
     23        echo sprintf( wp_kses( __( 'This is a free version of the plugin. To get the full version of it, please click <a href="%s" target="_blank">here</a>.', 'coronavirus-spread-prediction-graphs-free'), array(  'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( 'https://1.envato.market/covid19'));     
    2424        echo '</p> </td></tr>';
    2525    }, 10, 3 );
     
    3737function cspgf_register_my_custom_menu_page()
    3838{
    39     add_menu_page('Viral Pandemic Prediction Tools Free', 'Viral Pandemic Prediction Tools Free', 'manage_options', 'cspgf_admin_settings', 'cspgf_admin_settings', plugins_url('images/icon.png', __FILE__));
     39    add_menu_page('Viral Pandemic Prediction Free', 'Viral Pandemic Prediction Free', 'manage_options', 'cspgf_admin_settings', 'cspgf_admin_settings', plugins_url('images/icon.png', __FILE__));
    4040    $main = add_submenu_page('cspgf_admin_settings', esc_html__("Main Settings", 'coronavirus-spread-prediction-graphs-free'), esc_html__("Main Settings", 'coronavirus-spread-prediction-graphs-free'), 'manage_options', 'cspgf_admin_settings');
    4141    add_action( 'load-' . $main, 'cspgf_load_all_admin_js' );
    42 }
    43 
     42    $more = add_submenu_page('cspgf_admin_settings', esc_html__('Other Plugins', 'coronavirus-spread-prediction-graphs-free'), esc_html__('Other Plugins', 'coronavirus-spread-prediction-graphs-free'), 'manage_options', 'cspgf_more_plugins', 'cspgf_more_plugins');
     43    add_action( 'load-' . $more, 'cspgf_load_all_admin_js' );
     44}
     45function cspgf_more_plugins() {
     46?>
     47<style>
     48.grid {
     49   display: flex;
     50     flex-wrap: wrap;
     51}
     52.box {
     53   width: 300px;
     54   margin: 10px;
     55   background: white;
     56   border-radius: 7px;
     57   overflow: hidden;
     58   box-shadow: 2px 5px 5px 5px #ececec;
     59}
     60.box .info {
     61   padding: 0px 15px 15px 15px;
     62}
     63</style>
     64
     65<div id="optimize-more">
     66</div>
     67<script>
     68fetch('https://coderevolution.ro/custom-feeds/pandemic-plugins.json')
     69  .then(response => {
     70    return response.json()
     71  })
     72  .then(sections => {
     73      let html = "";
     74      sections.forEach(section => {
     75         html += `<h3>${section.title}</h3>`;
     76         html += `<div class="grid">`;
     77         section.products.forEach(product => {
     78            html += `<div class="box">
     79                        <img src="${product.picture}" width="300px" height="150px"/>
     80                        <div class="info">
     81                           <h3>${product.name}</h3>
     82                           <p>${product.description}</p>
     83                           <a href="${product.buttonLink}" target="_blank"><button class="button button-primary">${product.buttonText}</button></a>
     84                        </div>
     85                     </div>`
     86         })
     87         html += `</div>`;
     88      })
     89      document.getElementById("optimize-more").innerHTML = html;
     90  })
     91  .catch(err => {
     92     console.log(err)
     93     document.getElementById("optimize-more").innerText = "Error, our website is unreachable from your server.";
     94  })
     95</script>
     96<?php
     97}
    4498add_filter("plugin_action_links_$plugin", 'cspgf_add_settings_link');
    4599function cspgf_add_settings_link($links)
    46100{
    47     $settings_link = '<a href="admin.php?page=cspgf_admin_settings">' . esc_html__('Settings', 'coronavirus-spread-prediction-graphs-free') . '</a>';
    48     array_push($links, $settings_link);
     101    $plugin_shortcuts = array(
     102        '<a href="admin.php?page=cspgf_admin_settings">' . esc_html__('Settings', 'coronavirus-spread-prediction-graphs-free') . '</a>',
     103        '<a href="https://www.buymeacoffee.com/coderevolution" target="_blank" style="color:#3db634;">' . esc_html__('Buy developer a coffee', 'coronavirus-spread-prediction-graphs-free') . '</a>'
     104    );
     105    $links = array_merge($links, $plugin_shortcuts);
    49106    return $links;
    50107}
  • covid-19-coronavirus-viral-pandemic-prediction-tools-free-version/trunk/readme.txt

    r2361963 r2393202  
    137137* For a detailed changelog of the full plugin, please check it's CodeCanyon page, here: [COVID-19 Coronavirus - Viral Pandemic Prediction Tools WordPress Plugin](//1.envato.market/covid19 "COVID-19 Coronavirus - Viral Pandemic Prediction Tools WordPress Plugin")
    138138
     139= 1.0.1 =
     140* Fixed reported bugs
     141* For a detailed changelog of the full plugin, please check it's CodeCanyon page, here: [COVID-19 Coronavirus - Viral Pandemic Prediction Tools WordPress Plugin](//1.envato.market/covid19 "COVID-19 Coronavirus - Viral Pandemic Prediction Tools WordPress Plugin")
     142
    139143== Upgrade Notice ==
    140144
  • covid-19-coronavirus-viral-pandemic-prediction-tools-free-version/trunk/styles/cspgf-browser.css

    r2246719 r2393202  
    3333{
    3434    width:100%;
     35    max-width: 100% !important;
    3536}
    3637.coderevolution_circle
     
    169170}
    170171
     172.bws_help_box.dashicons-editor-help,
     173.setting span .bws_help_box.dashicons-editor-help
     174{
     175    z-index:0 !important;
     176}
    171177.bws_help_box {
    172178    background-image: url("../images/tooltip_icons.png");
Note: See TracChangeset for help on using the changeset viewer.