The xxx is the ID of your campaign what you found at list of campaigns page.
You have several options to insert this shortcode into your page.
- You can add it to your posts or pages through the WordPress editor.
- 您可以通过WordPress编辑器将其添加到帖子或页面中。 li>
- You can use the Banner Garden widget, and place it to your sidebar(s).
- 您可以使用Banner Garden小部件,并将其放置在侧边栏。 li>
- Edit the .php file what you want, and insert this code.
- 编辑所需的.php文件,然后插入此代码。 li>
ul>
So, before your WordPress engine start to render the page, the plugin is search for this shortcode.
因此,在您的WordPress引擎开始呈现页面之前,插件将搜索此短代码。
If it founds, it try to process it.
如果找到,它将尝试对其进行处理。 p>
About the process method.
关于处理方法。
The processor get out the id of the campaign.
处理器获取广告系列的ID。
Check, is this campaign exists, if yes, check is this campaign active, and if it is active, check, is the time settings are right.
检查是否存在该活动,如果是,则检查该活动是否有效,如果活动,则检查时间设置是否正确。
If everything is all right, it check is there any banner in this campaign.
如果一切正常,则检查此广告系列中是否有任何横幅。
If there is/are banner(s), then select one randomly, and replace the shortcode with your media.
如果有横幅,则随机选择一个,并将短代码替换为您的媒体。 p>
If any of above condition fails, it will show the default banner what is placed in the plugin dirs media subdirectory named “default_banner.jpg”.
如果以上任何条件失败,它将显示默认横幅,该默认横幅放置在名为“ default_banner.jpg”的插件dirs媒体子目录中。
This happens only, if you did not checked out the “Show default banner if anything fails” option.
仅当您没有签出“如果有任何失败时显示默认横幅”选项时,这种情况才会发生。 p>
I included a test falsh and a test image banner for you in this media subdirectory.
在此媒体子目录中,我为您提供了一个测试狂和一个测试图像横幅。 p>
That’s it.
就是这样。
You can read more about this plugin, updates, users comments at http://vaso.sma.hu/blog/banner-garden-plugin-for-wordpress/
您可以在http://vaso.sma.hu/blog/banner-garden-plugin-for-wordpress/ p>上阅读有关此插件,更新和用户评论的更多信息。
I did work very hard on this very first plugin, it tooks me 4 days, because i know wordpress only since a week.
我在第一个插件上做得很努力,花了我4天的时间,因为我只有一个星期才知道wordpress。 p>
Thank You!
谢谢! p>