Usage
PHP
nebula()->pinckneyhugogroup($anim, $white)
Parameters
$anim
(Optional) (Boolean) Whether the link should animate on hover
Default: false
$white
(Optional) (Boolean) Use a white color rather than brand colors
Default: false
Examples
PHP
<?php echo pinckney_hugo_group(); ?>
PHP
<?php echo phg(); ?>
Source File
Located in /libs/Functions.php on line 2214.
No Hooks
This function does not have any filters or actions available. Request one?
PHP
public function pinckneyhugogroup($options=array()){ $defaults = array( 'animate' => false, 'white' => false, 'linked' => true, ); $data = array_merge($defaults, $options); $anim = ( $data['animate'] )? 'anim' : ''; $white = ( $data['white'] )? 'white' : ''; $html = ( $data['linked'] )? '<a ' : '<span '; $html .= 'class="phg ' . $anim . ' ' . $white . '"'; if ( $data['linked'] ){ $html .= ' href="http://www.pinckneyhugo.com?utm_campaign=nebula&utm_medium=nebula&utm_source=' . urlencode(get_bloginfo('name')) . '&utm_content=phg+link+function" target="_blank" rel="noopener"'; } $html .= '><span class="pinckney">Pinckney</span><span class="hugo">Hugo</span><span class="group">' . __('Group', 'nebula') . '</span>'; if ( $data['linked'] ){ $html .= '</a>'; } else { $html .= '</span>'; } return $html; }
Override
This function can not be short-circuited with an override filter. Request one?