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 | |
// Function to get Elementor colors | |
function get_elementor_colors() { | |
// For exporting global settings | |
$default_post_id = get_option('elementor_active_kit'); | |
$global_data = get_post_meta($default_post_id, '_elementor_page_settings', true); | |
$colors = []; |
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
/*para desktop*/ | |
@media (min-width: 1025px) { | |
:root { | |
--columns: 12; | |
--width: 1140px; | |
--offset: 0px; | |
--gutter: 20px; | |
--color: #f90fba14; | |
} |
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 | |
/** | |
* Link the FR translation and the EN translation | |
* Called by API https://domain.com/wp-json/link_translation/post/ | |
*/ | |
function custom_rest_link_translation($data) { | |
//Source https://wpml.org/wpml-hook/wpml_set_element_language_details/ |
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
downloadPhoto1 = invokeurl | |
[ | |
url: "https://media-cdn.tripadvisor.com/media/photo-s/0f/49/47/99/chambre-case-plage.jpg" | |
type: GET | |
]; | |
//Ajout de la photo dans une liste | |
files = List(); | |
downloadPhoto1.setParamName("file"); | |
files.add(downloadPhoto1); |
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
create_produit_CMS = invokeurl | |
[ | |
url :apiWpUrlEndpointPost | |
type :POST | |
parameters:data.toString() | |
connection:"wpconnextion" | |
content-type:"application/json" | |
]; | |
//Affichage des erreurs | |
responseData = create_produit_CMS.get("data"); |
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
#! /usr/bin/env bash | |
find -E '/Users/Johann/Desktop/ResizeGoogle' -type f -iregex '.*\.(JPG|JPEG|PNG|TIF|TIFF)$' |\ | |
while read FULL_IMAGE_PATH | |
do | |
convert -density 72 -units PixelsPerInch -resize "2000x2000>" -quality 90 "${FULL_IMAGE_PATH}" "${FULL_IMAGE_PATH}" | |
done | |
####### WINDOWS ####### |
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
#! /usr/bin/env bash | |
find -E '/Users/Johann/Desktop/ResizeBlog2' -type f -iregex '.*\.(JPG|JPEG|PNG|TIF|TIFF)$' |\ | |
while read FULL_IMAGE_PATH | |
do | |
convert -density 72 -units PixelsPerInch -resize "1200x1200>" -quality 90 "${FULL_IMAGE_PATH}" "${FULL_IMAGE_PATH}" | |
composite -compose atop -geometry +15 -gravity southwest ./watermark-photos.png "${FULL_IMAGE_PATH}" "${FULL_IMAGE_PATH}" | |
done |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<!-- page_head.tpl --> |
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
[link] | |
CustomAttributes[] | |
CustomAttributes[]=onclick |
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 | |
/** | |
* File containing the FooterController class. | |
* | |
* @copyright Copyright (C) 1999-2014 eZ Systems AS. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | |
* @version //autogentag// | |
*/ |