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
$scope.onFileSelect = function($files) { | |
// https://github.com/danialfarid/angular-file-upload | |
var file = $files[0]; | |
$scope.upload = $upload.upload({ | |
url: apiEndpoint + '/api/file/upload', | |
// method: 'POST' or 'PUT', | |
// headers: {'header-key': 'header-value'}, | |
// withCredentials: true, | |
//data: {myObj: $scope.myModelObj}, | |
file: file, // or list of files: $files for html5 only |
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 | |
$images = get_field('gallery'); | |
if( $images ): ?> | |
<div id="slider" class="flexslider"> | |
<ul class="slides"> | |
<?php foreach( $images as $image ): ?> | |
<li> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<p><?php echo $image['caption']; ?></p> |
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
$categories = get_the_terms( get_the_id() , 'service' ); | |
$separator = '<br />'; | |
$output = ''; | |
if($categories){ | |
foreach($categories as $category) { | |
//$output .= '<a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator; | |
$output .= $category->name . $separator; | |
} | |
echo trim($output, $separator); | |
} |
NewerOlder