Linux 软件免费装
Banner图

Activity Sparks

开发者 pantsonhead
更新时间 2015年8月18日 10:08
PHP版本: 2.8 及以上
WordPress版本: 4.2.3

标签

google widget posts plugin sidebar comments chart graph activity sparkline

下载

0.1 0.2 0.3 0.4 0.4.1 0.4.2 0.5 0.6

详情介绍:

Activity Sparks is a highly customizable widget to display a "sparkline" style graph in your sidebar indicate post and/or comment activity. This plugin leverages Google's Chart API, so does not require the PHP GDI library. Customization options include Title, size, colour, background transparency, caching period, activity granularity and period.

安装:

  1. Upload activitysparks.php to the /wp-content/plugins/ directory of your WordPress installation
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. The widget can now be configured and used from the Appearance -> Widgets menu

屏幕截图:

  • Example implementation (3 instances)

常见问题:

Can I use it if I don't want to call a widget in the sidebar?

Basic template tag support was added in v0.3. The following code checks for plugin activation and renders with the default settings. To change the default settings you must pass an array of the parameters you wish to alter. These are the available parameters and valid values

  • dataset = 'posts', 'comments', 'both' or 'legend'
  • width_px = positive integer
  • height_px = positive integer
  • period = 1, 7, 14, 30, etc. (number of days to group by)
  • ticks = positive integer (number of periods to display)
  • chma = 0 or positive integer (chart margin px)
  • bkgrnd = 6 character hex value (e.g. FFFFFF) or 'NONE' for transparency
  • posts_color = 6 character hex value (e.g 4D89F9)
  • comments_color = 6 character hex value (e.g FF9900)
An example of how to implement parameters is as follows: 'legend','width_px'=>480,bkgrnd=>'NONE')); } ?> Caching is not available for the template tag implementation.

更新日志:

v0.6 2015-08-02 v0.5 2012-10-23 v0.4.2 2012-10-05 v0.4.1 2012-09-18 v0.4 2009-09-02 v0.3 2009-08-19 v0.2 2009-08-17 v0.1 2009-08-14