Skip to content

Instantly share code, notes, and snippets.

@skladany
Last active February 25, 2020 16:52
Show Gist options
  • Save skladany/02276bd8f3e1e0cd397226efaef7f8a7 to your computer and use it in GitHub Desktop.
Save skladany/02276bd8f3e1e0cd397226efaef7f8a7 to your computer and use it in GitHub Desktop.
Single-Post Card Settings
Single-Post Card Settings
Disable Feature
click -> Feature Disabled
New-UI On
click -> New-UI Off
New-UI Off
click -> New-UI On
Feature Disabled
function render(model){
if (model.active_states[0].image_url) {
return $("img",
{src: model.active_states[0].image_url, style: {height: "100%"}});
} else {
return "Featured Disabled."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment