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 | |
public function options() { | |
return array( | |
'id'=>array('type' => 'boolean', 'required' => true), | |
'type'=>'button_set', | |
'title'=>array('type' => 'string', 'required' => true), | |
'subtitle'=>array('type' => 'string', 'required' => true), | |
'desc'=> array('type' => 'string', 'required' => true), | |
'required' => true, | |
'customizer' => true, |
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 | |
//current way | |
$options = array( | |
'key1' => 'value', | |
'key2' => array( | |
'key3' => '' | |
) | |
); |
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
{ | |
"my json question?" : "my json answer", | |
"my json question2?" : "my json answer2", | |
"my json question3?" : "my json answer 3" | |
} |
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 | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local') | |
{ | |
if($response instanceof Illuminate\Http\Response) |
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 | |
/* | |
Plugin Name: Fluent Demo - force direct | |
Plugin URI: # | |
Description: Forces wp to think it has direct filesystem access during ajax and admin requests. | |
Author: No Half Pixels Ltd | |
Version: 1.0.0 | |
Author URI: http://nohalfpixels.com | |
*/ | |
add_filter( 'filesystem_method', function($method){ |
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 | |
define('LARAVEL_START', microtime(true)); | |
/* | |
|-------------------------------------------------------------------------- | |
| Register The Composer Auto Loader | |
|-------------------------------------------------------------------------- | |
| | |
| Composer provides a convenient, automatically generated class loader |
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 | |
define('LARAVEL_START', microtime(true)); | |
/* | |
|-------------------------------------------------------------------------- | |
| Register The Composer Auto Loader | |
|-------------------------------------------------------------------------- | |
| | |
| Composer provides a convenient, automatically generated class loader |
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 | |
//Welcome to the new blog ;-) | |
echo 'Hello World'; |
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
30 2 * * 1 /opt/letsencrypt/letsencrypt-auto renew >> /var/log/le-renew.log | |
35 2 * * 1 /etc/init.d/nginx reload |
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
cd /opt/letsencrypt | |
./letsencrypt-auto certonly -a webroot --webroot-path=/path/to/site -d example.com -d www.example.com |
OlderNewer