/**
     * Displays author infos
     * @since  5.3.0
     * @return string
     *
     * @param $name
     * @param $desc
     * @param $gravatar_email
     * @param $url
     * @param $donation
     * @param $twitter
     * @param $googleplus
     * @param array $slugs
     */
    static function get_author_infos($name, $desc, $gravatar_email, $url, $donation, $twitter, $googleplus, $slugs = array())
    {
        $output = '<h3 class="hndle">' . __('The developer', JM_TC_TEXTDOMAIN) . '</h3>';
        $output .= '<img src="' . esc_url('http://www.gravatar.com/avatar/' . md5($gravatar_email)) . '" alt=""/>';
        $output .= esc_html($name);
        $output .= wpautop($desc);
        $output .= '<a class="social button button-secondary dashicons-before dashicons-admin-site" href="' . esc_url($url) . '" target="_blank" title="' . esc_attr__('My website', 'jm-tc') . '"><span class="visually-hidden">' . __('My website', JM_TC_TEXTDOMAIN) . '</span></a>';
        $output .= '<a class="social button button-secondary link-like dashicons-before dashicons-twitter" href="http://twitter.com/intent/user?screen_name=' . Utilities::remove_at($twitter) . '" title="' . esc_attr__('Follow me', JM_TC_TEXTDOMAIN) . '"> <span class="visually-hidden">' . __('Follow me', JM_TC_TEXTDOMAIN) . '</span></a>';
        $output .= '<a class="social button button-secondary dashicons-before dashicons-googleplus" href="' . esc_url($googleplus) . '" target="_blank" title="' . esc_attr__('Add me to your circles', JM_TC_TEXTDOMAIN) . '"> <span class="visually-hidden">' . __('Add me to your circles', JM_TC_TEXTDOMAIN) . '</span></a>';
        $output .= '<h3><span>' . __('Keep the plugin free', JM_TC_TEXTDOMAIN) . '</span></h3>';
        $output .= wpautop(__('Please help if you want to keep this plugin free.', JM_TC_TEXTDOMAIN));
        $output .= '
						<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
						<input type="hidden" name="cmd" value="_s-xclick">
						<input type="hidden" name="hosted_button_id" value="' . esc_attr($donation) . '">
						<input type="image" src="https://www.paypalobjects.com/en_US/FR/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
						<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
						</form>
						';
        $output .= '<h3><span>' . __('Plugin', JM_TC_TEXTDOMAIN) . '</span></h3>';
        $output .= wpautop(__('Maybe you will like this plugin too: ', JM_TC_TEXTDOMAIN) . self::get_plugins_list($slugs));
        echo $output;
    }
Ejemplo n.º 2
0
 /**
  * @return array
  */
 public function site_username()
 {
     $cardSite = '@' . Utilities::remove_at($this->opts['twitterSite']);
     return array('site' => apply_filters('jm_tc_card_site', $cardSite));
 }
Ejemplo n.º 3
0
 /**
  * @param $at
  *
  * @return bool|mixed
  */
 function jm_tc_remove_at($at)
 {
     return \TokenToMe\TwitterCards\Utilities::remove_at($at);
 }