PHP code example of hypejunction / elgg-snippets

1. Go to this page and download the library: Download hypejunction/elgg-snippets 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/ */

    

hypejunction / elgg-snippets example snippets


 // my-plugin/views/default/somewhere.php
 echo elgg_snippet('page/footer');
 

 // languages/en.php
 return [
    'snippet:page/footer' => 'Page Footer Template',
    'snippet:page/footer:help' => 'Displayed on all pages in the footer area',
 ];