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 | |
/** | |
* Plugin Name: WP Users Media | |
* Plugin URI: http://www.wknet.com/wp-users-media/ | |
* Description: WP Users Media is a WordPress plugin that displays only the current users media files and attachments in WP Admin. | |
* Version: 1.0.3 | |
* Author: Damir Calusic | |
* Author URI: http://www.damircalusic.com/ | |
* License: GPLv2 | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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
/** | |
* Function for responsive featured images. | |
* Create a <picture> element and populate it with appropriate image sizes for different screen widths. | |
* Works in place of the_post_thumbnail(); | |
*/ | |
function simone_the_responsive_thumbnail($post_id) { | |
// Check to see if there is a transient available. If there is, use it. | |
if ( false === ( $thumb_data = get_transient( 'featured_image_' . $post_id ) ) ) { | |
simone_set_image_transient($post_id); |
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
html { | |
font-size: 17px; | |
} | |
@base: 1rem; | |
.nav-toggle { | |
display: block; | |
position: relative; |
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
/* | |
* Tiny mobile detection script, courtesy of | |
* https://github.com/markdalgleish/stellar.js/issues/37 | |
*/ | |
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); |
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
.abs-pos-img-div { | |
position: absolute; | |
top:0; | |
left:0; | |
width:100%; | |
height:100%; | |
background-size:cover; | |
background-position:center center; | |
z-index: 0; | |
.translate3d(0, 0, 0); |
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
/* Change the 'Only # left in stock' message on the WooCommerce product page to | |
* simply show 'Low Stock'. | |
* Add to your theme's functions.php file | |
*/ | |
function custom_stock_totals($availability_html, $availability_text, $product) { | |
if (substr($availability_text,0, 4)=="Only") { | |
$availability_text = "Low Stock"; | |
} | |
$availability_html = '<p class="stock ' . esc_attr( $availability['class'] ) . '">' . esc_html( $availability_text ) . '</p>'; | |
return $availability_html; |
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 | |
/** | |
* Sends user to the start page on first activation, as well as each time the | |
* plugin is upgraded to a new version | |
* | |
* @access public | |
* @since 1.1 | |
* @return void | |
*/ |
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
background: linear-gradient(270deg, #5b318c, #000000); | |
background-size: 400% 400%; | |
-webkit-animation: AnimationName 10s ease infinite; | |
-moz-animation: AnimationName 10s ease infinite; | |
-o-animation: AnimationName 10s ease infinite; | |
animation: AnimationName 10s ease infinite; | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} |
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 | |
/* | |
Plugin Name: capital_P_dangit performance test | |
Plugin URI: | |
Description: Use shortcode on any page: [capital_P_dangit_performance count="10000"] | |
Version: 1.0 | |
Author: khromov | |
Author URI: http://snippets.khromov.se | |
License: GPL2 | |
*/ |
OlderNewer