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
#!/bin/bash -e | |
# Defining Database Variables: | |
echo "==================================================================" | |
echo "We're going to install the standard plugins and Generatepress:" | |
echo "Plugins to be installed in no particular order:" | |
echo " - The Seo Framework" | |
echo " - SiteOrigin Page Builder with Official Extra Widgets and Livemesh ones" | |
echo " - Widget CSS Classes" |
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 | |
$movies = json_decode(file_get_contents('https://secure.webtic.it/frame/wtjsonservices.ashx?wtid=getFullScheduling&localid=1000')); | |
foreach ($movies->DS->Scheduling->Events as $movie) { | |
$p = new Page(); // create new page object | |
$p->template = 'single-movie'; // set template | |
$p->parent = wire('pages')->get('/programmazione/'); // set the parent | |
$p->name = $movie->Title; // give it a name used in the url for the page | |
$p->title = ucfirst($movie->Title); // set page title (not neccessary but recommended) |
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
#!/bin/bash -e | |
# Start allways the same | |
wpuser='yourusername' | |
wpuseremail='[email protected]' | |
wpuserpass=$(date +%s | sha256sum | base64 | head -c 10) | |
dpprefix=$(date +%s | sha256sum | base64 | head -c 6) | |
clear |
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 | |
$json = file_get_contents( dirname(__FILE__) . DIRECTORY_SEPARATOR . "prdmd.json"); | |
$jsonToArray = json_decode($json, true); | |
$productTemplate = | |
'Title: | |
{{title}} | |
---- | |
Identifier: |
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
#!/bin/bash -e | |
# Start allways the same | |
wpuser='yourusername' | |
wpuseremail='[email protected]' | |
wpuserpass=$(date +%s | sha256sum | base64 | head -c 16) | |
dpprefix=$(date +%s | sha256sum | base64 | head -c 6) | |
clear |
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
#!/bin/bash -e | |
#Giving a name to the file | |
echo "Name your file (Without .tar.gz - avoid dots and special characters): " | |
read -e filename | |
#Making a tar file with the directory excluding snapshot folder | |
env GZIP=-9 tar cvzf "$filename".tar.gz mywebsite.com/ --exclude="mywebsite.com/wp-content/uploads/snapshots" | |
#Moving the file to a public directory |
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
<div class="cf7-custom-style"> | |
<div class="grid-50"> | |
[text* your-name placeholder "Name"] | |
</div> | |
<div class="grid-50"> | |
[email* your-email placeholder "Email"]</div> | |
<div class="grid-100"> | |
[text your-subject placeholder "Subject"] | |
</div> | |
<div class="grid-100"> |
NewerOlder