AI助手支持GPT4.0
Basic Banner is a plugin that allows you to create and display banners in WordPress.
Basic Banner是一个插件,可让您在WordPress中创建和显示横幅。
This plugin creates custom post type called banner to store all the banners.
该插件会创建称为横幅的自定义帖子类型,以存储所有横幅。 p>
You can display the banners by using basic banner widget.
您可以使用基本的横幅小部件来显示横幅。
There is also a shortcode :
还有一个简码: p>
[basicbanner name="" class=""] [basicbanner name =“” class =“”] code> pre>And a function for displaying banners anywhere in your theme :以及用于在主题的任何位置显示横幅的功能: p> <?php basic_banner_show($ name,$ class =''); ?>?> code> pre>Parameter $name is the banner slug and $class is the additional HTML classes for banner container.参数 $ name code>是横幅条,而 $ class code>是横幅容器的附加HTML类。To get the banner object, you can use this function :要获取标题对象,可以使用以下功能: p> <?php $ banner = basic_banner_get($ name); ?>?> code> pre>Override Banner Template覆盖横幅模板 h4>Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).在Basic Banner插件文件夹(wp-content / plugins / basic-banner / template)中找到文件夹 template strong>。 li>Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.将 banner.php strong>文件复制到名为 basic-banner strong>的文件夹(wp-content / themes / your-theme / basic-banner / banner)下的主题文件夹中。 php).php)。 li>Modify banner.php file as you like.根据需要修改 banner.php strong>文件。 li> ol>Contribute on GitHub在GitHub上贡献 h4>You can contribute to this plugin via the GitHub repository.您可以通过 GitHub存储库对此插件做出贡献。 p>
[basicbanner name =“” class =“”]
code> pre>
And a function for displaying banners anywhere in your theme :
以及用于在主题的任何位置显示横幅的功能: p>
<?php basic_banner_show($ name,$ class =''); ?>?> code> pre>Parameter $name is the banner slug and $class is the additional HTML classes for banner container.参数 $ name code>是横幅条,而 $ class code>是横幅容器的附加HTML类。To get the banner object, you can use this function :要获取标题对象,可以使用以下功能: p> <?php $ banner = basic_banner_get($ name); ?>?> code> pre>Override Banner Template覆盖横幅模板 h4>Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).在Basic Banner插件文件夹(wp-content / plugins / basic-banner / template)中找到文件夹 template strong>。 li>Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.将 banner.php strong>文件复制到名为 basic-banner strong>的文件夹(wp-content / themes / your-theme / basic-banner / banner)下的主题文件夹中。 php).php)。 li>Modify banner.php file as you like.根据需要修改 banner.php strong>文件。 li> ol>Contribute on GitHub在GitHub上贡献 h4>You can contribute to this plugin via the GitHub repository.您可以通过 GitHub存储库对此插件做出贡献。 p>
<?php basic_banner_show($ name,$ class =''); ?>?>
?>
?>
Parameter $name is the banner slug and $class is the additional HTML classes for banner container.
$name
$class
参数 $ name code>是横幅条,而 $ class code>是横幅容器的附加HTML类。To get the banner object, you can use this function :要获取标题对象,可以使用以下功能: p> <?php $ banner = basic_banner_get($ name); ?>?> code> pre>Override Banner Template覆盖横幅模板 h4>Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).在Basic Banner插件文件夹(wp-content / plugins / basic-banner / template)中找到文件夹 template strong>。 li>Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.将 banner.php strong>文件复制到名为 basic-banner strong>的文件夹(wp-content / themes / your-theme / basic-banner / banner)下的主题文件夹中。 php).php)。 li>Modify banner.php file as you like.根据需要修改 banner.php strong>文件。 li> ol>Contribute on GitHub在GitHub上贡献 h4>You can contribute to this plugin via the GitHub repository.您可以通过 GitHub存储库对此插件做出贡献。 p>
$ name code>是横幅条,而 $ class code>是横幅容器的附加HTML类。To get the banner object, you can use this function :要获取标题对象,可以使用以下功能: p> <?php $ banner = basic_banner_get($ name); ?>?> code> pre>Override Banner Template覆盖横幅模板 h4>Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).在Basic Banner插件文件夹(wp-content / plugins / basic-banner / template)中找到文件夹 template strong>。 li>Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.将 banner.php strong>文件复制到名为 basic-banner strong>的文件夹(wp-content / themes / your-theme / basic-banner / banner)下的主题文件夹中。 php).php)。 li>Modify banner.php file as you like.根据需要修改 banner.php strong>文件。 li> ol>Contribute on GitHub在GitHub上贡献 h4>You can contribute to this plugin via the GitHub repository.您可以通过 GitHub存储库对此插件做出贡献。 p>
$ class code>是横幅容器的附加HTML类。To get the banner object, you can use this function :要获取标题对象,可以使用以下功能: p> <?php $ banner = basic_banner_get($ name); ?>?> code> pre>Override Banner Template覆盖横幅模板 h4>Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).在Basic Banner插件文件夹(wp-content / plugins / basic-banner / template)中找到文件夹 template strong>。 li>Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.将 banner.php strong>文件复制到名为 basic-banner strong>的文件夹(wp-content / themes / your-theme / basic-banner / banner)下的主题文件夹中。 php).php)。 li>Modify banner.php file as you like.根据需要修改 banner.php strong>文件。 li> ol>Contribute on GitHub在GitHub上贡献 h4>You can contribute to this plugin via the GitHub repository.您可以通过 GitHub存储库对此插件做出贡献。 p>
To get the banner object, you can use this function :
要获取标题对象,可以使用以下功能: p>
<?php $ banner = basic_banner_get($ name); ?>?> code> pre>Override Banner Template覆盖横幅模板 h4>Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).在Basic Banner插件文件夹(wp-content / plugins / basic-banner / template)中找到文件夹 template strong>。 li>Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.将 banner.php strong>文件复制到名为 basic-banner strong>的文件夹(wp-content / themes / your-theme / basic-banner / banner)下的主题文件夹中。 php).php)。 li>Modify banner.php file as you like.根据需要修改 banner.php strong>文件。 li> ol>Contribute on GitHub在GitHub上贡献 h4>You can contribute to this plugin via the GitHub repository.您可以通过 GitHub存储库对此插件做出贡献。 p>
<?php $ banner = basic_banner_get($ name); ?>?>
php).
php)。 li>
ol>
You can contribute to this plugin via the GitHub repository.
您可以通过 GitHub存储库对此插件做出贡献。 p>
Automatic installation is the easiest option as WordPress handles the file transfers itself.
自动安装是最简单的选项,因为WordPress会自行处理文件传输。 p>
Automatic updates should work like a charm;
自动更新应该像灵丹妙药一样工作;
as always though, ensure you backup your site just in case.
与往常一样,请确保备份站点以防万一。 p>
原文出处:http://www.sanshu.cn/a/3981.html
群主管理都是支付大佬