Sha256: bb3f7a2d63c7badcaa2b97544a439649c22f8cbccf157fc30c07c497a6bcb67d
Contents?: true
Size: 1.01 KB
Versions: 39
Compression:
Stored size: 1.01 KB
Contents
/* Sir Trevor ItemText Block. This block takes an ID, fetches the record from solr, displays the image, title, and any provided text and displays them. */ SirTrevor.Blocks.Oembed = (function(){ return Spotlight.Block.extend({ textable: true, id_key:"url", type: "oembed", title: function() { return i18n.t('blocks:oembed:title'); }, description: function() { return i18n.t('blocks:oembed:description'); }, icon_name: "oembed", show_heading: false, template: [ '<div class="form oembed-text-admin clearfix">', '<div class="widget-header">', '<%= description() %>', '</div>', '<div class="row">', '<div class="form-group col-md-8">', '<label for="<%= formId(id_key) %>"><%= i18n.t("blocks:oembed:url") %></label>', '<input name="<%= id_key %>" class="form-control col-md-6" type="text" id="<%= formId(id_key) %>" />', '</div>', '</div>', '<%= text_area() %>', '</div>' ].join("\n") }); })();
Version data entries
39 entries across 39 versions & 1 rubygems