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: My Add-on | |
Version: 1.0.0 | |
Author: Vova Feldman | |
Author URI: http://freemius.com | |
License: GPL2 | |
*/ | |
// Exit if accessed directly |
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 | |
/** | |
* Override weDocs breadcrumb to add schema.org rich snippets metadata. | |
* | |
* @author Vova Feldman (@svovaf) | |
* | |
* @return void | |
*/ | |
function freemius_wedocs_breadcrumbs() { | |
global $post; |
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
.wedocs-single-wrap | |
{ | |
.wedocs-single-content | |
{ | |
.wedocs-breadcrumb | |
{ | |
list-style: none; | |
margin-bottom: 10px; | |
padding-left: 0; |
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 | |
/** | |
* Customize docs permalinks parsing. | |
* | |
* @author Vova Feldman | |
*/ | |
function freemius_docs_permastruct_rewrite() { | |
if ( post_type_exists( 'docs' ) ) { | |
// Modify root slug to "help" instead of docs. |
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
// Header search | |
.page-header | |
{ | |
.wedocs-search-form | |
{ | |
position: relative; | |
input | |
{ | |
@include placeholder(#999); |
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 | |
/** | |
* Update markdown supported post types. | |
* | |
* @author Vova Feldman | |
*/ | |
function freemius_update_supported_markdown_posts() { | |
if ( ! class_exists( 'WPCom_Markdown' ) ) { | |
// WP Markdown isn't installed. | |
return; |
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 | |
/** | |
* When exporting using WP default export tool, use the | |
* markdown version when exist. | |
* | |
* @author Vova Feldman | |
* | |
* @param string $content | |
* | |
* @return string |
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
$video-max-width: 640px; | |
$video-max-height: 360px; | |
.responsive-container { | |
max-width: $video-max-width; | |
max-height: $video-max-height; | |
overflow: hidden; | |
.responsive-container | |
{ |
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
.wedocs-single-wrap | |
{ | |
.wedocs-single-content | |
{ | |
article | |
{ | |
.entry-content | |
{ | |
blockquote |
OlderNewer