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: FS Data TinyMCE | |
Plugin URI: http://followmedarling.se | |
Description: Plugin för att riktexteditorn TinyMCE ska funka på FS Data | |
Version: 1.0 | |
Author: Jonk | |
Author URI: http://followmedarling.se | |
*/ | |
define('SCRIPT_DEBUG', true); |
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 fmd_child_setup() { | |
add_image_size( 'header', 1170, 400, true ); //(cropped) | |
add_image_size( 'mobileHeader', 750, 250, true ); //(cropped) | |
} | |
add_action( 'after_setup_theme', 'fmd_child_setup' ); | |
?> |
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 fmd_image_sizes() { | |
if ( function_exists( 'add_image_size' ) ) { | |
add_image_size( 'bigger_thumbnail', 300, 300, true ); //will be visible in admin | |
add_image_size( 'carousel', 1300, 380, true ); //will not be visible in admin | |
} | |
} | |
add_action( 'init', 'fmd_image_sizes' ); | |
function fmd_chooseable_image_sizes( $sizes ) { | |
return array_merge( $sizes, 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
$timestamps = get_terms( 'timestamp', array( | |
'hide_empty' => true, | |
'orderby' => 'name', | |
) ); | |
if ( ! empty( $timestamps ) && ! is_wp_error( $timestamps ) ){ | |
echo '<ul>'; | |
foreach ( $timestamps as $timestamp ) { | |
echo '<li>' . $timestamp->name . '</li>'; | |
$args = array('post_type' => 'event', | |
'tax_query' => 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 | |
/* | |
Plugin Name: CUSTOMER import members | |
Plugin URI: http://www.CUSTOMER.com/ | |
Description: Import members from csv-file | |
Version: 1.0 | |
Author: Follow me Darling | |
Author URI: http://followmedarling.se | |
*/ |
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
javascript:yturl=window.location.href;ytarr=yturl.split("?v=");ytqs=ytarr[1];ytqs=ytqs.replace("&","?");ytelem=document.getElementById("movie_player");yttime=Math.floor(ytelem.getCurrentTime());document.getElementsByTagName("video")[0].pause();if(ytqs.indexOf("?")>-1){ytqsstart="&"}else{ytqsstart="?"}window.open("https://www.youtube.com/embed/"+ytqs+ytqsstart+"autoplay=1&start="+yttime,ytqs,"width=400,height=300");void(0); |