header-icon.php
5 years ago
header.php
5 years ago
section.php
5 years ago
setting-date.php
5 years ago
setting-label-icons.php
5 years ago
setting-label.php
5 years ago
setting-message.php
5 years ago
setting-pro.php
5 years ago
setting-width.php
5 years ago
setting-label-icons.php
96 lines
| 1 | <table class="ac-column-setting<?php echo $this->name ? esc_attr( ' ac-column-setting--' . $this->name ) : ''; ?>" data-setting="<?php echo esc_attr( $this->name ); ?>"> |
| 2 | <tr> |
| 3 | <td class="col-label"> |
| 4 | <label for="<?php echo esc_attr( $this->for ); ?>"> |
| 5 | |
| 6 | <span class="label<?php echo esc_attr( $this->tooltip ? ' tooltip' : '' ); ?>"> |
| 7 | <?php echo $this->label; ?> |
| 8 | </span> |
| 9 | |
| 10 | <?php if ( $this->tooltip ) : ?> |
| 11 | <div class="tooltip"> |
| 12 | <?php echo $this->tooltip; ?> |
| 13 | </div> |
| 14 | <?php endif; ?> |
| 15 | |
| 16 | </label> |
| 17 | </td> |
| 18 | <td class="col-input"> |
| 19 | <div class="ac-setting-input ac-setting-input-label"> |
| 20 | <div class="ac-modal -setting -iconpicker"> |
| 21 | <div class="ac-modal__dialog"> |
| 22 | <div class="ac-modal__dialog__header"> |
| 23 | |
| 24 | <?php _e( 'Select Icon', 'codepress-admin-columns' ); ?> |
| 25 | <button class="ac-modal__dialog__close" data-dismiss="modal"> |
| 26 | <span class="dashicons dashicons-no"></span> |
| 27 | </button> |
| 28 | |
| 29 | </div> |
| 30 | |
| 31 | <div class="ac-modal__dialog__content"> |
| 32 | <?php |
| 33 | $groups = [ |
| 34 | __( 'Admin Menu', 'codepress-admin-columns' ) => [ 'menu', 'menu-alt', 'menu-alt2', 'menu-alt3', 'admin-site', 'admin-site-alt', 'admin-site-alt2', 'admin-site-alt3', 'dashboard', 'admin-post', 'admin-media', 'admin-links', 'admin-page', 'admin-comments', 'admin-appearance', 'admin-plugins', 'plugins-checked', 'admin-users', 'admin-tools', 'admin-settings', 'admin-network', 'admin-home', 'admin-generic', 'admin-collapse', 'filter', 'admin-customizer', 'admin-multisite' ], |
| 35 | __( 'Welcome Screen', 'codepress-admin-columns' ) => [ 'welcome-write-blog', 'welcome-add-page', 'welcome-view-site', 'welcome-widgets-menus', 'welcome-comments', 'welcome-learn-more' ], |
| 36 | __( 'Post Formats', 'codepress-admin-columns' ) => [ 'format-aside', 'format-image', 'format-gallery', 'format-video', 'format-status', 'format-quote', 'format-chat', 'format-audio', 'camera', 'camera-alt', 'images-alt', 'images-alt2', 'video-alt', 'video-alt2', 'video-alt3' ], |
| 37 | __( 'Media', 'codepress-admin-columns' ) => [ 'media-archive', 'media-audio', 'media-code', 'media-default', 'media-document', 'media-interactive', 'media-spreadsheet', 'media-text', 'media-video', 'playlist-audio', 'playlist-video', 'controls-play', 'controls-pause', 'controls-forward', 'controls-skipforward', 'controls-back', 'controls-skipback', 'controls-repeat', 'controls-volumeon', 'controls-volumeoff' ], |
| 38 | __( 'Image Editing', 'codepress-admin-columns' ) => [ 'image-crop', 'image-rotate', 'image-rotate-left', 'image-rotate-right', 'image-flip-vertical', 'image-flip-horizontal', 'image-filter', 'undo', 'redo' ], |
| 39 | __( 'Databases', 'codepress-admin-columns' ) => [ 'database-add', 'database', 'database-export', 'database-import', 'database-remove', 'database-view' ], |
| 40 | __( 'Block Editor', 'codepress-admin-columns' ) => [ 'align-full-width', 'align-pull-left', 'align-pull-right', 'align-wide', 'block-default', 'button', 'cloud-saved', 'cloud-upload', 'columns', 'cover-image', 'ellipsis', 'embed-audio', 'embed-generic', 'embed-photo', 'embed-post', 'embed-video', 'exit', 'heading', 'html', 'info-outline', 'insert', 'insert-after', 'insert-before', 'remove', 'saved', 'shortcode', 'table-col-after', 'table-col-before', 'table-col-delete', 'table-row-after', 'table-row-before', 'table-row-delete' ], |
| 41 | __( 'TinyMCE', 'codepress-admin-columns' ) => [ 'editor-bold', 'editor-italic', 'editor-ul', 'editor-ol', 'editor-ol-rtl', 'editor-quote', 'editor-alignleft', 'editor-aligncenter', 'editor-alignright', 'editor-insertmore', 'editor-spellcheck', 'editor-expand', 'editor-contract', 'editor-kitchensink', 'editor-underline', 'editor-justify', 'editor-textcolor', 'editor-paste-word', 'editor-paste-text', 'editor-removeformatting', 'editor-video', 'editor-customchar', 'editor-outdent', 'editor-indent', 'editor-help', 'editor-strikethrough', 'editor-unlink', 'editor-rtl', 'editor-ltr', 'editor-break', 'editor-code', 'editor-paragraph', 'editor-table' ], |
| 42 | __( 'Posts Screen', 'codepress-admin-columns' ) => [ 'align-left', 'align-right', 'align-center', 'align-none', 'lock', 'unlock', 'calendar', 'calendar-alt', 'visibility', 'hidden', 'post-status', 'edit', 'trash', 'sticky' ], |
| 43 | __( 'Sorting', 'codepress-admin-columns' ) => [ 'external', 'arrow-up', 'arrow-down', 'arrow-right', 'arrow-left', 'arrow-up-alt', 'arrow-down-alt', 'arrow-right-alt', 'arrow-left-alt', 'arrow-up-alt2', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-left-alt2', 'sort', 'leftright', 'randomize', 'list-view', 'excerpt-view', 'grid-view', 'move' ], |
| 44 | __( 'Social', 'codepress-admin-columns' ) => [ 'share', 'share-alt', 'share-alt2', 'rss', 'email', 'email-alt', 'email-alt2', 'networking', 'amazon', 'facebook', 'facebook-alt', 'google', 'instagram', 'linkedin', 'pinterest', 'podio', 'reddit', 'spotify', 'twitch', 'twitter', 'twitter-alt', 'whatsapp', 'xing', 'youtube' ], |
| 45 | __( 'WordPress.org', 'codepress-admin-columns' ) => [ 'hammer', 'art', 'migrate', 'performance', 'universal-access', 'universal-access-alt', 'tickets', 'nametag', 'clipboard', 'heart', 'megaphone', 'schedule', 'tide', 'rest-api', 'code-standards' ], |
| 46 | __( 'Buddicons', 'codepress-admin-columns' ) => [ 'buddicons-activity', 'buddicons-bbpress-logo', 'buddicons-buddypress-logo', 'buddicons-community', 'buddicons-forums', 'buddicons-friends', 'buddicons-groups', 'buddicons-pm', 'buddicons-replies', 'buddicons-topics', 'buddicons-tracking' ], |
| 47 | __( 'Products', 'codepress-admin-columns' ) => [ 'wordpress', 'wordpress-alt', 'pressthis', 'update', 'update-alt', 'screenoptions', 'info', 'cart', 'feedback', 'cloud', 'translation' ], |
| 48 | __( 'Taxonomies', 'codepress-admin-columns' ) => [ 'tag', 'category' ], |
| 49 | __( 'Widgets', 'codepress-admin-columns' ) => [ 'archive', 'tagcloud', 'text' ], |
| 50 | __( 'Notifications', 'codepress-admin-columns' ) => [ 'bell', 'yes', 'yes-alt', 'no', 'no-alt', 'plus', 'plus-alt', 'plus-alt2', 'minus', 'dismiss', 'marker', 'star-filled', 'star-half', 'star-empty', 'flag', 'warning' ], |
| 51 | __( 'Misc', 'codepress-admin-columns' ) => [ 'location', 'location-alt', 'vault', 'shield', 'shield-alt', 'sos', 'search', 'slides', 'text-page', 'analytics', 'chart-pie', 'chart-bar', 'chart-line', 'chart-area', 'groups', 'businessman', 'businesswoman', 'businessperson', 'id', 'id-alt', 'products', 'awards', 'forms', 'testimonial', 'portfolio', 'book', 'book-alt', 'download', 'upload', 'backup', 'clock', 'lightbulb', 'microphone', 'desktop', 'laptop', 'tablet', 'smartphone', 'phone', 'index-card', 'carrot', 'building', 'store', 'album', 'palmtree', 'tickets-alt', 'money', 'money-alt', 'smiley', 'thumbs-up', 'thumbs-down', 'layout', 'paperclip', 'color-picker', 'edit-large', 'edit-page', 'airplane', 'bank', 'beer', 'calculator', 'car', 'coffee', 'drumstick', 'food', 'fullscreen-alt', 'fullscreen-exit-alt', 'games', 'hourglass', 'open-folder', 'pdf', 'pets', 'printer', 'privacy', 'superhero', 'superhero-alt' ], |
| 52 | ]; |
| 53 | ?> |
| 54 | |
| 55 | <div class="ac-ipicker__icons"> |
| 56 | <?php foreach ( $groups as $label => $icons ): ?> |
| 57 | <h3 class="ac-ipicker__icons__group"><?php echo $label; ?></h3> |
| 58 | |
| 59 | <?php foreach ( $icons as $icon ): ?> |
| 60 | <div class="ac-ipicker__icon" data-dashicon="<?php echo $icon; ?>" tabindex="0"> |
| 61 | <span class="dashicons dashicons-<?php echo $icon; ?>"></span> |
| 62 | </div> |
| 63 | <?php endforeach; ?> |
| 64 | |
| 65 | <?php endforeach; ?> |
| 66 | </div> |
| 67 | |
| 68 | </div> |
| 69 | |
| 70 | <div class="ac-modal__dialog__footer"> |
| 71 | <div class="ac-ipicker__selection"></div> |
| 72 | <button class="button button-primary" data-action="submit"><?php _e( 'Select' ); ?></button> |
| 73 | </div> |
| 74 | |
| 75 | </div> |
| 76 | |
| 77 | </div> |
| 78 | |
| 79 | <div class="ac-setting-input__container"> |
| 80 | <?php echo $this->setting; ?> |
| 81 | <button class="ac-setting-label-icon" title="Choose icon"><span class="dashicons dashicons-format-image"></span></button> |
| 82 | </div> |
| 83 | |
| 84 | </div> |
| 85 | <?php |
| 86 | |
| 87 | if ( is_array( $this->sections ) ) { |
| 88 | foreach ( $this->sections as $section ) { |
| 89 | echo $section; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | ?> |
| 94 | </td> |
| 95 | </tr> |
| 96 | </table> |