This file contains hidden or 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 | |
for file in ./front-themes/*; do | |
if [ -d $file ]; then | |
DIRECTORY="${file##"./front-themes/"}"; #obtenemos el nombre del directorio de origen y lo aislamos (debe haber algo mas elegante para hacerlo) | |
if [[ "$DIRECTORY" == *"-2013" ]]; then | |
STYLE1="$file/style.css"; #archivo fuente | |
STYLE2="./htdocs/wp-content/themes/$DIRECTORY/style.css"; #archivo destino | |
DIRECTORY2="./htdocs/wp-content/themes/$DIRECTORY/"; #directorio de destino | |
if [[ "$STYLE1" -nt "$STYLE2" ]]; then #comparamos si origen es mas nuevo que destino |
This file contains hidden or 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 | |
/** | |
* Obtain youtube video API object and transients it | |
* eg. $video = new youtube_videos('simonscat'); | |
* $video->get_videos(array('offset' => 5,'num_videos' => 10)); | |
* @param $account string Account youtube name | |
* @return none | |
* @author Hugo Solar <[email protected]> | |
* */ |
NewerOlder