<td>Cell</td> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </table> <?php echo renderContent(ob_get_clean(), $content, 'body-1'); ?> </div> </body> </html>
var element = this.getElement(); element.html(atob(element.data('replacement'))); } } }); }); </script> </head> <body> <?php include __DIR__ . '/../include/nav.php'; ?> <?php $original = ' <h1>Welcome to the (fake) login area!</h1> <p>Hello ${first-name} ${last-name}, how are you today?</p> '; ?> <div class="editable half center" data-id="body-1" data-replacement="<?php echo base64_encode($original); ?> "> <?php $buffer = str_replace(['${first-name}', '${last-name}'], ['Raptor', 'Editor'], $original); echo renderContent($buffer, $content, 'body-1'); ?> </div> </body> </html>
echo $form->field($node, 'disabled')->checkbox(); ?> <?php echo $form->field($node, 'removable')->checkbox(); ?> <?php echo $form->field($node, 'removable_all')->checkbox($flagOptions); ?> </div> <div class="col-sm-4"> <?php echo $form->field($node, 'movable_u')->checkbox(); ?> <?php echo $form->field($node, 'movable_d')->checkbox(); ?> <?php echo $form->field($node, 'movable_l')->checkbox(); ?> <?php echo $form->field($node, 'movable_r')->checkbox(); ?> </div> </div> <?php echo renderContent(Module::VIEW_PART_4); } ActiveForm::end(); echo renderContent(Module::VIEW_PART_5);
<?php include __DIR__ . '/../include/nav.php'; ?> <?php ob_start(); ?> <h1>Raptor Editor - Data Token Example</h1> <p> Hello {{ person.name }} </p> {% for transaction in transactions %} <p>{{ transaction }}</p> {% endfor %} <?php $data = ['person' => ['name' => 'John Smith'], 'transactions' => [1025.99, 499.99, 35.0, -100.0]]; $source = renderContent(ob_get_clean(), $content, 'body-1'); $html = renderTwig($source, $data); ?> <div class="editable half center" data-id="body-1" data-source="<?php echo base64_encode($source); ?> " data-data='<?php echo json_encode($data); ?> '> <?php echo $html; ?> </div> </body> </html>