1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-11 00:26:18 +02:00
Files
php-monstra/plugins/box/blocks/js/blocks.js
2012-11-12 22:26:08 +02:00

18 lines
379 B
JavaScript

if (typeof $.monstra == 'undefined') $.monstra = {};
$.monstra.blocks = {
init: function() { },
showEmbedCodes: function(name) {
$('#shortcode').html('{block get="'+name+'"}');
$('#phpcode').html('<?php echo Block::get("'+name+'"); ?>');
$('#embedCodes').modal();
}
};
$(document).ready(function(){
$.monstra.blocks.init();
});