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'); |
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
/* | |
Classes "span" não são interpretadas por Bootstrap 3 e superiores, deixando tudo desalinhado e desproporcional ou "acavalado". | |
Esse pequeno hack abaixo permite que, pelo CSS, essas divs com classes legadas do Bootstrap 2 possam ser mais bem adaptadas ao visual moderno do Bootstrap 4 que usa flex-box no css. | |
*/ | |
/* | |
Span classes are not interpreted by Bootstrap 3 and higher, leaving everything out of alignment and disproportionate or 'overturned'. | |
This little hack below allows, through CSS, these divs with legacy Bootstrap 2 classes to be better adapted to the modern look of Bootstrap 4 that uses flex-box in css. |
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
UPDATE `#__menu` SET `menutype` = 'main' WHERE `g4t1l_menu`.`menutype` = 'menu' |
NewerOlder