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 featured image to rss feed | |
add_filter( 'the_content', 'ld_featured_image_in_feed' ); | |
function ld_featured_image_in_feed( $content ) { | |
global $post; | |
if( is_feed() ) { | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$feat_image_output = get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'height: auto;margin-bottom:2em;max-width: 600px !important;padding-top: 0.75em;width: 100% !important;' ) ); | |
$content = $feat_image_output . $content; | |
} | |
} |
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
// Variante 1 | |
{{@("@").translate('proceed_to_checkout',[])}} | |
// Variante 2 | |
{{@@.translate('proceed_to_checkout',[])}} | |
// Variante 3 | |
//While it is only a small step less ugly workaround, you can simply @Html.Raw the full attribute name and value. | |
<a @Html.Raw("title=\"@@.translate('proceed_to_checkout',[])\"")>Test</a> |
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
$('.inputResetIcon').mouseleave(function () { | |
$(this).find('i').css('display', 'none'); | |
}); | |
// use mouseleave instead of mouseout |
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
outerloop: | |
for (i = 0; i < a.length; i++) { | |
for (j = 0; j < b.length; j++) { | |
console.log(a[i] + ' compare with ' + b[j]); | |
if (a[i] === b[j]) { | |
continue outerloop; | |
} | |
} | |
console.log('ERROR no match'); | |
break outerloop; |
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
=iif(FIRST(Fields!IsCompleted.Value, "Overview") = 0,"SSRS_Report_Watermark", "") | |
//SSRS_Report_Watermark = load image |
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
var diff = $(a).not(b).get(); | |
// https://stackoverflow.com/questions/41801729/finding-missing-element-in-two-array-for-javascript |
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
-moz-appearance: none; | |
-webkit-appearance: none; | |
appearance: none; |
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
<script>document.write((new Date()).getFullYear());</script> |
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 to lib file (example ab-design.at) | |
lib.currentPageId = TEXT | |
lib.currentPageId.data = TSFE:id | |
<f:if condition="{f:cObject(typoscriptObjectPath:'lib.currentPageId')} == 55"> | |
<f:then> | |
// something | |
</f:then> <f:else> | |
// something |
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
Logger.Error(this.GetType(), ex.Message, ex); |