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
<!DOCTYPE html> | |
<html dir="LTR" lang="de"> | |
<head> | |
<script type="text/javascript"> | |
/** Disable tracking if the opt-out cookie exists. **/ | |
if (document.cookie.indexOf('optOutPlease=true') > -1) { | |
/** Opt-Out Cookie set here, no tracking, no Tagmanager **/ | |
}else{ | |
/** Put your Javascript Google Tag Manager code beneath |
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 | |
/** | |
This Script ist for Offline Conversion Tracking in Google Anylytics | |
Author: Viktor Dite | |
Contact: http://mizine.de | |
Version: v0.2 | |
**/ | |
$uaid = 'UA-XXXXXXX-X'; // Your Analytics UAID |
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: Alert Admin on new Post | |
Plugin URI: http://wordpress.stackexchange.com/questions/19040/alert-email-when-any-post-or-page-is-changed | |
Description: Send an email notification to the administrator when a new post is published. | |
Author: TheDeadMedic, transfered by Viktor Dite | |
Version: 1.0 | |
Copyright CC share alike | |
* @param string $new_status |
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 | |
/* array_over_get.php */ | |
$image_arr=array("1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg"); | |
$serial_arr=urlencode(base64_encode(serialize($image_arr))); | |
echo '<img src="process_images.php?arr='.$serial_arr.'" alt="stacked image"/>'; | |
?> | |
<?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
<?php | |
$image_arr=array('path1.png', 'path2.png', 'path3.png'); | |
echo gd_gen_image($image_arr); | |
function gd_gen_image($arr){ | |
$base = imagecreatetruecolor(913, 500); | |
$color = imagecolorallocatealpha($base, 0, 0, 0, 127); | |
imagefill($base, 0, 0, $color); |
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
var base='http://mizine.de'; | |
var url='/image_path_to_test.jpg'; | |
var fallback_url='/image_path_exists_for_fallback_image.jpg'; | |
/** Asynchronous!!! **/ | |
$.get(base+url).done(function(){ | |
$('#any_DOM_id').append('<img id="my_image" src="'+url+'"/>'); | |
}).fail(function(){ | |
$('#any_DOM_id').append('<img id="my_image" src="'+fallback_url+'"/>'); | |
}); |
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
/** normale lange Schreibweise **/ | |
if(omv){ | |
$('select option[value="x"]').remove(); | |
}else{ | |
$('select option[value="x"]').attr('disabled','disabled'); | |
} | |
/** wesentlich kürzere Schreibweise **/ | |
omv ? $('select option[value="x"]').remove() : $('select option[value="x"]').attr('disabled','disabled'); |
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
if(navigator.userAgent.match(/(iPad|iPhone|iPod touch)/i) | |
&& !navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)){ | |
$('select.your_special_class option[disabled]').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 if ( is_singular() || is_front_page() ) { ?> | |
<meta name="twitter:card" content="summary" /> | |
<meta name="twitter:creator" content="@YOUR-TWITTER-NAME" /> | |
<meta name="twitter:url" content="<?php the_permalink() ?>" /> | |
<meta name="twitter:title" content="<?php do_action('wpseo_the_title') ?>" /> | |
<meta name="twitter:description" content="<?php do_action('wpseo_the_desc') ?>" /> | |
<meta property="og:title" content="<?php do_action('wpseo_the_title') ?>"> | |
<meta property="og:type" content="article"> | |
<meta property="og:url" content="<?php the_permalink() ?>"> |
NewerOlder