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 create_new_user_posts($user_id){ | |
| if (!$user_id>0) | |
| return; | |
| //here we know the user has been created so to create | |
| //3 posts we call wp_insert_post 3 times. | |
| // Create post object | |
| $travel = array( | |
| 'post_title' => 'Travel', | |
| 'post_status' => 'buddydrive_private', | |
| 'post_author' => $user_id, |
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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| ) |
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
| if ($.browser.mobile) { | |
| var scrollPos = 0; | |
| $('#contactModal') | |
| .on('show.bs.modal', function () { | |
| scrollPos = pageYOffset || (document.documentElement.clientHeight ? document.documentElement.scrollTop : document.body.scrollTop); | |
| $('body').css({ | |
| overflow: 'hidden', | |
| width: '100%', | |
| position: 'fixed', |
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
| package main | |
| import( | |
| "os" | |
| "math" | |
| "strconv" | |
| ) | |
| const ( |
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
| &::-webkit-contacts-auto-fill-button{ | |
| position: absolute; | |
| right: 0; | |
| top: 50%; | |
| } |
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
| .logo{ | |
| width: 185px; | |
| height: 65px; | |
| img{ | |
| width: 100%; | |
| } | |
| } |
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
| // Create post | |
| $('#send-post').click( function() { | |
| var title = $('.add-posts input[name="title"]').val(); | |
| var post = $('.add-posts textarea[name="post"]').val(); | |
| console.log(screenReaderText.nonce); | |
| $.ajax({ | |
| type: 'POST', | |
| url: 'http://wordpress.localhost.dev/wp-json/wp/v2/posts', |
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
| /* | |
| .parent{ | |
| display: flex; | |
| flex-wrap: | |
| flex-direction: | |
| justify-content: | |
| align-items: | |
| align-content: | |
| } | |
| */ |
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
| var themename = 'NAME'; | |
| var gulp = require('gulp'), | |
| // Prepare and optimize code etc | |
| autoprefixer = require('autoprefixer'), | |
| browserSync = require('browser-sync').create(), | |
| image = require('gulp-image'), | |
| jshint = require('gulp-jshint'), | |
| postcss = require('gulp-postcss'), | |
| sass = require('gulp-sass'), |
NewerOlder