PHP code example of hypejunction / elgg_tooltip

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



$tooltip = elgg_view('components/tooltip', array(
	'text' => elgg_view('output/img', array(
		'src' => '/some/image.jpg',
	)),
	'content' => elgg_view_entity($entity, array(
		'full_view' => false,
	)),
));


echo elgg_view('output/url', array(
	'text' => 'Click me',
	'href' => '/take/me/away',
	'class' => 'elgg-tooltip',
	'title' => 'This will show in a tooltip',
));