mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 02:10:37 +02:00
Blocks Plugin: view embed code feature added.
This commit is contained in:
5
plugins/box/blocks/js/blocks.js
Normal file
5
plugins/box/blocks/js/blocks.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function embedCodes(name) {
|
||||
$('#shortcode').html('{block get="'+name+'"}');
|
||||
$('#phpcode').html('<?php echo Block::get("'+name+'"); ?>');
|
||||
$('#embedCodes').modal();
|
||||
}
|
Reference in New Issue
Block a user