PHP code example of despark / html-template-curator

1. Go to this page and download the library: Download despark/html-template-curator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

despark / html-template-curator example snippets


	'Despark\HtmlTemplateCurator\HtmlTemplateCuratorServiceProvider::class',
	

	{{ Form::select('template', [], null, ['class' => 'form-control js-artice-template']) }}
	

	{{ Form::textarea('content', null, ['id' => 'content']) }}
	

	@@<script>
		$(function () {
			$('.js-artice-template').templateEditor('#content');
			/* In addition you can define the currently selected template with its value in select box as second parameter - usefull when editing already saved page. And custom selector for the container, which will contain the visual presentation of the template as a 3rd parameter
			E.g. $('.js-artice-template').templateEditor('#content', 'book', '#my_selector');*/
		});
	</script>