Changeset 2977112
- Timestamp:
- 10/10/2023 03:37:02 PM (10 months ago)
- Location:
- gerador-de-certificados-devapps/trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
gerador-de-certificados-devapps/trunk/README.txt
r2963875 r2977112 4 4 Requires at least: 5.0 5 5 Tested up to: 6.3.1 6 Stable tag: 1. 1.06 Stable tag: 1. 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 73 73 == Changelog == 74 74 75 76 77 78 79 75 80 = 1.2.2 = 76 81 * Atualização do README -
gerador-de-certificados-devapps/trunk/admin/class-devapps-certificate-generator-admin.php
r2963874 r2977112 63 63 public function enqueue_styles() 64 64 { 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 )) { 66 69 return; 67 70 } … … 78 81 public function enqueue_scripts() 79 82 { 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 )) { 81 87 return; 82 88 } … … 114 120 6 115 121 ); 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 116 142 } 117 143 … … 142 168 143 169 /** 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 144 269 * Recupera todos os modelos de certificado do banco de dados. 145 270 * … … 158 283 return $models; 159 284 } 285 286 287 288 289 290 291 292 293 160 294 161 295 … … 513 647 { 514 648 try { 649 650 651 652 653 654 655 656 515 657 // Carrega o modelo de imagem de certificado 516 658 $image = imagecreatefromjpeg($data['model']); … … 566 708 $time_font_size = 25; 567 709 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'])); 570 712 imagecopy($image, $qrcode, 120, imagesy($image) - imagesy($qrcode) - 100, 0, 0, imagesx($qrcode), imagesy($qrcode)); 571 713 … … 593 735 imagedestroy($image); 594 736 737 738 739 740 741 742 743 744 595 745 // Retorna a URL da imagem gerada 596 746 return $file_url; … … 600 750 } 601 751 } 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 602 821 603 822 /** -
gerador-de-certificados-devapps/trunk/admin/css/devapps-certificate-generator-admin.css
r2865262 r2977112 135 135 padding: 32px; 136 136 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); 138 140 border-radius: 6px; 139 141 } … … 178 180 } 179 181 180 181 .table td{ 182 .table td { 182 183 vertical-align: middle; 183 184 } 184 185 185 .jumbotron {186 .jumbotron{ 186 187 background-color: #fbfbfb !important; 187 188 } 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 20 20 <li>O arquivo deve ser enviado em formato <b>jpg;</b></li> 21 21 <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> 23 23 <li>Caso deseje incluir logo e assinatura nos certificados, as mesmas devem fazer parte da imagem de modelo que você vai enviar.</li> 24 24 <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 10 10 * 11 11 * @link https://devapps.com.br 12 * @since 1. 2.212 * @since 1. 13 13 * @package Devapps_Certificate_Generator 14 14 * … … 17 17 * Plugin URI: https://devapps.com.br/plugins/devapps-certificate-generator 18 18 * Description: Gerador de certificados para cursos e eventos. 19 * Version: 1. 2.219 * Version: 1. 20 20 * Author: DevApps Consultoria e Desenvolvimento de Sistemas 21 21 * Author URI: https://devapps.com.br … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('DEVAPPS_CERTIFICATE_GENERATOR_VERSION', '1. 2.2');38 define('DEVAPPS_CERTIFICATE_GENERATOR_VERSION', '1.'); 39 39 40 40
Note: See TracChangeset
for help on using the changeset viewer.