This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Joomla Security Scanner | |
| * Verifica a saúde dos arquivos do Joomla e detecta possíveis malwares | |
| * | |
| * DESCRIÇÃO: | |
| * Este scanner realiza uma análise completa de segurança em instalações Joomla, | |
| * detectando potenciais ameaças, vulnerabilidades e problemas de configuração. | |
| * | |
| * FUNCIONALIDADES: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Retrocompatibilidade de margens e paddings do Bootstrap 4 no Bootstrap 5 */ | |
| /* Escala de espaçamento do Bootstrap 4 (em rem, como no BS4) */ | |
| :root { | |
| --bs4-spacer: 1rem; /* Equivalente ao $spacer do Bootstrap 4 */ | |
| } | |
| /* Classes de margem (m-*) */ | |
| .m-0 { margin: 0 !important; } | |
| .m-1 { margin: calc(var(--bs4-spacer) * 0.25) !important; } /* 0.25rem */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Instructions for use: | |
| - To skip the first 100 articles, use the argument "--skip 100". | |
| - To manually define the limit of records to be imported, use the argument "-Limit" followed by the desired number, for example, "-Limit 50". | |
| - To define the start date of import, use the argument "--start_date" followed by the date in "Yyyy-MM-DD" format, for example, "--start_date 2023-01-01". | |
| - To define the end of importation, use the argument "--end_date" followed by the date in "Yyyy-MM-DD" format, for example, "--end_date 2023-12-31". | |
| - To define the category of origin, use the argument "--source_category" followed by the desired ID, for example, "-source_category 10". | |
| - To define the destination category, use the argument "--destination_category" followed by the desired category ID, for example, "--destination_category 5". | |
| - To select Joomla Standard Articles from the Content table in the old database, use the argument "-standard_articles True". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Instructions for use: | |
| - To skip the first 100 articles, use the argument "--skip 100". | |
| - To manually define the limit of records to be imported, use the argument "-Limit" followed by the desired number, for example, "-Limit 50". | |
| - To define the start date of import, use the argument "--start_date" followed by the date in "Yyyy-MM-DD" format, for example, "--start_date 2023-01-01". | |
| - To define the end of importation, use the argument "--end_date" followed by the date in "Yyyy-MM-DD" format, for example, "--end_date 2023-12-31". | |
| - To define the category of origin, use the argument "--source_category" followed by the desired ID, for example, "-source_category 10". | |
| - To define the destination category, use the argument "--destination_category" followed by the desired category ID, for example, "--destination_category 5". | |
| - To select Joomla Standard Articles from the Content table in the old database, use the argument "-standard_articles True". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Custom Bootstrap Margins by Uziel Almeida Oliveira */ | |
| /* p-1 until p-20 */ | |
| .p-1 { | |
| padding: calc(var(--bs-gutter-x) * .125) | |
| } | |
| .p-2 { | |
| padding: calc(var(--bs-gutter-x) * .25) | |
| } | |
| .p-3 { | |
| padding: calc(var(--bs-gutter-x) * .5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Custom Ratios for Bootstrap 5 */ | |
| .ratio-1x1 { | |
| --bs-aspect-ratio: 100%; | |
| } | |
| .ratio-1x2 { | |
| --bs-aspect-ratio: 200%; | |
| } | |
| .ratio-2x1 { | |
| --bs-aspect-ratio: 50%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // change $content with your html content | |
| // replace any <i class fa fa-xxx> with svg equivalent | |
| // fa-b, fa-brands, fa-light, fa-regular, fa-solid, fa-duotone, fas, far, fal, fab, fad | |
| preg_match_all('@<' . 'i class="fa-(.*) fa-(.*)"' . '>@Us', $content, $newmatches); | |
| $svgMatchs = $newmatches[2]; | |
| foreach ($svgMatchs as $key=>$svgMatch) { | |
| $svgFile = JPATH_BASE.$tpath . '/svgs/' . $newmatches[1][$key] . '/' . $svgMatch . '.svg'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // developed by Daniel Paz and Uziel | |
| $tipo = $_GET['tipo']; | |
| $categoria = $_GET['categoria']; | |
| ?> | |
| <form action="" method="get"> | |
| <div class="vistoboot"> | |
| <div class="container"> | |
| <div class="row align-items-end"> | |
| <div class="col-md"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add class row to sp-column when children has any part of class with span in the classname | |
| jQuery(document).ready(function ($) { | |
| $('.sp-column').each(function () { | |
| // get the children class names with span in the classname | |
| var childrenClasses = $(this).children().map(function () { return this.className; }).get().join(' '); | |
| // if children has any part of class with span in the classname | |
| if (childrenClasses.indexOf('span') > -1) { $(this).addClass('row'); } | |
| // change parte of classname with span to col-md- | |
| $(this).children().each(function () { | |
| var className = $(this).attr('class'); |
NewerOlder