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 ($) { | |
"use strict"; | |
$(function() { | |
$('.more .more-trigger').on('click', function(e) { | |
var $this = $(this), | |
text = $this.hasClass('open') ? 'more' : 'less'; | |
$this | |
.text( text ) |
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 mux_iframe($atts, $content = null) { | |
extract( shortcode_atts( | |
array( | |
'width' => '558', | |
'height' => '250', | |
'overflow' => 'hidden', | |
'scrolling' => 'no', | |
'frameborder' => '0' | |
), $atts) | |
); |
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
jQuery(document).ready(function ($) { | |
var mux_repeater_configuation = { | |
init: function() { | |
this.add(); | |
this.remove(); | |
}, | |
add: function() { | |
$('body').on('click', '.mux_ps_add_repeatable', function(e) { | |
e.preventDefault(); |
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 | |
require_once('wp-blog-header.php'); | |
set_time_limit(0); | |
$categories = get_terms('category'); | |
foreach ($categories as $category) { | |
$default_forum = array( |
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 | |
function mux_header_lang() { | |
global $post; | |
if ( is_page() ) { | |
$hreflang = get_post_meta( $post->ID, 'hreflang', true ); | |
if ( $hreflang ) { | |
$ref = get_post_meta( $post->ID, 'ref', true ); | |
?> | |
<link rel="alternate" hreflang="<?php echo $hreflang ?>" href="<?php echo $ref ?>" /> | |
<?php |
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
<script type="text/javascript"> | |
// ***** | |
// SET DEFAULT AUTHOR ID | |
// ***** | |
var vwoAuthor = '1324'; | |
var _vwo_code, account_id, | |
ownDomain = location.hostname, | |
referrerDomain = document.referrer.split('/')[2]; | |
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($) { | |
$.fn.countdown = function(options, callback) { | |
//custom 'this' selector | |
thisEl = $(this); | |
//array of custom settings | |
var settings = { | |
'date': null, | |
'format': null |
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
<script> | |
function reFresh() { | |
location.reload(true) | |
} | |
window.setInterval("reFresh()",10000); | |
</script> |
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: Primux Mailchimp | |
Plugin URI: http://primux.dk/ | |
Description: Add new users to a Mailchimp list | |
Version: 1.0 | |
Author: Primux Media | |
Author URI: http://primux.dk/ | |
*/ |
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 | |
/** | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
*/ |