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
# This is a .gitignore file for git-managed WordPress projects. | |
# Ignore everything in the root except the "wordpress" directory. | |
/* | |
!.gitignore | |
!wordpress/ | |
# Ignore everything in the "wordpress" directory except the "wp-content" directory | |
wordpress/* | |
!wordpress/wp-content/ |
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
# This is a template .gitignore file for git-managed WordPress projects. | |
# Ignores everything in the root except the theme you're working on. | |
/* | |
/*/ | |
!/_tpl/ | |
!/wordpress/ | |
/wordpress/* | |
!/wordpress/wp-content | |
/wordpress/wp-content/* |
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
/* | |
* Arrow Mixin | |
*/ | |
@mixin arrow($font-size: 1em, $color: $black, $hover-color: $white, $background-color: $white, $hover-background-color: $black) { | |
@include inline-block; | |
position: relative; | |
background: $background-color; | |
font-size: $font-size; | |
line-height: 1em; |
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
<FilesMatch "\.(js|css|html|htm|php|svg)$"> | |
SetOutputFilter DEFLATE | |
</FilesMatch> |
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
# ----------------------------------------------------------------------------------------------- | |
# Redirects all file requests that do not exist locally to the production server | |
# ----------------------------------------------------------------------------------------------- | |
# Force local files that exist to be generated. | |
RewriteCond %{REQUEST_URI} ^/site/assets/files/[^\/]*/((.*))$ | |
RewriteCond %{DOCUMENT_ROOT}/site/assets/files/%1/%2 -f | |
RewriteRule ^(.*)$ $1 [QSA,L] | |
# Otherwise, send anything else that's in the files directory to the production server. |
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 | |
namespace Starter\Extras; | |
function instagramUserMedia($token, $count = 6, $minutes = 5) { | |
$results = []; | |
$transient_key = __NAMESPACE__ . 'instagram'; | |
if (!$results = get_transient($transient_key)) { | |
$ch = curl_init(); | |
curl_setopt_array($ch, array( |
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 | |
$ip = file_get_contents('https://api.ipify.org'); | |
$location = file_get_contents('http://freegeoip.net/json/'.$ip); | |
print_r($location) |
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 "wordpress" directory. | |
/* | |
!.gitignore | |
!wordpress/ | |
# Ignore everything in the "wordpress" directory, except the "wp-content" directory. | |
wordpress/* | |
!wordpress/wp-content/* | |
# Ignore everything in the "wp-content" directory, except the "themes" 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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP 5.2.4 or newer | |
* | |
* NOTICE OF LICENSE | |
* | |
* Licensed under the Open Software License version 3.0 | |
* |
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 | |
if ( ! function_exists('env')) { | |
/** | |
* Gets the value of an environment variable. Supports boolean, empty and null. | |
* | |
* @author Taylor Otwell / Laravel | |
* @param string $key | |
* @param mixed $default | |
* @return mixed | |
*/ |
OlderNewer