Plugin Directory

Changeset 2977112

Timestamp:
10/10/2023 03:37:02 PM (10 months ago)
Author:
tidevapps
Message:

Release 1.3.0 -> Tela de configurações e exportação em PDF.

Location:
gerador-de-certificados-devapps/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • gerador-de-certificados-devapps/trunk/README.txt

    r2963875 r2977112  
    44Requires at least: 5.0
    55Tested up to: 6.3.1
    6 Stable tag: 1.1.0
     6Stable tag: 1.
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7373== Changelog ==
    7474
     75
     76
     77
     78
     79
    7580= 1.2.2 =
    7681* Atualização do README
  • gerador-de-certificados-devapps/trunk/admin/class-devapps-certificate-generator-admin.php

    r2963874 r2977112  
    6363    public function enqueue_styles()
    6464    {
    65         if (!isset($_GET['page']) || $_GET['page'] != "devapps-certificate-generator") {
     65        if (!isset($_GET['page']) || ($_GET['page'] != "devapps-certificate-generator" &&
     66            $_GET['page'] != "devapps-certificate-generator-list" &&
     67            $_GET['page'] != "devapps-certificate-generator-settings"
     68        )) {
    6669            return;
    6770        }
     
    7881    public function enqueue_scripts()
    7982    {
    80         if (!isset($_GET['page']) || $_GET['page'] != "devapps-certificate-generator") {
     83        if (!isset($_GET['page']) || ($_GET['page'] != "devapps-certificate-generator" &&
     84            $_GET['page'] != "devapps-certificate-generator-list" &&
     85            $_GET['page'] != "devapps-certificate-generator-settings"
     86        )) {
    8187            return;
    8288        }
     
    114120            6
    115121        );
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
    116142    }
    117143
     
    142168
    143169    /**
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
     208
     209
     210
     211
     212
     213
     214
     215
     216
     217
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
     229
     230
     231
     232
     233
     234
     235
     236
     237
     238
     239
     240
     241
     242
     243
     244
     245
     246
     247
     248
     249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
    144269     * Recupera todos os modelos de certificado do banco de dados.
    145270     *
     
    158283        return $models;
    159284    }
     285
     286
     287
     288
     289
     290
     291
     292
     293
    160294
    161295
     
    513647    {
    514648        try {
     649
     650
     651
     652
     653
     654
     655
     656
    515657            // Carrega o modelo de imagem de certificado
    516658            $image = imagecreatefromjpeg($data['model']);
     
    566708            $time_font_size = 25;
    567709            imagettftext($image, $time_font_size, 0, 1229, 980, $color, $font_regular, $time);
    568            
    569             $qrcode = imagecreatefrompng($this->generateQRCode('/validacao-de-certificado', $data['id']));
     710
     711            $qrcode = imagecreatefrompng($this->generateQRCode(, $data['id']));
    570712            imagecopy($image, $qrcode, 120, imagesy($image) - imagesy($qrcode) - 100, 0, 0, imagesx($qrcode), imagesy($qrcode));
    571713
     
    593735            imagedestroy($image);
    594736
     737
     738
     739
     740
     741
     742
     743
     744
    595745            // Retorna a URL da imagem gerada
    596746            return $file_url;
     
    600750        }
    601751    }
     752
     753
     754
     755
     756
     757
     758
     759
     760
     761
     762
     763
     764
     765
     766
     767
     768
     769
     770
     771
     772
     773
     774
     775
     776
     777
     778
     779
     780
     781
     782
     783
     784
     785
     786
     787
     788
     789
     790
     791
     792
     793
     794
     795
     796
     797
     798
     799
     800
     801
     802
     803
     804
     805
     806
     807
     808
     809
     810
     811
     812
     813
     814
     815
     816
     817
     818
     819
     820
    602821
    603822    /**
  • gerador-de-certificados-devapps/trunk/admin/css/devapps-certificate-generator-admin.css

    r2865262 r2977112  
    135135    padding: 32px;
    136136    background: #fff;
    137     box-shadow: 0px 2px 1px rgba(39, 45, 77, 0.05), 0px 2px 8px rgba(187, 187, 187, 0.2);
     137    box-shadow:
     138        0px 2px 1px rgba(39, 45, 77, 0.05),
     139        0px 2px 8px rgba(187, 187, 187, 0.2);
    138140    border-radius: 6px;
    139141}
     
    178180}
    179181
    180 
    181 .table td{
     182.table td {
    182183    vertical-align: middle;
    183184}
    184185
    185 .jumbotron{
     186.jumbotron{
    186187    background-color: #fbfbfb !important;
    187188}
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
  • gerador-de-certificados-devapps/trunk/admin/views/tabs/models.php

    r2963874 r2977112  
    2020                    <li>O arquivo deve ser enviado em formato <b>jpg;</b></li>
    2121                    <li>O arquivo deve ter no máximo <b>1MB</b>;</li>
    22                     <li>Tamanho de <b>1811x1299px</b> (paisagem). Este é o tamanho recomendável para que seu certificado A4 fique melhor configurado;</li>
     22                    <li>Tamanho de <b>1811x1299px</b> (paisagem). Este é o tamanho recomendável para que seu certificado A4 fique melhor configurado;</li>
    2323                    <li>Caso deseje incluir logo e assinatura nos certificados, as mesmas devem fazer parte da imagem de modelo que você vai enviar.</li>
    2424                    <li>Segue o arquivo de photoshop <a href="<?php echo DEVAPPS_CERTIFICATE_GENERATOR_URL . "models/certificados.psd";?>" target="_blank">PSD</a> para edição, você pode utilizar o <a href="https://www.photoshoponline.net.br/" target="_blank">https://www.photoshoponline.net.br</a> para editar o arquivo, ou outro editor de sua preferencia.</li>
  • gerador-de-certificados-devapps/trunk/devapps-certificate-generator.php

    r2963875 r2977112  
    1010 *
    1111 * @link              https://devapps.com.br
    12  * @since             1.2.2
     12 * @since             1.
    1313 * @package           Devapps_Certificate_Generator
    1414 *
     
    1717 * Plugin URI:        https://devapps.com.br/plugins/devapps-certificate-generator
    1818 * Description:       Gerador de certificados para cursos e eventos.
    19  * Version:           1.2.2
     19 * Version:           1.
    2020 * Author:            DevApps Consultoria e Desenvolvimento de Sistemas
    2121 * Author URI:        https://devapps.com.br
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('DEVAPPS_CERTIFICATE_GENERATOR_VERSION', '1.2.2');
     38define('DEVAPPS_CERTIFICATE_GENERATOR_VERSION', '1.');
    3939
    4040
Note: See TracChangeset for help on using the changeset viewer.