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
| $ids = $data['id']; | |
| $intIdsArray = array (); | |
| foreach ($ids as $value) { | |
| $intIdsArray [] = intval ($value); | |
| } |
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
| function slideSwiper(index) { | |
| var w = $(window).width(); | |
| var x = 768; | |
| if (w < x) { | |
| swiper.slideTo(index); | |
| } else { | |
| swiper.slideTo(index+2); | |
| } | |
| } |
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
| cell.postImage.af_setImage( | |
| withURL: URL(string: post.haiku)!, | |
| placeholderImage: PostCellView.defaultImage, | |
| imageTransition: .curlUp(0.7) | |
| ) |
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
| cell.postImage.af_setImage( | |
| withURL: URL(string: post.haiku)!, | |
| placeholderImage: PostCellView.defaultImage, | |
| imageTransition: .curlUp(0.7) | |
| ) |
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
| import Foundation | |
| import UIKit | |
| import FirebaseStorage | |
| struct StorageService { | |
| // provide method for uploading images | |
| static func uploadImage(_ image: UIImage, at reference: StorageReference, completion: @escaping (URL?) -> Void) { | |
| guard let imageData = UIImageJPEGRepresentation(image, 0.5) else { | |
| return completion(nil) | |
| } |
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
| import Foundation | |
| import UIKit | |
| import FirebaseStorage | |
| struct StorageService { | |
| // provide method for uploading images | |
| static func uploadImage(_ image: UIImage, at reference: StorageReference, completion: @escaping (URL?) -> Void) { | |
| guard let imageData = UIImageJPEGRepresentation(image, 0.5) else { | |
| return completion(nil) | |
| } |
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
| import Foundation | |
| import UIKit | |
| import FirebaseStorage | |
| struct StorageService { | |
| // provide method for uploading images | |
| static func uploadImage(_ image: UIImage, at reference: StorageReference, completion: @escaping (URL?) -> Void) { | |
| guard let imageData = UIImageJPEGRepresentation(image, 0.5) else { | |
| return completion(nil) | |
| } |
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
| add_action('rest_api_init', 'register_rest_images' ); | |
| function register_rest_images(){ | |
| register_rest_field( array('post'), | |
| 'fimg_url', | |
| 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
| function scroll_fadein(){ | |
| jQuery('.fadein').each(function(){ | |
| var elemPos = jQuery(this).offset().top; | |
| var scroll = jQuery(window).scrollTop(); | |
| var windowHeight = jQuery(window).height(); | |
| if (scroll > elemPos - windowHeight + 60){ | |
| jQuery(this).addClass('scrollin'); | |
| } | |
| }); | |
| } |
OlderNewer