logo

Functions

Icon(string type, int size (optional) );

function icon searches in it's preset icon callers and returns an icon in the form of the correct html tag for the text symbol using font awesome resources. This means that the font icons won't work if your project is offline.

string type expects a value such as "globe", etc. (preset values in the table below)

int size (optional) expects a value between 0 - 3, where 0 is normal size and 3 is huge.


Note that with update to framework version 0.3.37a+ the icon function can use even values that are not in the preset table. Update v0.4.00a set the size parameter as optional and brought the update of Font Awesome to 5.1 .



Usage example

	
	<?php 
		echo "Some kind of example text and icon globe size 0 - ".icon("globe",0);
	?> 
	<!-- ... some html tags ... -->
	<div class="something">
		<?php echo icon("user-c",2);?>
	</div>

Table of preset icons

type size 0 size 1 size 2 size 3
"globe"
"heart-o"
"heart"
"wpforms"
"dropdown"
"_new"
"link"
"home"
"left"
"right"
"up"
"down"
"wclose"
"wclose-o"
"close"
"card-o"
"ban"
"bin"
"bin-o"
"sign-in"
"sign-out"
"warning"
"info"
"edit"
"save"
"file"
"folder"
"car"
"uber"
"bus"
"train"
"ticket"
"plane"
"time_h"
"html5"
"building"
"server"
"battery0"
"battery1"
"battery2"
"battery3"
"battery4"
"fork"
"star"
"star-o"
"star-half"
"star-half-o"
"shield"
"bed"
"food"
"error"
"letter"
"letter-o"
"letter-s"
"phone"
"phone-s"
"mphone"
"headphones"
"fort"
"bill"
"camera"
"camera2"
"music"
"video"
"briefcase"
"suitcase"
"medkit"
"gamepad"
"magic"
"like"
"dislike"
"DnD"
"windows"
"android"
"linux"
"apple"
"ms"
"scart"
"scart-p"
"scart-d"
"sbag"
"sbasket"
"stopwatch"
"key"
"keyboard"
"mouse-p"
"stamp"
"fb"
"fb-s"
"twitter"
"twitter-s"
"google"
"google-s"
"patreon"
"steam"
"steam-sy"
"steam-s"
"sc"
"share"
"rot-loading"
"spin-loading"
"spin-loading1"
"spin-loading2"
"loading"
"config"
"s-up"
"s-down"
"user"
"users"
"agent"
"user-c"
"users-cog"
"user-times"
"user-tie"
"user-tag"
"user-edit"
"user-cog"
"user-check"
"user-clock"
"user-slash"
"user-plus"
"user-minus"
"user-ninja"
"user-md"
"user-shield"
"user-lock"
"user-friends"
"female"
"male"