Exemple #1
0
/**
 * Get the image preview of an icon library
 *
 * @param string	the name of icon library to get preview from.
 *
 * @return string	HTML of the image.
*/
function deyan_get_iconlib_preview($iconlib) {
	      
	       $plugin = deyan_get_iconlib_plugin($iconlib);
	      $img = "<img src=\"" . elgg_get_site_url() . "mod/$plugin/views/default/icon_libraries/$iconlib/preview.png\">";
	      
	      return $img;
	      
}
Exemple #2
0
<?php
/**
 * @package Deyan
 * @author Angel Gabriel
 * @web http://angelgabriel.tk
 * @mail angel.wrt@gmail.com
 *
 * @view deyan/css/admin
 * This file contains the admin style.
 * 
 **/ 

// Require all icon library css files for the admin section.
$iconlib = deyan_get_iconlib();

$vars['sprites'] = elgg_get_site_url() . 'mod/' . deyan_get_iconlib_plugin($iconlib) . '/views/default/icon_libraries/' . $iconlib . '/sprites/';

$iconcss = deyan_get_iconlib_css($iconlib);

foreach($iconcss as $css) {
echo elgg_view("icon_libraries/$iconlib/css/$css", $vars);
}

?> 

/* ***************************************
	ICONS LIBRARY (icons menu)
*****************************************/
.elgg-menu > li > a {
	display: block
}