Lines Matching refs:data
46 $data = array();
47 $data['position'] = $pos;
48 $data['first_chars'] = substr($match, 0, 2);
49 $data['last_chars'] = substr($match, -2);
51 ($data['first_chars'] == '{{' ?
56 if (!$data['background_color'] && $this->_is_valid_color($param)) {
57 $data['background_color'] = $param;
59 elseif (!$data['background_image'] && $this->_is_valid_image($param)) {
60 $data['background_image'] = $param;
62 elseif (!$data['background_size'] && $this->_is_valid_size($param)) {
63 $data['background_size'] = $param;
67 $data['background_position'] = $param;
71 if (!$data['background_position']) $data['background_position'] = $param;
72 else $data['background_position'] .= ' '.$param;
74 elseif (!$data['background_repeat'] && in_array($param, array('repeat','no-repeat'))) {
75 $data['background_repeat'] = $param;
77 elseif (!$data['background_transition'] && $this->_is_valid_bg_transition($param)) {
78 $data['background_transition'] = $param;
82 if (!$data['transition']) $data['transition'] = $param;
83 else $data['transition'] .= ' '.$param;
85 … elseif (!$data['transition_speed'] && in_array($param, array('default','fast','slow'))) {
86 $data['transition_speed'] = $param;
88 elseif (!$data['no_footer'] && $param == 'no-footer') {
89 $data['no_footer'] = true;
92 return $data;
107 public function render($mode, Doku_Renderer $renderer, $data) { argument
113 $renderer->next_slide_background_color = $data['background_color'];
115 $data['background_image'] && substr($data['background_image'], 0, 4) == 'http' ?
116 $data['background_image'] :
117 ml($data['background_image']); /*DokuWiki build link to media file*/
118 $renderer->next_slide_background_size = $data['background_size'];
119 …$renderer->next_slide_background_position = str_replace(',', ' ', $data['background_position']); /…
120 $renderer->next_slide_background_repeat = $data['background_repeat'];
121 …$renderer->next_slide_background_transition = substr($data['background_transition'],3); // we cut …
122 $renderer->next_slide_transition = $data['transition'];
123 $renderer->next_slide_transition_speed = $data['transition_speed'];
126 … $renderer->next_slide_no_footer = ($data['no_footer'] || $renderer->next_slide_no_footer);
127 if ($data['last_chars'] == '->') {
131 elseif ($data['last_chars'] == '>>') {
136 elseif ($data['first_chars'] == '<-') {
140 elseif ($data['first_chars'] == '<<') {
151 $data['position'] = $renderer->wikipage_next_slide_no_footer_position;
155 if ($data['background_color']) {
156 $slide_details_text .= ' '.$data['background_color'];
157 $slide_details_background .= 'background-color:'.$data['background_color'].';';
159 if ($data['background_image']) {
160 $slide_details_text .= ' '.$data['background_image'];
162 (substr($data['background_image'], 0, 4) == 'http' ?
163 $data['background_image'] :
164 ml($data['background_image'])).
167 if ($data['background_size']) {
168 $slide_details_text .= ' '.$data['background_size'];
169 $slide_details_background .= 'background-size:'.$data['background_size'].';';
171 if ($data['background_position']) {
172 $slide_details_text .= ' '.$data['background_position'];
174 str_replace(',', ' ', $data['background_position']).';';
176 if ($data['background_repeat']) {
177 $slide_details_text .= ' '.$data['background_repeat'];
178 … $slide_details_background .= 'background-repeat:'.$data['background_repeat'].';';
180 if ($data['background_transition']) {
181 $slide_details_text .= ' '.$data['background_transition'];
183 if ($data['transition']) {
184 $slide_details_text .= ' '.$data['transition'];
186 if ($data['transition_speed']) {
187 $slide_details_text .= ' '.$data['transition_speed'];
191 if ($data['no_footer'] || $renderer->wikipage_next_slide_no_footer) {
196 if (in_array($data['last_chars'], array('->','>>','}}'))) {
202 $renderer->finishSectionEdit($data['position']- 1);
205 if ($data['last_chars'] == '>>') {
208 elseif ($data['last_chars'] == '->') {
225 …$renderer->startSectionEdit($data['position'], $sectionEditStartData, 'Slide '.$renderer->wikipage…
227 ($data['background_color'] || $data['background_image'] ?
237 if (in_array($data['last_chars'], array('->','>>'))) {
242 if ($data['last_chars'] == '}}') {
246 elseif (in_array($data['first_chars'], array('<-','<<'))) {