Changeset 2393202
- Timestamp:
- 10/04/2020 06:02:11 PM (5 years ago)
- Location:
- covid-19-coronavirus-viral-pandemic-prediction-tools-free-version
- Files:
-
- 28 added
- 3 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/coronavirus-spread-prediction-graphs-free.php (added)
-
tags/1.0.1/images (added)
-
tags/1.0.1/images/icon.png (added)
-
tags/1.0.1/images/index.php (added)
-
tags/1.0.1/index.php (added)
-
tags/1.0.1/js (added)
-
tags/1.0.1/js/Chart.min.js (added)
-
tags/1.0.1/js/functions.js (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/index.php (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/res (added)
-
tags/1.0.1/res/cspgf-js.js (added)
-
tags/1.0.1/res/cspgf-main.php (added)
-
tags/1.0.1/res/index.php (added)
-
tags/1.0.1/scripts (added)
-
tags/1.0.1/scripts/dgraph.js (added)
-
tags/1.0.1/scripts/header.js (added)
-
tags/1.0.1/scripts/idgraph.js (added)
-
tags/1.0.1/scripts/index.php (added)
-
tags/1.0.1/scripts/pgraph.js (added)
-
tags/1.0.1/scripts/tdgraph.js (added)
-
tags/1.0.1/scripts/time.js (added)
-
tags/1.0.1/styles (added)
-
tags/1.0.1/styles/coderevolution-style.css (added)
-
tags/1.0.1/styles/cspgf-browser.css (added)
-
tags/1.0.1/styles/index.php (added)
-
trunk/coronavirus-spread-prediction-graphs-free.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/styles/cspgf-browser.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
covid-19-coronavirus-viral-pandemic-prediction-tools-free-version/trunk/coronavirus-spread-prediction-graphs-free.php
r2246719 r2393202 5 5 Description: This plugin will show prediction graphs and charts for a viral pandemic spreading - applicable for COVID-19 - free version 6 6 Author: CodeRevolution 7 Version: 1.0. 07 Version: 1.0.1 8 8 Author URI: //coderevolution.ro/ 9 9 Text Domain: coronavirus-spread-prediction-graphs-free … … 21 21 $cr_myplugin_url = '//codecanyon.net/item/covid19-coronavirus-viral-pandemic-prediction-tools-wordpress-plugin/25750154'; 22 22 echo '<tr class="active"><td> </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')); 24 24 echo '</p> </td></tr>'; 25 25 }, 10, 3 ); … … 37 37 function cspgf_register_my_custom_menu_page() 38 38 { 39 add_menu_page('Viral Pandemic Prediction Tools Free', 'Viral Pandemic Prediction ToolsFree', '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__)); 40 40 $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'); 41 41 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 } 45 function 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> 68 fetch('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 } 44 98 add_filter("plugin_action_links_$plugin", 'cspgf_add_settings_link'); 45 99 function cspgf_add_settings_link($links) 46 100 { 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); 49 106 return $links; 50 107 } -
covid-19-coronavirus-viral-pandemic-prediction-tools-free-version/trunk/readme.txt
r2361963 r2393202 137 137 * 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") 138 138 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 139 143 == Upgrade Notice == 140 144 -
covid-19-coronavirus-viral-pandemic-prediction-tools-free-version/trunk/styles/cspgf-browser.css
r2246719 r2393202 33 33 { 34 34 width:100%; 35 max-width: 100% !important; 35 36 } 36 37 .coderevolution_circle … … 169 170 } 170 171 172 .bws_help_box.dashicons-editor-help, 173 .setting span .bws_help_box.dashicons-editor-help 174 { 175 z-index:0 !important; 176 } 171 177 .bws_help_box { 172 178 background-image: url("../images/tooltip_icons.png");
Note: See TracChangeset
for help on using the changeset viewer.