Skip to content

Instantly share code, notes, and snippets.

View akyoscommunication's full-sized avatar

akyoscommunication akyoscommunication

View GitHub Profile
@akyoscommunication
akyoscommunication / back.php
Created September 18, 2019 09:27
[RGPD CF7] Mise en place de la phrase pour la rgpd ( CF7 ) #cf7
J'autorise la conservation de mes données selon la politique de conservation des données Mon site : [confidentialite]
@akyoscommunication
akyoscommunication / akyos-repeater.php
Last active June 15, 2021 09:34
[Repeater in vc_map] Mettre un repeater dans l'admin d'un shortcode #wordpress # Shortcode
vc_map(
array(
'name' => __('Timeline', 'text-domain'),
'base' => 'akyos_timeline',
'description' => __('Une timeline', 'text-domain'),
'category' => __('Akyos Elements', 'text-domain'),
'params' => array(
array(
'type' => 'param_group',
'value' => '',
@akyoscommunication
akyoscommunication / .htaccess
Last active December 12, 2019 10:03
[.htaccess symfony apache] à mettre dans le public/ #htaccess #symfony
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex index.php
# By default, Apache does not evaluate symbolic links if you did not enable this
# feature in your server configuration. Uncomment the following line if you
# install assets as symlinks or if you experience problems related to symlinks
@akyoscommunication
akyoscommunication / .gitmodules
Created December 12, 2019 10:02
[.gitmodules] Fichier de submodules symfony AkyosCMS #symfony #github
[submodule "lib/BuilderBundle"]
path = lib/BuilderBundle
url = git@github.com:akyoscommunication/BuilderBundle.git
[submodule "lib/FormBundle"]
path = lib/FormBundle
url = git@github.com:akyoscommunication/FormBundle.git
[submodule "lib/CoreBundle"]
path = lib/CoreBundle
url = git@github.com:akyoscommunication/CoreBundle.git
[submodule "lib/FileManagerBundle"]
@akyoscommunication
akyoscommunication / Admin cf7
Created September 22, 2021 15:57
[Télécharger des fichiers pour le clients après un submit de form] #wordpress #cf7
<label><span class="form-label">Your name</span>[text* your-name]</label>
<label><span class="form-label">Your name</span>[email* your-email]</label>
<label><span class="form-label">Your name</span>[text* your-subject]</label>
<label><span class="form-label">Your name</span>[textarea your-message]</label>
<label class="not-control">[checkbox* checkbox-687 use_label_element "En cochant cette case, je reconnais avoir pris connaissance des conditions liées à l'utilisation de mes données."]</label>
@akyoscommunication
akyoscommunication / rector.php
Created September 1, 2022 08:52
[Rector Symfony 6 + PHP 8] Modifier automatiquement les annotations en attributs + régler quelques bonnes pratiques Symfony #symfony
<?php
declare(strict_types=1);
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Symfony\Set\SensiolabsSetList;
use Rector\Config\RectorConfig;
use RectorNette\Set\NetteSetList;