开发者 |
tonyzeoli
kionae |
---|---|
更新时间 | 2020年6月26日 23:54 |
PHP版本: | 3.2.0 及以上 |
WordPress版本: | 3.3-beta2 |
/wp-content/plugins/
directory and unzip.Yes, as of version 0.2.5. Use the shortcode [dj-schedule] in any page or post. The name of the default DJ can be set on the plugin's options page under settings, and styles for the schedule output can be changed in dj-on-air-wdiget/styles/djonair.css.
As of version 0.2.3, yes. Under Settings > DJ On-Air, you can select hour, half-hour, or 15 minute shifts.
The widget can be embedded into posts usings the following shortcode: [dj-widget title="Current DJ On-Air" show_avatar="1" show_link="1" default_name="Some DJ"] title = The title that will appear above the name(s) of the current DJ(s) - (optional) show_avatar = Whether or not to display avatars, 1 for yes, 0 for no (optional - default is 0) show_link = Whether or not to link to profile page, 1 for yes, 0 for no (optional - default is 0) default_name = The name or text to display if no DJ is currently scheduled To use it in a template file include the following PHP code: echo do_shortcode('[dj-widget title="Current DJ On-Air" show_avatar="1" show_link="1" default_name="Some DJ"]'); or $args = array("title" => "Current DJ On-Air", "show_avatar" => 1, "show_link" => 1, "default_name" => "Some DJ"); echo dj_show_widget($args);
Yes, as of version 0.2. The options page is under the Settings tab.
Yes. Just edit the /dj-on-air/styles/djonair.css file and change whatever you want.
In the user profile. It's the same avatar that's assigned to the user's account.
Yes. If two users are scheduled for the same hour on the same day, they will both show up in the widget.