This file contains 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
{# | |
Relies mostly on a meta array containing appropriate values. | |
site_name is a parameter set as a Twig Global | |
default_share_image is a fallback parameter set as a Twig Global | |
#} | |
<meta charset="UTF-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="robots" content="index, follow" /> | |
<meta property="og:type" content="website" /> |
This file contains 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 | |
namespace Common\ContentBundle\Entity; | |
... | |
use Gedmo\Mapping\Annotation as Gedmo; | |
class ProductCategory | |
{ | |
... | |
/** | |
* @var integer $position |
This file contains 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 | |
namespace MyBundle\Form\Extension; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\OptionsResolver\OptionsResolver; | |
use Symfony\Component\Form\Extension\Core\Type\DateTimeType; | |
/** | |
* Class FlatpickrDateTimeType | |
* @package MyBundle\Form\Extension |
This file contains 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
// Recaptcha HTML: <div class="g-recaptcha" data-sitekey="{{ site_key }}" data-theme="dark" id="recaptcha"></div> | |
// MapKit HTML: <div id="map" class="h-full"></div> | |
// (also requires installation of mapkit.js and recaptcha.js scripts) | |
var recpatcha = document.getElementById('recaptcha') | |
var mapKitColorMode = "light"; | |
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { | |
recpatcha.setAttribute('data-theme', 'dark'); | |
mapKitColorMode = "dark" |
This file contains 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
{ | |
}, | |
"require": { | |
"aws/aws-sdk-php": "3.*" | |
} | |
} |
This file contains 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 | |
namespace AppBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolver; | |
use Vich\UploaderBundle\Form\Type\VichFileType; |
This file contains 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 | |
namespace Common\ContentBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use DoctrineExtensions\Taggable\Taggable; | |
use Symfony\Component\Validator\Constraints as Assert; | |
use Symfony\Component\HttpFoundation\File\File; | |
use Vich\UploaderBundle\Mapping\Annotation as Vich; | |
use Gedmo\Mapping\Annotation as Gedmo; |
This file contains 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
Fix for FOUC : | |
**At the top of your HTML:** | |
<!doctype html> | |
<html> | |
<head> | |
<style>html{visibility: hidden;opacity:0;}</style> | |
This file contains 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
# This file means nothing. It's just here to give the Gist a name I can understand. | |
# This configuration requires the KNP Snappy Bundle [https://github.com/KnpLabs/KnpSnappyBundle] |
This file contains 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
analytics | |
bug | |
ui/ux problem | |
enhancement | |
hold | |
duplicate | |
enhancement | |
help wanted | |
need client feedback | |
need client info |
NewerOlder