includes/acf/fields/file.php 1 location
|
@@ 159-171 (lines=13) @@
|
156 |
|
</div> |
157 |
|
</div> |
158 |
|
<div class="hide-if-value"> |
159 |
|
<?php if( $uploader == 'basic' ): ?> |
160 |
|
|
161 |
|
<?php if( $field['value'] && !is_numeric($field['value']) ): ?> |
162 |
|
<div class="acf-error-message"><p><?php echo $field['value']; ?></p></div> |
163 |
|
<?php endif; ?> |
164 |
|
|
165 |
|
<input type="file" name="<?php echo $field['name']; ?>" id="<?php echo $field['id']; ?>" /> |
166 |
|
|
167 |
|
<?php else: ?> |
168 |
|
|
169 |
|
<p style="margin:0;"><?php _e('No File selected','acf'); ?> <a data-name="add" class="acf-button" href="#"><?php _e('Add File','acf'); ?></a></p> |
170 |
|
|
171 |
|
<?php endif; ?> |
172 |
|
|
173 |
|
</div> |
174 |
|
</div> |
includes/acf/fields/image.php 1 location
|
@@ 137-149 (lines=13) @@
|
134 |
|
</ul> |
135 |
|
</div> |
136 |
|
<div class="view hide-if-value"> |
137 |
|
<?php if( $uploader == 'basic' ): ?> |
138 |
|
|
139 |
|
<?php if( $field['value'] && !is_numeric($field['value']) ): ?> |
140 |
|
<div class="acf-error-message"><p><?php echo $field['value']; ?></p></div> |
141 |
|
<?php endif; ?> |
142 |
|
|
143 |
|
<input type="file" name="<?php echo $field['name']; ?>" id="<?php echo $field['id']; ?>" /> |
144 |
|
|
145 |
|
<?php else: ?> |
146 |
|
|
147 |
|
<p style="margin:0;"><?php _e('No image selected','acf'); ?> <a data-name="add" class="acf-button" href="#"><?php _e('Add Image','acf'); ?></a></p> |
148 |
|
|
149 |
|
<?php endif; ?> |
150 |
|
</div> |
151 |
|
</div> |
152 |
|
<?php |