Changeset View
Changeset View
Standalone View
Standalone View
src/markup/engine/remarkup/blockrule/PhutilRemarkupBlockRule.php
| <?php | <?php | ||||
| /** | abstract class PhutilRemarkupBlockRule extends Phobject { | ||||
| * @stable | |||||
| */ | |||||
| abstract class PhutilRemarkupBlockRule { | |||||
| private $engine; | private $engine; | ||||
| private $rules = array(); | private $rules = array(); | ||||
| /** | /** | ||||
| * Determine the order in which blocks execute. Blocks with smaller priority | * Determine the order in which blocks execute. Blocks with smaller priority | ||||
| * numbers execute sooner than blocks with larger priority numbers. The | * numbers execute sooner than blocks with larger priority numbers. The | ||||
| * default priority for blocks is `500`. | * default priority for blocks is `500`. | ||||
| ▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | protected function renderRemarkupTable(array $out_rows) { | ||||
| if ($this->getEngine()->isHTMLMailMode()) { | if ($this->getEngine()->isHTMLMailMode()) { | ||||
| $table_attributes = array( | $table_attributes = array( | ||||
| 'style' => 'border-collapse: separate; | 'style' => 'border-collapse: separate; | ||||
| border-spacing: 1px; | border-spacing: 1px; | ||||
| background: #d3d3d3; | background: #d3d3d3; | ||||
| margin: 12px 0;', | margin: 12px 0;', | ||||
| ); | ); | ||||
| $cell_attributes = array ( | $cell_attributes = array( | ||||
| 'style' => 'background: #ffffff; | 'style' => 'background: #ffffff; | ||||
| padding: 3px 6px;', | padding: 3px 6px;', | ||||
| ); | ); | ||||
| } else { | } else { | ||||
| $table_attributes = array( | $table_attributes = array( | ||||
| 'class' => 'remarkup-table', | 'class' => 'remarkup-table', | ||||
| ); | ); | ||||
| $cell_attributes = array(); | $cell_attributes = array(); | ||||
| Show All 20 Lines | |||||