Skip to content

Instantly share code, notes, and snippets.

View andresgallo's full-sized avatar

Andres Gallo andresgallo

View GitHub Profile
<bsp-jw-player data-video-player class="JWVideoPlayer"
data-player="{{playerId}}"
data-media-id="{{mediaId}}"
data-video-title="{{videoTitle}}"
data-video-uuid="{{videoUuid}}"
data-video-file-type="{{videoFileType}}"
data-video-pauseads="{{pauseads}}"
{{#with orientation}} data-orientation="{{this}}" {{/with}}
{{#if poster}}{{#resize poster (not orientation otherwise="videoPosterPortrait" then="videoPoster")}} poster="{{src}}" {{/resize}}{{/if}}
{{#if autoplay}}autoplay{{/if}}
@andresgallo
andresgallo / regexs
Last active October 6, 2023 04:01
Format
\(format([^()"]*"[^()"]*[^()"]*"*)\)
@andresgallo
andresgallo / file
Last active September 27, 2023 13:36
{{#each (and tagNavigation tagNavigation.[0] then=tagNavigation otherwise=sectionNavigation)}}
<div class="SectionPage-sectionNavigation" data-align-{{#with ../sectionNavAlign}}{{this}}{{else}}center{{/with}} {{#if ../sectionNavInsidePageHeading}}data-inside-heading{{/if}} style="
--color-section-nav-background: {{#with ../sectionNavBgColor}}{{this}}{{else}}{{#if ../sectionNavInsidePageHeading}}transparent{{else}}#000000{{/if}}{{/with}};
--color-section-nav-text: {{#with ../sectionNavTextColor}}{{this}}{{else}}var(--color-primary-text-inverse){{/with}};
--color-section-nav-text-hover: {{#with ../sectionNavTextHoverColor}}{{this}}{{else}}var(--color-primary-text-inverse){{/with}};">
{{include "/navigation/SectionNavigation.hbs" this}}
</div>
{{/each}}
{{~#set
imageSizePrefix=(
not (eq enhancementAlignmentImageNoLeft "align-fullWidth") otherwise="large" then=(
not (eq enhancementAlignmentImageNoLeft "align-right") otherwise="small" then="medium"
)
)
imageSizeSuffix=(
not (eq imageOrientationDefLandscape "portrait") otherwise="4x6" then="nocrop"
)
~}}
var items = [
['sovrn-rail', 640, 300],
['sovrn-rail-sticky', 640, 0],
['sovrn-rail-home', 640, 300],
['sovrn-rail-sticky', 640, 0],
['sovrn-rail-home-sticky', 640, 0],
['sovrn-rail-hub', 640, 300],
['sovrn-rail-hub-large', 640, 300],
['sovrn-rail-hub-sticky', 640, 0],
['sovrn-rail-story', 640, 0],
((elAds, elLists) => {
elLists.forEach(elList => {
var elItems = elList.querySelectorAll('.PageList-items-item')
elItems.forEach((elItem, index) => {
elItem.insertAdjacentHTML('afterBegin', `<h1 style="opacity: 0.4;position: absolute;left: 0;">${index+1}</h1>`)
})
})
elAds.forEach(ad => {
ad.style.height = "100px";
ad.style.width = "100%"
# Common Theme Compatibility Test Failures
If you're running the Theme Compatibility Test for the first time, the number of errors may seem overwhelming. That's
normal. The entire theme is checked for compatibility even if errors are detected, and one incompatibility usually
produces multiple error messages. "Conflicting Parents" and "Cyclic Ancestry" are the exception to this rule -- they do
short circuit the rest of the compatibility test. So, resolve those first, then start at the top of this document (those
are the easiest) and work your way down.
Tip: When working through a long list of errors, quickly rerun _only_ ThemeCompatibilityTest like so:
{{#if items}}
<bsp-listcarousel class="PageListCarouselA BlogCarousel" data-module{{include "includes/PageList-attributes.hbs" this}}>
{{include "includes/KW-PageListCarousel-header.hbs" this}}
<div class="PageList-items">
{{#each items}}
<div class="PageList-items-item BlogItem">
{{#eq this._template "/page/promo/PagePromo.hbs"}}
{{#set
lazyLoad=false
imageSize=(eq ../listColumns23456 "2" then="large-16x9" otherwise=(get "imageSize"))
{
"_exampleOnly" : true,
"_template" : "/page/Page.hbs",
"_wrapper" : false,
"above" : [ ],
"actions" : [ {
"_template" : "/action-bar/ActionBar.hbs",
"items" : [ {
"_template" : "/link/CopyLink.hbs",
"url" : "https://origin.qa1-news.lower.ap.brightspot.cloud/"
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: BFD3 [7771]
Path: /Applications/BFD3.app/Contents/MacOS/BFD3
Identifier: com.bfddrums.BFD3.standalone
Version: 3.4.4 (3.4.4.31)
Code Type: X86-64 (Native)
Parent Process: launchd [1]