Changeset 2241603
- Timestamp:
- 02/10/2020 09:15:56 AM (6 years ago)
- Location:
- callback24/trunk
- Files:
-
- 2 edited
-
callbacktwentyfour.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
callback24/trunk/callbacktwentyfour.php
r2212731 r2241603 3 3 * Plugin Name: Callback24 4 4 * Description: Callback24 – oddzwoń do klienta w ciągu 15 sekund! 5 * Version: 1.0. 15 * Version: 1.0.2 6 6 * Author: itDesk 7 7 * Author URI: https://agencja-interaktywna.opole.pl … … 32 32 33 33 public function render_callback_admin_page() { 34 //var_dump($_SERVER['HTTP_HOST']); exit; 34 35 ?> 35 36 <div class="wrap"> 36 37 <h1>Callback24</h1> 37 <form method="post" action="options.php"> 38 <?php 39 settings_fields('callbacktwentyfour'); 40 do_settings_sections('callbacktwentyfour'); 41 submit_button(); 42 ?> 43 </form> 38 <iframe src="https://panel.callback24.io/users/pluginLogin/<?= get_option('admin_email') ?>/<?=$_SERVER['HTTP_HOST']?>/WORDPRESS" style="width: -webkit-fill-available; height: -webkit-fill-available; border: none; background: white; border-radius: 10px"></iframe> 44 39 </div> 40 45 41 <?php 46 42 } … … 70 66 public function returnLicense() { 71 67 if (isset($this->options['key']) && $this->options['key']) { 72 return $this->options['key']; 68 69 return " <script> 70 var script=document.createElement('script'); 71 script.async=true; 72 script.src='https://panel.callback24.io/js/callbackWidget.js?name=wordpress_'+window.location.host; 73 script.type='text/javascript'; 74 document.body.appendChild(script); 75 </script>"; 73 76 } 74 77 } … … 90 93 add_action('wp_footer', 'callback_head_script'); 91 94 92 add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_callback_action_links');95 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'add_callback_action_links'); 93 96 94 function add_callback_action_links ( $links) {95 $mylinks = array(96 '<a style="font-weight:bold;color:red;font-size:18px;" href="' . admin_url( 'options-general.php?page=callbacktwentyfour') . '">Settings</a>',97 );98 return array_merge( $links, $mylinks);97 function add_callback_action_links($links) { 98 $mylinks = array( 99 '<a style="font-weight:bold;color:red;font-size:18px;" href="' . admin_url('options-general.php?page=callbacktwentyfour') . '">Settings</a>', 100 ); 101 return array_merge($links, $mylinks); 99 102 } 100 101 -
callback24/trunk/readme.txt
r2215035 r2241603 5 5 Requires at least: 5.0 6 6 Tested up to: 5.2 7 Requires PHP: 7.27 Requires PHP: 5.6 8 8 Stable tag: 4.3 9 9 License: GPLv2 or later … … 100 100 = 1.0.1 = 101 101 * Pierwsza wersja 102 103 = 1.0.2 = 104 * Dodano konfigurator do rejestracji
Note: See TracChangeset
for help on using the changeset viewer.