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 | |
// cleand up and formatting 2020-11-24 | |
/** | |
* Get taxonomy data | |
*/ | |
require_once plugin_dir_path( dirname( dirname( __FILE__ ) ) ) . 'includes/class-cf7-2-post-factory.php'; | |
/** | |
* Get post data | |
*/ |
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 | |
/* | |
Localizations: | |
- [Spanish](https://gist.github.com/MatthewEppelsheimer/1498955#gistcomment-3317461) props @chdgp | |
UPDATED: 2020-03-09 |
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
/** | |
* CSS for Open Sans | |
* ================= | |
* @Install | |
* https://google-webfonts-helper.herokuapp.com/fonts/open-sans?subsets=latin | |
* use modern browser option and subsets you need | |
* download fonts and upload to your themes font directory | |
* add the CSS on top of you stylesheet and edit the paths to the current version and relative path of your themes font directory | |
* | |
* @Usage |
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
.content figure.video { | |
position: relative; | |
padding-bottom: 56.25%; /*16:9*/ | |
} | |
.content figure.video > video, | |
.content figure.video > iframe, | |
.content figure.video > object, | |
.content figure.video > embed { | |
position: absolute; |
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 | |
/** | |
* Redirect taxonomy to use custom post type archive template | |
* | |
* @author Jared Atchison | |
* @link http://jaredatchison.com/code/ | |
* @param string $template | |
* @return string | |
*/ | |
function ja_template_redirect( $template ) { |
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($) { | |
$(document).ready(function() { | |
$('body').on('mousedown', 'div[aria-label="Remove"]', function(e) { | |
var editor = tinyMCE.activeEditor, | |
element = editor.selection.getNode(); | |
if(element.tagName !== 'FIGURE') { | |
$(element).parents('figure').remove(); | |
} | |
}); |
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 | |
/** | |
* @description Echoes custom the_excerpt from any post id. the_excerpt is 7 words long as default | |
* | |
* @arguments mixed | |
* @param array $arguments default NULL array of arguments - the below mentioned + $limit | |
* @param int $post_id default NULL the id of the post, if null, the current post is taken | |
* @param string $cut default '...' when nothing setted it will take the current Postcontent from loop and excerpt it | |
*/ |