PHP code example of lampone / bard-style-select

1. Go to this page and download the library: Download lampone/bard-style-select 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/ */

    

lampone / bard-style-select example snippets



return [
    'styles' => [
        [
            'classes' => 'custom-underline',                // written like in html "class-1 class-2"
            'name' => 'Custom Underline',                   // name display in cp
            'cp_style' => 'border-bottom: 1px solid gray;'  // style applied in cp
        ],
    ]
];