1<?php 2/** 3 * Options for the c3chart plugin 4 * 5 * @author Jason Xun Xu <dev@jasonxu.net> 6 */ 7 8 9$meta['url_yaml'] = array('string', '_pattern' => '#^(?:(?:(?:https?:)?/)?/)?(?:[\w.][\w./]*/)?js-yaml(?:\.min)?\.js$#'); 10$meta['url_d3'] = array('string', '_pattern' => '#^(?:(?:(?:https?:)?/)?/)?(?:[\w.][\w./]*/)?d3(?:\.min)?\.js$#'); 11$meta['url_c3'] = array('string', '_pattern' => '#^(?:(?:(?:https?:)?/)?/)?(?:[\w.][\w./]*/)?c3(?:\.min)?\.js$#'); 12$meta['url_c3_css'] = array('string', '_pattern' => '#^(?:(?:(?:https?:)?/)?/)?(?:[\w.][\w./]*/)?c3\.css$#'); 13$meta['width'] = array('string', '_pattern' => '/^(?:\d+(px|%))?$/'); 14$meta['height'] = array('string', '_pattern' => '/^(?:\d+(px|%))?$/'); 15$meta['align'] = array('multichoice', '_choices' => array('none','left','center','right')); 16