[wordpress插件] CPT – SpeakersCPT –演讲者

wordpress 插件 文章 2020-04-04 09:40 396 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin creates a custom post type for event speakers.

此插件为活动发言人创建自定义帖子类型。

Includes speakers page and single-speakers page templates.

包括扬声器页面和单扬声器页面模板。

If you are upgrading from an earlier version, you will need to manually move the template_speakers.php and single-speakers.php files from the /wp-content/plugins/cpt-speakers/ folder

如果要从早期版本升级,则需要从 / wp-content / plugins / cpt-speakers / 文件夹中手动移动template_speakers.php和single-speakers.php文件

in to the folder for your active theme.

进入活动主题的文件夹。

If the file already exists in your theme folder, overwrite it with the new one.

如果该文件已经存在于您的主题文件夹中,请用新的文件覆盖。

安装步骤

    1. Upload the cpt-speakers folder to the /wp-content/plugins/ directory
    2. cpt-speakers 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Two template files will be added to your current theme folder
    6. 两个模板文件将被添加到您当前的主题文件夹中

    7. Create a new page and select the Speakers Page template
    8. 创建一个新页面并选择 Speakers Page 模板

    9. Add your speakers from the WordPress dashboard
    10. 从WordPress仪表板添加您的发言人

    11. (optional) Add speaker snippets (via shortcode) to your schedule page (example).

    12. (可选)将演讲者片段(通过短代码)添加到您的日程安排页面(示例)。

      >

      >

      Shortcode format: [speaker_snippet id=”3″] “3” would be the ID for the speaker you want to display

    13. 简码格式: [speaker_snippet id =” 3”] “ 3”将是您要显示的扬声器的ID

    14. Add custom CSS to your theme’s style sheet to format the speaker’s page.

      将自定义CSS添加到主题的样式表中,以设置发言人页面的格式。

      You can use this as a base and tweak as needed:

      您可以以此为基础并根据需要进行调整:

      speakers {

      扬声器{

      font-size: 12px;

        font-size:12px;

      min-height: 300px;

      最低高度:300像素;

      }

      }

      speaker_image_section {

      speaker_image_section {

      width: 150px;

       宽度:150px;

      float: left;

      向左飘浮;

      height: 300px;

      高度:300像素;

      margin-right: 18px;

      右边距:18px;

      }

      }

      speaker_image img {

      speaker_image img {

      margin-top: 5px;

        margin-top:5像素;

      border: 1px solid #333;

      边框:1px实线#333;

      padding: 3px;

      填充:3px;

      background: #0099cc;

      背景:#0099cc;

      }

      }

      speaker_name {

      speaker_name {

      font-size: 18px;

        font-size:18px;

      font-weight: bold;

      font-weight:粗体;

      margin-bottom: 10px;

      底边距:10px;

      }

      }

      speaker_url {

      speaker_url {

      text-align: center;

        text-align:center;

      }

      }

      speaker_twitter_url {

      speaker_twitter_url {

      text-align: center;

        text-align:center;

      }

      }

      speaker_pres_title {

      speaker_pres_title {

      margin: 5px 0px 5px 0px;

        margin:5px 0px 5px 0px;

      font-size: 13px;

      font-size:13px;

      }

      }

      speaker_pres_description {

      speaker_pres_description {

      font-size: 12px;

        font-size:12px;

      font-family: arial, helvetica;

      字体家族:arial,helvetica;

      line-height: 16px;

      行高:16px;

      }

      }

      speaker_session_description {

      speaker_session_description {

      font-size: 12px;

        font-size:12px;

      line-height: 18px;

      行高:18px;

      }

      }

      speaker_image_section_single {

      speaker_image_section_single {

      width: 150px;

       宽度:150px;

      float: left;

      向左飘浮;

      height: 600px;

      高度:600px;

      margin-right: 18px;

      右边距:18px;

      }

      }

      speaker_image_section_single img{

      speaker_image_section_single img {

      margin-top: 5px;

        margin-top:5像素;

      border: 1px solid #333;

      边框:1px实线#333;

      padding: 3px;

      填充:3px;

      background: #0099cc;

      背景:#0099cc;

      }

      }

      pres_url {

      pres_url {

      text-align: center;

        text-align:center;

      }

      }

      .speaker_snippet .thumbnail {
          

      .speaker_snippet .thumbnail {
          

      float:left;
          

      float:left;
          

      display:inline;
          

      display:inline;
          

      margin-right:10px;
          

      margin-right:10px;
          

      border-bottom:0;

      border-bottom:0;

      }

      }

      content .speaker_snippet .thumbnail a {

      content .speaker_snippet .thumbnail a {

      border-bottom:0;

        border-bottom:0;

      }

      }

      .speaker_snippet .name {
          

      .speaker_snippet .name {
          

      font-weight:bold;
          

      font-weight:bold;
          

      line-height:16px;

      line-height:16px;

      }

      }

      .speaker_snippet .title {
          

      .speaker_snippet .title {
          

      font-size:0.9em;
          

      字体大小:0.9em;
          

      line-height:15px;

      line-height:15px;

      }

      }

下载地址
https://downloads.wordpress.org/plugin/cpt-speakers.1.1.zip
-EOF-

AI助手支持GPT4.0