*/ if (!defined('DOKU_INC')) die(); if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(dirname(__FILE__).'/core.php'); class syntax_plugin_mikioplugin_card extends syntax_plugin_mikioplugin_core { public $tag = 'card'; public $hasEndTag = true; public $options = array( 'image' => array('type' => 'media', 'default' => ''), 'image-cover' => array('type' => 'boolean', 'default' => 'false'), 'image-height' => array('type' => 'size', 'default' => ''), 'overlay' => array('type' => 'boolean', 'default' => 'false'), 'title' => array('type' => 'text', 'default' => ''), 'subtitle' => array('type' => 'text', 'default' => ''), 'no-body' => array('type' => 'boolean', 'default' => 'false'), 'header' => array('type' => 'text', 'default' => ''), 'footer' => array('type' => 'text', 'default' => ''), 'placeholder-text' => array('type' => 'text', 'default' => ''), 'placeholder-color' => array('type' => 'text', 'default' => ''), 'placeholder-text-color' => array('type' => 'text', 'default' => ''), 'placeholder-height' => array('type' => 'size', 'default' => ''), 'footer-image' => array('type' => 'media', 'default' => ''), 'footer-image-cover' => array('type' => 'boolean', 'default' => 'false'), 'footer-placeholder-text' => array('type' => 'text', 'default' => ''), 'footer-placeholder-color' => array('type' => 'text', 'default' => ''), 'footer-placeholder-text-color' => array('type' => 'text', 'default' => ''), 'horizontal' => array('type' => 'boolean', 'default' => 'false'), 'footer-small' => array('type' => 'boolean', 'default' => 'false'), ); public function __construct() { $this->addCommonOptions('type shadow width height text-align vertical-align text-color'); } public function getAllowedTypes() { return array('formatting', 'substition', 'disabled', 'container'); } public function getPType() { return 'normal'; } public function render_lexer_enter(Doku_Renderer $renderer, $data) { $classes = $this->buildClass($data, array('overlay', 'horizontal')); $styles = $this->buildStyle(array('height' => $data['height'], 'width' => $data['width']), TRUE); $renderer->doc .= '