Skip to content

Instantly share code, notes, and snippets.

@estefanionsantos
estefanionsantos / grid-one-row-and-2-columns-for-mobile.html
Created February 27, 2024 00:09
Grid One row and 2 columns for mobile
<div class="row row_fluid">
<div class="gr gr_4 gr_md_12 bg">4</div>
<div class="gr gr_4 gr_md_6 bg">4</div>
<div class="gr gr_4 gr_md_6 bg">4</div>
</div>
@estefanionsantos
estefanionsantos / grid-from-column-to-row.html
Created February 27, 2024 00:07
Grid From column to row
<div class="row row_fluid">
<div class="gr gr_4 gr_md_12 bg">4</div>
<div class="gr gr_4 gr_md_12 bg">4</div>
<div class="gr gr_4 gr_md_12 bg">4</div>
</div>
<div class="expand bg_prm">
<input type="checkbox" id="mn_x_bt" />
<label for="mn_x_bt">&#9776;</label>
<div class="mn_x mn_prm">
<ul>
<li><a href="#">Home</a></li>
<li>
<a href="#">Products</a>
<ul>
<li><a href="#">Product 1</a></li>
@estefanionsantos
estefanionsantos / example-coming-soon.php
Last active June 25, 2023 19:36
example coming soon
<?php
/*
* Shortly
*/
# EOF
@estefanionsantos
estefanionsantos / div-widget02.php
Last active June 25, 2023 22:55
Rubricate Div Widget 02
<?php
use Rubricate\Widget\DivWidget;
$div = new DivWidget('Name: %s | Country: %s | Century: %d ');
$div->setParam('Rainha Ginga');
$div->setParam('Angola');
$div->setParam(17);
@estefanionsantos
estefanionsantos / div-widget01.php
Last active June 25, 2023 19:13
Rubricate Div Widget 01
<?php
use Rubricate\Widget\DivWidget;
/* Example 1 */
$div = new DivWidget('Text Here');
echo $div->getElement();
# <div>Text Here</div>
/* Example 2*/
@estefanionsantos
estefanionsantos / anchor-widget02.php
Created June 25, 2023 04:14
Rubricate Anchor Widget 02
<?php
use Rubricate\Widget\AnchorIfWidget;
$if = (1 == 1);
$href = 'https://rubricate.github.io';
$text = 'Rubricate';
$a = new AnchorIfWidget($if, $href, $text);
echo $a->getElement();
@estefanionsantos
estefanionsantos / anchor-widget01.php
Last active June 25, 2023 04:06
Rubricate Anchor Widget 01
<?php
use Rubricate\Widget\AnchorWidget;
$href = 'https://rubricate.github.io';
$text = 'Rubricate';
$a = new AnchorWidget($href, $text);
echo $a->getElement();
# <a href="https://rubricate.github.io">Rubricate</a>
@estefanionsantos
estefanionsantos / image-widget01.php
Last active June 24, 2023 23:12
Rubricate widget image 01
<?php
/**
* sintax:
$img = new ImageWidget('image.png');
echo $img->getElement();
*/
use Rubricate\Widget\ImageWidget;
@estefanionsantos
estefanionsantos / dev_2023-09-20.log
Created April 7, 2023 21:02
log output with .log extension
2023-09-20 18:05:00 DEBUG: Array
(
[0] => lorem
[1] => ipsum
[2] => dolor
)
2023-09-20 18:05:00 DEBUG: int(1)
2023-09-20 18:05:00 DEBUG: bool(true)
2023-09-20 18:05:00 DEBUG: some text here
2023-09-20 18:05:00 DEBUG: float(5.2)