'
. ''
.'
";
// Put everything in a container for the flip effect
if ( stripos( $atts['hover_effect'], 'flip-' ) !== false ) {
$ret .= "
";
}
$ret .= "
";
$ret .= "
";
if ( stripos( $atts['hover_effect'], 'swipe-' ) !== false ) {
$ret .= "
";
}
$ret .= "
";
// Add a new element for the flip effect
if ( stripos( $atts['hover_effect'], 'flip-' ) !== false ) {
$ret .= "
";
$ret .= "
";
}
$ret .= "
";
self::$iconId++;
return $ret;
}
private function hex2rgb($hex) {
$hex = str_replace("#", "", $hex);
if(strlen($hex) == 3) {
$r = hexdec(substr($hex,0,1).substr($hex,0,1));
$g = hexdec(substr($hex,1,1).substr($hex,1,1));
$b = hexdec(substr($hex,2,1).substr($hex,2,1));
} else {
$r = hexdec(substr($hex,0,2));
$g = hexdec(substr($hex,2,2));
$b = hexdec(substr($hex,4,2));
}
$rgb = array($r, $g, $b);
return $rgb; // returns an array with the rgb values
}
/**
* Adds links
*
* @access public
* @param array $plugin_meta The current array of links
* @param string $plugin_file The plugin file
* @return array The current array of links together with our additions
* @since 1.0
**/
public function pluginLinks( $plugin_meta, $plugin_file ) {
if ( $plugin_file == plugin_basename( __FILE__ ) ) {
$plugin_meta[] = sprintf( "