Plugin Directory

Changeset 1424906


Ignore:
Timestamp:
05/26/2016 05:57:35 PM (10 years ago)
Author:
robsonalvesbh
Message:

Corrigido bug no Cron

Location:
donuz/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • donuz/trunk/class/Class_dnz_base_plugin.php

    r1424412 r1424906  
    7676    }
    7777
    78     private function page_tabs($current = 'first')
     78    private function page_tabs($current = 'configuracoes')
    7979    {
    8080        $tabs = array(
  • donuz/trunk/class/Class_dnz_util.php

    r1424412 r1424906  
    1212class Class_dnz_util
    1313{
    14     CONST VERSION = '1.0.0';
     14    CONST VERSION = '1.0.1';
    1515    CONST PLUGIN_NAME = 'Donuz';
    1616    CONST PLUGIN_SLUG = 'integrador_donuz';
  • donuz/trunk/class/assets/js/requests.js

    r1424412 r1424906  
    1  jQuery(document).ready(function () {
     1jQuery(document).ready(function () {
    22    jQuery("#form-save-options").ajaxForm({
    3         beforeSend: function() {
     3        beforeSend: function () {
    44            jQuery('#dnzBtnForm').val('Processing...');
    55        },
    66        success: function (responseText) {
    77            jQuery('#dnzMsgForm').html('<div id="message" class="updated notice is-dismissible"><p>Successfully saved data!.</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notification.</span></button></div> ');
    8         },             
    9         complete: function() {
     8        },
     9        complete: function () {
    1010            jQuery('#dnzBtnForm').val('Save options');
    1111        }
  • donuz/trunk/class/views/inicio.php

    r1424412 r1424906  
    22
    33    <?php
    4         $tab = (!empty($_GET['tab'])) ? esc_attr($_GET['tab']) : 'configuracoes';
    5         $this->page_tabs($tab);
    6    
    7         if ($tab == 'configuracoes'):
    8     ?>
     4    $tab = (!empty($_GET['tab'])) ? esc_attr($_GET['tab']) : 'configuracoes';
     5    $this->page_tabs($tab);
     6
     7    if ($tab == 'configuracoes'):
     8        ?>
    99
    1010        <div id="dnzMsgForm"></div>
     
    2727                                            <label>ID do estabelecimento</label><br>
    2828                                            <input name="id_estabelecimento" id="title" style="width: 100%" type="text"
    29                                                    value="<?php echo (empty($estabelecimentoID)) ? '' : $estabelecimentoID ?>">
     29                                                   value="<?php
     30                                                   echo (empty($estabelecimentoID))
     31                                                       ? ''
     32                                                       : $estabelecimentoID
     33                                                   ?>">
    3034                                        </div>
    3135
     
    3539                                            <label>Token de acesso a API</label><br>
    3640                                            <input name="token_donuz" id="title" style="width: 100%" type="text"
    37                                                    value="<?php echo (empty($tokenDonuz)) ? '' : $tokenDonuz ?>">
     41                                                   value="<?php
     42                                                   echo (empty($tokenDonuz))
     43                                                       ? ''
     44                                                       : $tokenDonuz
     45                                                   ?>">
    3846                                        </div>
    3947
  • donuz/trunk/integrador-donuz-woocommerce.php

    r1424412 r1424906  
    44 * Plugin URI: http://www.donuz.co/
    55 * Description: Integração entre a plataforma woocomerce e a plataforma de fidelização de clientes Donuz
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Robson Alves
    88 * Author URI: http://robsonalvesbh.github.io/
     
    3030    $dnz->getDateInDB();
    3131    $sales = $dnz->getSales();
    32     if (cont($sales) > 0)
    33         $dnz->insertPoint($sales);
     32    if (count($sales) > 0)
     33    {
     34        return $dnz->insertPoint($sales);
     35    }
    3436}
  • donuz/trunk/readme.txt

    r1424412 r1424906  
    3030== Screenshots ==
    3131
    32 -
     32* Logo Donuz
    3333
    3434== Changelog ==
    3535
    36 = 1.0 =
     36= 1.0.1 =
     37
     38* Corrigido bug no cron
    3739
    3840== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.