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 App\Setting; | |
use Illuminate\Contracts\Support\Arrayable; | |
class SettingRequest implements Arrayable | |
{ | |
protected $code; | |
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
protected function map(SoundGroupModel $soundGroupModel) | |
{ | |
$soundGroupArray = $soundGroupModel->toArray(); | |
$soundGroup = $this->mapper->map($soundGroupArray); | |
$customFiles = $soundGroup->getCustomFiles(); | |
foreach ($soundGroupModel->files as $soundGroupFileModel) { | |
// Needed variables | |
$name = $soundGroupFileModel->name; |
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 Project\Planets; | |
class Planet | |
{ | |
protected $name; | |
/** | |
* @var Resource[] |
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 | |
// call this method inside the method that shows the metabox contents | |
function prefix_upload_inputs() { | |
global $post; | |
wp_enqueue_media(); | |
$scripts = " | |
<script type='text/javascript'> | |
jQuery(document).ready(function($){ |
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 breadcrumbs() { | |
?> | |
<?php if ( ! is_home() ) : ?> | |
<?php global $post; ?> | |
<a href="<?php bloginfo( 'wpurl' ); ?>">Home</a> » | |
<?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 // where 15 is the word limit ?> | |
<?php echo apply_filters( 'the_content', wp_trim_words( get_the_content(), 15, '…' ) ); ?> |
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
pronamicMedia = function(elem, options) { | |
this.elem = elem; | |
this.$elem = jQuery(elem); | |
this.options = options; | |
}; | |
pronamicMedia.prototype = { | |
_frame:undefined |
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 | |
add_action( 'pre_get_posts', 'kwpn_advert_positions_pre_get_posts', 20 ); | |
function kwpn_advert_positions_pre_get_posts( WP_Query $query ) { | |
// Only continue if the query chose to have adverts | |
if ( ! is_array( $query->get( 'kwpn_insert_adverts' ) ) ) | |
return; | |
// Get the chosen advert positions |
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 | |
// Just replace pronamic with an unique identifier. | |
// and replace video with a slugname for your function of the box. | |
add_action( 'add_meta_boxes', 'wp_pronamic_add_meta_boxes' ); | |
add_action( 'save_post', 'wp_pronamic_video_meta_box_save', 10, 2 ); | |
function wp_pronamic_add_meta_boxes() { | |
add_meta_box( 'pronamic_video_meta_box', __( 'Review Rating', 'wp_vision' ), 'wp_pronamic_video_meta_box_show', 'pronamic', 'normal' ); | |
} | |
function wp_pronamic_video_meta_box_show( WP_Post $post ) { |
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
# | |
# | |
mtllib Millennium_Falcon.mtl | |
o MillenniumFalconBottom | |
v -36.893936 72.863998 357.389221 | |
v -36.816784 72.863998 429.544434 | |
v -46.681076 71.182709 436.585602 | |
v -47.134781 71.182709 344.156738 | |
v -46.511078 70.117912 264.955475 | |
v -107.793953 70.942482 274.368286 |
OlderNewer