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_item() { | |
var tracked_item = $(".list_item").last(); // grabs the last "item" with the class list_item | |
// $(window).outerHeight() is the height of the browser window | |
// tracked_item.offset().top is the vertical amount of pixels from(below) the top of the web page document | |
var scrollPosition = tracked_item.offset().top - $(window).outerHeight(); // figures out how many pixels below the | |
// initial browser window is the tracked item. So if the window is 700px vertically and the item that is being tracked | |
// is 1200px from the very top of the document.. then the user needs to scroll 500 more pixels to reach the | |
// tracked item. |
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
@media screen and (max-width: 768px) { | |
*, *:before, *:after { | |
/*CSS transitions*/ | |
transition-property: none !important; | |
/*CSS transforms*/ | |
transform: none !important; | |
/*CSS animations*/ | |
animation: none !important; | |
} | |
} |
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
@media (max-width:767px){ | |
/* Phones */ | |
} | |
@media (min-width:768px) and (max-width:991px){ | |
/* small tablets */ | |
} | |
@media (min-width:992px) and (max-width:1199px){ | |
/* large tablets and desktop */ | |
} | |
@media (min-width:1200px){ |
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
//const path = require('path'); | |
const ExtractTextPlugin = require('mini-css-extract-plugin'); | |
module.exports = { | |
configureWebpack:{ optimization:{ | |
splitChunks:false | |
}}, | |
chainWebpack: config => { | |
config.output | |
.filename('js/[name].js') |
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
* { | |
outline: 1px solid red !important | |
} |
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 | |
/* | |
Plugin Name: Popular Sub Blog Posts Selector | |
Plugin URI: | |
Description: Popular Sub Blog Posts Selector | |
Version: 1 | |
Author: Jason Rowe | |
Author URI: https://www.idealwebdesign.net | |
License: GPL2 | |
*/ |
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 | |
/* | |
Plugin Name: View only your posts | |
Description:Small plugin so that client-event users can only see their posts. | |
Author: Jason Rowe | |
*/ | |
function posts_for_current_author($query) { | |
global $pagenow; | |
$tempuser = wp_get_current_user(); |
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 | |
/** | |
* A unique identifier is defined to store the options in the database and reference them from the theme. | |
* By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed. | |
* If the identifier changes, it'll appear as if the options have been reset. | |
* | |
*/ | |
function optionsframework_option_name() { |
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
/* | |
|-------------------------------------------------------------------------- | |
| Prepare REST | |
|-------------------------------------------------------------------------- | |
*/ | |
function prepare_rest($data, $post, $request){ | |
$_data = $data->data; | |
$thumbnail_id = get_post_thumbnail_id( $post->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
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), |
NewerOlder