Changes Envato forum to display avatars and user badges using userscript.
- Avatars on Forum & Topic View 80x80
- User Badges on Topic View
- QuickLinks (mouseover avatar) Topic View
- Username Clickable to Marketplace Portfolio
<?php | |
/** | |
* Class and Function List: | |
* Function list: | |
* - __construct() | |
* - render() | |
* - enqueue() | |
* - makeGoogleWebfontLink() | |
* - makeGoogleWebfontString() |
<?php | |
// Exit if accessed directly | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
if ( ! class_exists( 'ReduxFramework_spacing' ) ) { | |
class ReduxFramework_spacing { |
/* Post URLs to IDs function, supports custom post types - borrowed and modified from url_to_postid() in wp-includes/rewrite.php */ | |
// Taken from http://betterwp.net/wordpress-tips/url_to_postid-for-custom-post-types/ | |
// Customized to work with non-rewrite URLs | |
// Copyright Dovy Paukstys (@dovy) of Redux Framework | |
function url_to_postid( $url ) { | |
global $wp_rewrite; | |
if ( ! empty( $this->post_id ) ) { | |
return $this->post_id; | |
} |
<?php | |
/************************************************************************ | |
* Example Nested For VC | |
* vc_map() stuff should only be included when VC is enabled. | |
* | |
* This is just for a copy/paste test purpose. | |
*************************************************************************/ |