[wordpress插件] Author Spotlight (Widget)作者聚焦(小部件)

wordpress 插件 文章 2020-02-23 18:40 496 0 全屏看文

AI助手支持GPT4.0

评分
90
描述

Author Spotlight widget displays the profile of the author(s) with Social links (example: Twitter, Facebook) and his/her profile picture or Gravatar on any post or page that has an Author.

Author Spotlight小部件在具有作者的任何帖子或页面上显示带有社交链接的作者个人资料(例如Twitter,Facebook)以及他/她的个人资料图片或Gravatar。

The widget automatically detects the current author(s) of the displayed post or page;

小部件会自动检测显示的帖子或页面的当前作者;

just drag and drop the widget on your sidebar and you are done.

只需将小部件拖放到侧边栏即可。

To display a custom photograph with the Author's Profile you may install the User Photo<

要显示具有作者个人资料的自定义照片,您可以安装用户照片<

/a>.

/ a>。

In absence of this plugin the widget will fall-back to displaying the Gravatar associated with the user.

在没有此插件的情况下,小部件将回退到显示与用户关联的Gravatar。

If your posts have multiple authors you may use the Co-Authors Plus<

如果您的帖子有多位作者,则可以使用Co-Authors Plus <

/a>, the Author Spotlight will then display all the author profiles one below another for such post/page.

/ a>,然后,作者聚光灯将在该帖子/页面的下方显示所有作者个人资料。

Note that installing the User Photo or Co-Author plugin is purely optional, this widget will work fine without them as well.

请注意,安装User Photo或Co-Author插件纯粹是可选的,如果没有它们,此小部件也可以正常工作。

If you face any issues with the plugin or have any suggestion/feature requests please do so

如果您遇到该插件的任何问题或有任何建议/功能请求,请

at the support forum.

在支持论坛上。

安装步骤

    1. Download and unzip author-profile.zip.

    2. 下载并解压缩 author-profile.zip

      Then upload the folder containing author-profile.php to the /wp-content/plugins/ directory.

    3. 然后将包含 author-profile.php 的文件夹上传到 / wp-content / plugins / 目录。

    4. Alternatively, you may use the Automatic installation feature of WordPress.
    5. 或者,您可以使用WordPress的自动安装功能。

    6. Activate the plugin through the Plugins menu in WordPress.

    7. 通过WordPress中的 Plugins 菜单激活插件。

      For details refer this Codex page.

    8. 有关详细信息,请请参阅此法典页面。

    9. To display Author Spotlight, browse to Appearance > Widgets and drag-and-drop the ‘Author Spotlight” widget to desired sidebar.

    10. 要显示 Author Spotlight ,请浏览到 Appearance>窗口小部件,然后将“ Author Spotlight”窗口小部件拖放到所需的侧边栏中。

      You may configure the widget according to your needs.

      您可以根据需要配置窗口小部件。

      Save your changes and you are done.

    11. 保存更改,您就完成了。

    12. To enable the default look & feel of your widget you may copy/paste the suggested CSS at the end of your theme CSS file (usually style.css).

    13. 要启用窗口小部件的默认外观,您可以在主题CSS文件(通常为 style.css )的末尾复制/粘贴建议的CSS。

      Please refer the answer to the FAQ section for the CSS code.<

      对于CSS代码,请参考常见问题解答部分。

      /li>

      / li>

    14. To add the ability to add Social URLs in the User profile, please add the following add to your Theme functions file:

      要添加在用户个人资料中添加社交URL的功能,请在主题功能文件中添加以下内容:

      /Add Social URLs/

      / 添加社交网址 /

      function author_spotlight_contactmethods( $contactmethods ) {
          

      函数author_spotlight_contactmethods($ contactmethods){
          

      if ( !isset( $contactmethods[‘twitter’] ) )
              

      if(!isset($ contactmethods ['twitter']))
              

      $contactmethods[‘twitter’] = ‘Twitter’;
          

      $ contactmethods [‘twitter’] =‘Twitter’;
          

      if ( !isset( $contactmethods[‘facebook’] ) )
              

      if(!isset($ contactmethods [‘facebook’]))
              

      $contactmethods[‘facebook’] = ‘Facebook’;
          

      $ contactmethods [‘facebook’] =‘Facebook’;
          

      if ( !isset( $contactmethods[‘linkedin’] ) )
              

      if(!isset($ contactmethods [’linkedin']))
              

      $contactmethods[‘linkedin’] = ‘LinkedIn’;
          

      $ contactmethods [‘linkedin’] =‘LinkedIn’;
          

      if ( !isset( $contactmethods[‘flickr’] ) )
              

      if(!isset($ contactmethods ['flickr']))
              

      $contactmethods[‘flickr’] = ‘Flickr’;
          

      $ contactmethods [‘flickr’] =‘Flickr’;
          

      if ( !isset( $contactmethods[‘myspace’] ) )
              

      if(!isset($ contactmethods ['myspace']))
              

      $contactmethods[‘myspace’] = ‘MySpace’;
          

      $ contactmethods [‘myspace’] =‘MySpace’;
          

      if ( !isset( $contactmethods[‘friendfeed’] ) )
              

      if(!isset($ contactmethods ['friendfeed']))
              

      $contactmethods[‘friendfeed’] = ‘Friendfeed’;
          

      $ contactmethods [‘friendfeed’] =‘Friendfeed’;
          

      if ( !isset( $contactmethods[‘delicious’] ) )
              

      if(!isset($ contactmethods ['delicious']))
              

      $contactmethods[‘delicious’] = ‘Delicious’;
          

      $ contactmethods [‘delicious’] =‘Delicious’;
          

      if ( !isset( $contactmethods[‘digg’] ) )
              

      if(!isset($ contactmethods ['digg']))
              

      $contactmethods[‘digg’] = ‘Digg’;
          

      $ contactmethods ['digg'] ='Digg';
          

      if ( !isset( $contactmethods[‘feed’] ) )
              

      if(!isset($ contactmethods ['feed']))
              

      $contactmethods[‘feed’] = ‘XML Feed’;
          

      $ contactmethods ['feed'] ='XML Feed';
          

      if ( !isset( $contactmethods[‘tumblr’] ) )
              

      if(!isset($ contactmethods ['tumblr']))
              

      $contactmethods[‘tumblr’] = ‘Tumblr’;
          

      $ contactmethods [‘tumblr’] =‘Tumblr’;
          

      if ( !isset( $contactmethods[‘youtube’] ) )
              

      if(!isset($ contactmethods [‘youtube’]))
              

      $contactmethods[‘youtube’] = ‘YouTube’;
          

      $ contactmethods [‘youtube’] =‘YouTube’;
          

      if ( !isset( $contactmethods[‘blogger’] ) )
              

      if(!isset($ contactmethods ['blogger']))
              

      $contactmethods[‘blogger’] = ‘Blogger’;
          

      $ contactmethods [‘blogger’] =‘Blogger’;
          

      if ( !isset( $contactmethods[‘googleplus’] ) )
              

      if(!isset($ contactmethods ['googleplus']))
              

      $contactmethods[‘googleplus’] = ‘Google+’;
          

      $ contactmethods [‘googleplus’] =‘Google+’;
          

      if ( !isset( $contactmethods[‘instagram’] ) )
              

      if(!isset($ contactmethods [‘instagram’]))
              

      $contactmethods[‘instagram’] = ‘Instagram’;
          

      $ contactmethods [‘instagram’] =‘Instagram’;
          

      if ( !isset( $contactmethods[‘slideshare’] ) )
              

      if(!isset($ contactmethods ['slideshare']))
              

      $contactmethods[‘slideshare’] = ‘Slideshare’;
          

      $ contactmethods ['slideshare'] ='Slideshare';
          

      if ( !isset( $contactmethods[‘stackoverflow’] ) )
              

      if(!isset($ contactmethods ['stackoverflow']))
              

      $contactmethods[‘stackoverflow’] = ‘Stackoverflow’;
          

      $ contactmethods [‘stackoverflow’] =‘Stackoverflow’;
          

      if ( !isset( $contactmethods[‘posterous’] ) )
              

      if(!isset($ contactmethods ['posterous']))
              

      $contactmethods[‘posterous’] = ‘Posterous’;

      $ contactmethods [‘posterous’] =‘Posterous’;

      return $contactmethods;

       返回$ contactmethods;

      }

      }

      add_filter(‘user_contactmethods’,’author_spotlight_contactmethods’);

      add_filter('user_contactmethods','author_spotlight_contactmethods');

下载地址
https://downloads.wordpress.org/plugin/author-profile.3.4.zip
-EOF-

AI助手支持GPT4.0