Skip to Content

pinckneyhugogroup()

Provide an animated link of the Pinckney Hugo Group logo.

PHP April 27, 2017

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

Request or provide clarification »

Examples

PHP
<?php echo pinckney_hugo_group(); ?>
PHP
<?php echo phg(); ?>

Source File

Located in /libs/Functions.php on line 2174.

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' . $this->get_user_info('user_email', array('prepend' => '&crm-email=')) . '" 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?