PHP code example of nlybe / amap_coverphoto

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

    

nlybe / amap_coverphoto example snippets


if ($entity->covertime) {                    
    echo elgg_view('output/img', array(
        'src' => amap_cp_getCoverIconUrl($entity, 'large'),
        'alt' => elgg_echo('cover'),
    ));
}