View flexslider-always-show-arrows.css
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
.flexslider .flex-direction-nav .flex-next { | |
right: 5px; /* adjust offset to match the hover style */ | |
opacity: .8; /* adjust opacity to match the hover style */ | |
} | |
.flexslider .flex-direction-nav .flex-prev { | |
left: 5px; /* adjust offset to match the hover style */ | |
opacity: .8; /* adjust opacity to match the hover style */ | |
} |
View max-upload-size.php
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 | |
/** | |
* Filter the upload size limit for non-administrators. | |
* | |
* @param string $size Upload size limit (in bytes). | |
* @return int (maybe) Filtered size limit. | |
*/ | |
function filter_site_upload_size_limit( $size ) { | |
$size = 60 * 1024 * 1024; | |
return $size; |
View edit-host-file.bash
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
# open host file | |
sudo nano /private/etc/hosts | |
# clear DNS cache | |
dscacheutil -flushcache;sudo killall -HUP mDNSResponder |
View gitignore-for-wordpress-theme
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
# ignore everything in the root except the "wp-content" directory. | |
/* | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# mu-plugins, plugins, and themes directories | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |
View .htaccess
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
View .htaccess
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# uploaded files | |
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] |
View get_locale_abbr.php
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 | |
/* | |
* get the abbreviated language code from get_locale() | |
*/ | |
public function get_locale_abbr() { | |
return strtok( get_locale(), "_" ); | |
} |
View sample-request.php
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 adding_products() { | |
// API call | |
$feed = new Boats_API_Client( 'yachtall', 'en', array( 'code' => 'xxx', 'site_id' => 'xxx', 'bt_vers' => '3.0', 'api_vers' => '1.0' ) ); | |
echo '<pre>'; | |
var_dump($feed); | |
echo '</pre>'; |
NewerOlder