Herramientas
- Editor de texto
- Git
Frameworks
- Bootstrap
- Resets
- jQuery
CSS
- CSS 3
- Reset
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 | |
// Additional images | |
// Note: after line 107 of 'controllers/bookmarklet.php' | |
if ( $req->additional_images ) | |
Post_Meta::update( $id, ADDITIONAL_IMAGES, $req->additional_images ); |
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 | |
/** | |
* Return the body of a notification | |
* | |
* @param { str } notification slug | |
* @param { arr } arguments to pass to the notification | |
* @return { str || bool } email body, or false on error | |
*/ | |
function get_notification_body( $slug = null, $args = array() ) { |
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 | |
/** | |
* | |
* Mustache model | |
*/ | |
/** | |
* Mustache model class |
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 | |
/** | |
* Get the post thumbnail src | |
* | |
* <code> | |
* | |
* // Print post thumbnail | |
* <img src="<?php echo Post_Model::thumb(); ?>" /> |
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 | |
/** | |
* TODO: Write example | |
*/ | |
public static function thumb( $list_id, $size ) { | |
$post_id = Arr::head( List_Model::make( $list_id )->get_items() ); |
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
bind: function( fn, context ) { | |
return function() { | |
return fn.apply( context, arguments ); | |
} | |
} |
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 | |
/** | |
* Function that will handle post insertion with data from | |
* POST request. | |
* | |
* <code> | |
* | |
* // Sample returned response | |
* ( object ) array( 'status'=> 200, 'post_id' => 10 ); |
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 | |
/** | |
* Return the key of the first elements | |
* greater than the one passed. | |
* | |
* <code> | |
* | |
* // Get the index of the first number greater than 15. | |
* // returns "1" |