mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-11 00:26:18 +02:00
18 lines
379 B
JavaScript
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();
|
|
}); |