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

wordpress 插件 文章 2020-02-23 18:40 556 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Contact Form 7 Connector联系表7连接器
[wordpress插件] The Accessibility Toolbar by Online ADAOnline ADA的辅助功能工具栏
[wordpress插件] Custom Code Manager自定义代码管理器
[wordpress插件] Calconic WordPressCalconic WordPress
[wordpress插件] Disable Post Format UI禁用帖子格式用户界面
随便看看
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9047
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7471
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793