classes/models/FrmEntryFormatter.php 1 location
|
@@ 145-156 (lines=12) @@
|
142 |
|
|
143 |
|
$this->format = 'array'; |
144 |
|
|
145 |
|
} else if ( $atts['format'] === 'json' ) { |
146 |
|
|
147 |
|
$this->format = 'json'; |
148 |
|
|
149 |
|
} else if ( $atts['format'] === 'text' ) { |
150 |
|
|
151 |
|
if ( $this->is_plain_text === true ) { |
152 |
|
$this->format = 'plain_text_block'; |
153 |
|
} else { |
154 |
|
$this->format = 'table'; |
155 |
|
} |
156 |
|
} |
157 |
|
} |
158 |
|
|
159 |
|
/** |
classes/models/FrmEntryShortcodeFormatter.php 1 location
|
@@ 118-127 (lines=10) @@
|
115 |
|
protected function init_format( $atts ) { |
116 |
|
if ( ! isset( $atts['format'] ) ) { |
117 |
|
$this->format = 'table'; |
118 |
|
} else if ( $atts['format'] == 'array' ) { |
119 |
|
$this->format = 'array'; |
120 |
|
} else if ( $atts['format'] == 'text' ) { |
121 |
|
|
122 |
|
if ( $this->is_plain_text === true ) { |
123 |
|
$this->format = 'plain_text_block'; |
124 |
|
} else { |
125 |
|
$this->format = 'table'; |
126 |
|
} |
127 |
|
} |
128 |
|
} |
129 |
|
|
130 |
|
/** |