這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Twitter Themes

外掛說明

Twitter themes is a plugin that allows you to show the timeline of a Twitter account. The main difference from other plugins is that Twitter themes incorporates a system template that allows you to create your own theme for the plugin easily. If you know HTML and CSS you can create your own theme for the plugin and integrate it into your WordPress theme. You can create your own HTML, CSS or JavaScript. The plugin includes several themes that you can use as reference to create your own theme and I hope to offer new themes.

Demos:

You can see a demo of the plugin in the following URLs:

Features:

  • You can create your own themes, based on shortcodes, for the plugin to which you can assign CSS, JavaScript or images resources and customize completely.
  • You can use the plugin as a widget where you can configure the options available for each theme.
  • You can use the plugin as shortcode, to integrate it from the editor or from the php of your WordPresss theme.
  • Using version 1.1 of the Twitter API.
  • Using font icons so you can change the color of them from CSS.

Widget fields:

I will describe every field of the widget but keep in mind that not all fields appear in each theme.

  • Title: the title of the widget. Shortcode attribute: title, value: text (optional).
  • Twitter user name: Twitter user name. Shortcode attribute: screen_name, value: text (required).
  • Refresh time (in minutes): number of minutes that the information gathered from Twitter is stored in cache. Shortcode attribute: cache_time, value: number (optional).
  • Select theme: field to select the theme that we will use with the plugin. Custom themes created by the user will also appear in this select. Shortcode attribute: theme, value: name of the PHP file used in the theme. The themes that come with the plugin are twitter_ticker_theme.php and twitter_little_ticker_theme.php, but I hope to offer new themes occasionally. The user can also create their own themes (optional).
  • Display profile image: to select the image size of the user profile. Shortcode attribute: profile_image, value: false, mini, normal, bigger, original (optional).
  • Number of tweets: number of tweets to be displayed in the widget. The total number includes the retweets and responses, so if you configure to not display them the total number will be less than the value set. The maximum number of tweets that can be requested to Twitter is 200 tweets. Shortcode attribute: tweets_count, value: number (optional).
  • Show Tweet Actions: this option will show the tweet actions links on each tweet, reply, retweet and favorite. Shortcode attribute: tweet_actions, value: true or false (default), (optional).
  • Include retweets: this option will show the retweets in the timeline. Shortcode attribute: show_retweets, value: true or false (default), (optional).
  • Include replies: this option will show the replies in the timeline. Shortcode attribute: show_replies, value: true or false (default), (optional).
  • Show sending application: this will show the application from which the tweet was sent. Shortcode attribute: sending_app, value: true or false (default), (optional).
  • Show date: this option will show the creation date of the tweet with the format used by Twitter. Shortcode attribute: date, value: true or false (default), (optional).
  • Show links: this option will display the tweet links. Shortcode attribute: hyperlinks, value: true or false (default) (optional).
  • Open links in new window: The links will open in a new window. Shortcode attribute: target_blank, value: true or false (default), (optional).
  • Add “nofollow” attributte to links: with this option selected rel=”nofollow” will be added to links code to tell search engines to not follow this links. Shortcode attribute: no_follow, value: true or false (default), (optional).
  • Show Follow Button: This option will display the Twitter follow button. Shortcode attribute: follow_button, value: true or false (default), (optional).
  • Show Screen Name: the user name will be shown in the Follow button. Shortcode attribute: follow_show_screen_name, value: true or false (default), (optional).
  • Followers count display: followers counter will be shown in the Follow button. Shortcode attribute: follow_show_count, value: true or false (default), (optional).
  • Large Follow Button: This will display the big follow button. Shortcode attribute: follow_size, value: true or false (default), (optional).
  • Button alignment left: this option aligns to the left the follow button. Shortcode attribute: follow_data_align, value: true or false (default), (optional).
  • Show Link to PoseLab: It is a small link to my website. If you have installed this plugin on your website and want to thank me you can show this link to my website. Shortcode attribute: poselab_link, value: true or false (default), (optional).
    Some functions of this plugin and inspiration correspond to the following plugins:

  • Rotating Tweets by Martin Tod

  • Twitter Widget Pro by Range

螢幕擷圖

  • To use the widget, go to Appearance -> Widgets and Add "Twitter Themes" widget.
  • Each widget has settings that need to be set, so the next step is to click the down arrow on the right of the newly added widget and adjust all the settings. When you're done click "Save"
  • This is what the widget looks like in the Twitter ticker theme.
  • This is what the widget looks like in the Twitter little ticker theme.

安裝方式

  1. Use automatic installer to install and active the plugin.
  2. You should see a notice appear in your admin that links you to the settings page.
  3. Follow the instructions to setup your Twitter app and authenticate your account (an unfortunate step made necessary by Twitter’s API changes).
  4. In WordPress admin go to ‘Appearance’ -> ‘Widgets’ and add “Twitter themes” to one of your widget-ready areas of your site

常見問題集

How can I create themes for the plugin?

Soon a tutorial will be ready.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Twitter Themes〉的開發相關工作。

參與者

將〈Twitter Themes〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3

  • First release