Skip to content
Snippets Groups Projects

scope: added new field

Merged Krzysztof Dyszczyk requested to merge scope/fields into master
1 unresolved thread

Merge request reports

Checking pipeline status.

Merged by Krzysztof DyszczykKrzysztof Dyszczyk 4 years ago (Jun 2, 2021 9:54am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 7 ?>
    8 <?php
    9 $media_container_id = 'media_' . sanitize_key( $field->get_id() );
    10 ?>
    11 <div class="media-input-wrapper" id="<?php echo $media_container_id; ?>">
    12 <input type="hidden" class="image-field-value" value="<?php echo \esc_html( $value ); ?>"
    13 name="<?php echo \esc_attr( $name_prefix ) . '[' . \esc_attr( $field->get_name() ) . ']'; ?>"
    14 id="<?php echo \esc_attr( $field->get_id() ); ?>"/>
    15 <div class="custom-img-container">
    16 <?php if ( $value ) : ?>
    17 <img src="<?php echo $value ?>" alt="" width="100"/>
    18 <?php endif; ?>
    19 </div>
    20 <p class="hide-if-no-js">
    21 <a class="upload-custom-img <?php if ( $value ) {
    22 echo 'hidden';
  • unassigned @dyszczo

    By Dyszczo on 2021-05-24T08:19:13 (imported from GitLab)

  • mentioned in commit e9c36523

    By Piotr Po on 2021-06-02T09:54:56 (imported from GitLab)

  • Please register or sign in to reply
    Loading