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
$( "a" ).has( "img" ).mouseenter(function(){ | |
$(this).css("color", "#870036"); | |
}); | |
$( "a" ).has( "img" ).mouseleave(function(){ | |
$(this).css("color", "black"); | |
}); |
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
// check url | |
var url = window.location.pathname; | |
var output = url.indexOf('/events')!=-1; | |
//alert (output[0]); | |
if (output) { | |
(function eventsData() { |
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
// add img responsive class | |
$.each($('.news img'), function (index, item) { | |
if ($(item).width() >= 600) { | |
$(item).addClass("img-responsive"); | |
} | |
}); |
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
// cinfiguration = file abstration layer | |
// field = filed name in configuration | |
<f:for each="{dce:fal(field:'jpg_data', contentObject:contentObject)}" as="fileReference"> | |
<video poster="{f:uri.image(src:fileReference.uid,treatIdAsReference:1)}" autoplay="autoplay" preload="preload"> | |
</f:for> | |
<f:for each="{dce:fal(field:'mp4_data', contentObject:contentObject)}" as="fileReference"> | |
<source type="video/mp4" src="{f:uri.image(src:fileReference.uid,treatIdAsReference:1)}" /> | |
</f:for> | |
<f:for each="{dce:fal(field:'webm_data', contentObject:contentObject)}" as="fileReference"> |
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
body { | |
background-image: url(../img/bg.jpg); | |
background-position: top center; | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
background-size: 100% auto; | |
background-color: $whiteColor; | |
} |
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
* { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} |
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
// RTE | |
<f:format.html>{field.zitatText}</f:format.html> | |
// Single line text | |
<p>{field.zitatAutor}</p> | |
// Image (field:'variableName') | |
<f:for each="{dce:fal(field:'sliderImage', contentObject:contentObject)}" as="fileReference"> | |
<f:image class="img-responsive" src="{fileReference.uid}" alt="" treatIdAsReference="1" /> | |
</f:for> |
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
$("img").attr({ | |
"width": "100%", | |
"height": "auto" | |
}); |
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
/* insert this in wp-config.php */ | |
define('FS_METHOD','direct'); |
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
Put this in your functions.php | |
function catch_that_image() { | |
global $post, $posts; | |
$first_img = ''; | |
ob_start(); | |
ob_end_clean(); | |
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); | |
$first_img = $matches [1] [0]; |