Plugin Directory

Changeset 2241603


Ignore:
Timestamp:
02/10/2020 09:15:56 AM (6 years ago)
Author:
itdesk
Message:

version 1.0.2

Location:
callback24/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • callback24/trunk/callbacktwentyfour.php

    r2212731 r2241603  
    33 * Plugin Name: Callback24
    44 * Description: Callback24 – oddzwoń do klienta w ciągu 15 sekund!
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: itDesk
    77 * Author URI: https://agencja-interaktywna.opole.pl
     
    3232
    3333    public function render_callback_admin_page() {
     34        //var_dump($_SERVER['HTTP_HOST']); exit;
    3435        ?>
    3536        <div class="wrap">
    3637            <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>
    4439        </div>
     40
    4541        <?php
    4642    }
     
    7066    public function returnLicense() {
    7167        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>";
    7376        }
    7477    }
     
    9093add_action('wp_footer', 'callback_head_script');
    9194
    92 add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_callback_action_links' );
     95add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'add_callback_action_links');
    9396
    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 );
     97function 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);
    99102}
    100 
    101 
  • callback24/trunk/readme.txt

    r2215035 r2241603  
    55Requires at least: 5.0
    66Tested up to: 5.2
    7 Requires PHP: 7.2
     7Requires PHP: 5.6
    88Stable tag: 4.3
    99License: GPLv2 or later
     
    100100= 1.0.1 =
    101101* Pierwsza wersja
     102
     103= 1.0.2 =
     104* Dodano konfigurator do rejestracji
Note: See TracChangeset for help on using the changeset viewer.