| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; // Exit if accessed directly |
| 5 |
} |
| 6 |
|
| 7 |
$merchant_notifications = $this->get_notifications(); |
| 8 |
|
| 9 |
/** |
| 10 |
* Hook 'merchant_notifications_pro' |
| 11 |
* |
| 12 |
* @since 1.0 |
| 13 |
*/ |
| 14 |
$merchant_notifications_pro = apply_filters( 'merchant_notifications_pro', false ); |
| 15 |
|
| 16 |
/** |
| 17 |
* Hook 'merchant_notification_tabs' |
| 18 |
* |
| 19 |
* @since 1.0 |
| 20 |
*/ |
| 21 |
$merchant_notification_tabs = apply_filters( 'merchant_notification_tabs', false ); |
| 22 |
$merchant_notification_read = $this->is_latest_notification_read(); |
| 23 |
|
| 24 |
?> |
| 25 |
|
| 26 |
<div class="merchant-top-bar"> |
| 27 |
<a href="https://athemes.com/?utm_source=plugin_dashboard&utm_medium=merchant_dashboard&utm_campaign=Merchant" class="merchant-top-bar-logo" target="_blank"> |
| 28 |
<svg width="96" height="24" viewBox="0 0 96 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 29 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.4693 1.32313L8.45381 14.3107L0.67962 4.82163L23.4693 1.32313Z" fill="#335EEA"/> |
| 30 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.2942 1.17329L8.23868 14.112L16.0129 23.601L23.2942 1.17329Z" fill="#BECCF9"/> |
| 31 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M54.4276 12.8764C54.4276 10.7582 52.94 9.55047 51.2709 9.55047C49.6019 9.55047 48.8399 10.8325 48.8399 10.8325V4.53369H46.6629V18.5807H48.8399V12.7835C48.8399 12.7835 49.4205 11.6315 50.5453 11.6315C51.4886 11.6315 52.2506 12.1703 52.2506 13.4338V18.5807H54.4276V12.8764ZM39.9463 18.5807V7.6924H36.4449V5.57421H45.6247V7.6924H42.1233V18.5807H39.9463ZM36.604 12.8392C36.604 10.8325 35.1527 9.55047 32.6854 9.55047C30.8894 9.55047 29.2929 10.3494 29.2929 10.3494L30.0004 12.1889C30.0004 12.1889 31.3248 11.5386 32.5766 11.5386C33.3385 11.5386 34.427 11.9102 34.427 13.0622V13.5639C34.427 13.5639 33.6107 12.9321 32.0323 12.9321C30.1637 12.9321 28.658 14.1585 28.658 15.8493C28.658 17.7259 30.1456 18.8036 31.7602 18.8036C33.7014 18.8036 34.5903 17.4658 34.5903 17.4658V18.5807H36.604V12.8392ZM34.427 15.9236C34.427 15.9236 33.7376 16.9456 32.4314 16.9456C31.7602 16.9456 30.8713 16.7412 30.8713 15.8121C30.8713 14.8645 31.7965 14.5672 32.4677 14.5672C33.6469 14.5672 34.427 15.0132 34.427 15.0132V15.9236ZM59.7836 9.55047C62.142 9.55047 64.1195 11.4271 64.1195 14.1399C64.1195 14.3071 64.1195 14.6416 64.1013 14.976H57.6791C57.8424 15.7564 58.7314 16.7598 60.092 16.7598C61.5978 16.7598 62.4504 15.8679 62.4504 15.8679L63.5389 17.5401C63.5389 17.5401 62.1783 18.8036 60.092 18.8036C57.4796 18.8036 55.4659 16.7598 55.4659 14.177C55.4659 11.5943 57.2982 9.55047 59.7836 9.55047ZM61.9425 13.3595H57.6792C57.7517 12.5791 58.3867 11.5758 59.7836 11.5758C61.2168 11.5758 61.9062 12.5977 61.9425 13.3595ZM72.3963 11.0926C72.3987 11.0875 73.1253 9.55047 75.1357 9.55047C76.8773 9.55047 78.1472 10.7954 78.1472 12.9136V18.5807H75.9702V13.4896C75.9702 12.2818 75.5167 11.6315 74.4282 11.6315C73.2852 11.6315 72.741 12.7649 72.741 12.7649V18.5807H70.564V13.4896C70.564 12.2818 70.1104 11.6315 69.0219 11.6315C67.879 11.6315 67.3347 12.7649 67.3347 12.7649V18.5807H65.1577V9.77343H67.1896V11.0555C67.1896 11.0555 67.9697 9.55047 69.7294 9.55047C71.7947 9.55047 72.3946 11.0884 72.3963 11.0926ZM87.8391 14.1399C87.8391 11.4271 85.8616 9.55047 83.5032 9.55047C81.0178 9.55047 79.1855 11.5943 79.1855 14.177C79.1855 16.7598 81.1992 18.8036 83.8116 18.8036C85.8979 18.8036 87.2585 17.5401 87.2585 17.5401L86.17 15.8679C86.17 15.8679 85.3174 16.7598 83.8116 16.7598C82.451 16.7598 81.562 15.7564 81.3988 14.976H87.8209C87.8391 14.6416 87.8391 14.3071 87.8391 14.1399ZM81.3988 13.3595H85.6621C85.6258 12.5977 84.9364 11.5758 83.5032 11.5758C82.1063 11.5758 81.4713 12.5791 81.3988 13.3595ZM89.5486 15.5892L88.3331 17.2057C88.3331 17.2057 89.6937 18.8036 92.2154 18.8036C94.4106 18.8036 95.9708 17.5959 95.9708 16.0909C95.9708 14.2699 94.7553 13.6939 93.0499 13.3223C91.5986 13.0065 91.0181 12.8764 91.0181 12.3376C91.0181 11.7987 91.7619 11.5014 92.5783 11.5014C93.7393 11.5014 94.719 12.2632 94.719 12.2632L95.8075 10.6281C95.8075 10.6281 94.5194 9.55047 92.5783 9.55047C90.2198 9.55047 88.8773 10.9254 88.8773 12.3004C88.8773 13.9727 90.365 14.7159 92.0703 15.0875C93.3765 15.3662 93.7756 15.4777 93.7756 16.0537C93.7756 16.5925 93.0318 16.8527 92.1429 16.8527C90.6915 16.8527 89.5486 15.5892 89.5486 15.5892Z" fill="#101517"/> |
| 32 |
</svg> |
| 33 |
</a> |
| 34 |
<div class="merchant-top-bar-infos"> |
| 35 |
<div class="merchant-top-bar-info-item"> |
| 36 |
<div class="merchant-version"> |
| 37 |
<strong><?php echo esc_html( ( defined( 'MERCHANT_PRO_VERSION' ) ? MERCHANT_PRO_VERSION : MERCHANT_VERSION ) ); ?></strong> |
| 38 |
<span class="merchant-badge<?php echo ( defined( 'MERCHANT_PRO_VERSION' ) ) ? ' merchant-badge-pro' : ''; ?>"> |
| 39 |
<?php echo esc_html( ( ! defined( 'MERCHANT_PRO_VERSION' ) ) ? __( 'FREE', 'merchant' ) : __( 'PRO', 'merchant' ) ); ?> |
| 40 |
</span> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<div class="merchant-top-bar-info-item"> |
| 44 |
<a href="#" class="merchant-notifications<?php echo esc_attr( ( $merchant_notification_read ) ? ' read' : '' ); ?>" title="<?php esc_html_e( 'Merchant News', 'merchant' ); ?>"> |
| 45 |
<span class="merchant-notifications-count">1</span> |
| 46 |
<svg width="13" height="11" viewBox="0 0 10 8" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 47 |
<path d="M8.86194 0.131242C8.75503 0.0584347 8.63276 0.0143876 8.50589 0.0029728C8.37902 -0.00844195 8.25143 0.0131252 8.13433 0.0657785L4.29726 1.65655C4.20642 1.69547 4.10927 1.71548 4.01119 1.71547H1.55473C1.34856 1.71547 1.15083 1.80168 1.00505 1.95514C0.859264 2.1086 0.777363 2.31674 0.777363 2.53377V2.59923H0V4.56315H0.777363V4.64825C0.782235 4.86185 0.866281 5.06498 1.01154 5.21422C1.1568 5.36346 1.35175 5.44697 1.55473 5.44691L2.48756 7.52866C2.55073 7.66885 2.65017 7.78744 2.77448 7.87081C2.89878 7.95418 3.04291 7.99896 3.1903 8H3.58209C3.78718 7.99827 3.98331 7.9113 4.12775 7.75802C4.27219 7.60475 4.35324 7.3976 4.35323 7.1817V5.52547L8.13433 7.11624C8.22733 7.1552 8.32652 7.17519 8.42662 7.17515C8.58191 7.17252 8.73314 7.12249 8.86194 7.03114C8.96423 6.95843 9.0486 6.86114 9.10808 6.7473C9.16755 6.63347 9.20043 6.50636 9.20398 6.3765V0.80552C9.20341 0.672312 9.17196 0.541263 9.11235 0.423757C9.05274 0.30625 8.96678 0.205839 8.86194 0.131242ZM3.57587 2.53377V4.64825H1.55473V2.53377H3.57587ZM3.57587 7.1817H3.18408L2.41915 5.44691H3.57587V7.1817ZM4.58333 4.74645C4.5095 4.70672 4.4325 4.67387 4.35323 4.64825V2.48794C4.43174 2.47089 4.50872 2.4468 4.58333 2.41593L8.42662 0.80552V6.35686L4.58333 4.74645ZM9.22264 2.76289V4.39949C9.42881 4.39949 9.62653 4.31327 9.77232 4.15981C9.9181 4.00635 10 3.79821 10 3.58119C10 3.36416 9.9181 3.15602 9.77232 3.00256C9.62653 2.8491 9.42881 2.76289 9.22264 2.76289Z" fill="#1E1E1E"/> |
| 48 |
</svg> |
| 49 |
</a> |
| 50 |
</div> |
| 51 |
<div class="merchant-top-bar-info-item"> |
| 52 |
<a href="https://athemes.com/merchant?utm_source=plugin_dashboard&utm_medium=merchant_dashboard&utm_campaign=Merchant" class="merchant-website" target="_blank"> |
| 53 |
<?php esc_html_e( 'Website', 'merchant' ); ?> |
| 54 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 55 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.6 2.40002H7.20002L8.00002 4.00002H11.264L6.39202 8.88002L7.52002 10.008L12 5.53602V8.00002L13.6 8.80002V2.40002ZM9.60002 9.60002V12H4.00002V6.40002H7.20002L8.80002 4.80002H2.40002V13.6H11.2V8.00002L9.60002 9.60002Z" fill="#3858E9"/> |
| 56 |
</svg> |
| 57 |
</a> |
| 58 |
</div> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
|
| 62 |
<div class="merchant-notifications-sidebar"> |
| 63 |
<a href="#" class="merchant-notifications-sidebar-close" title="<?php echo esc_attr__( 'Close the sidebar', 'merchant' ); ?>"> |
| 64 |
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 65 |
<path d="M13.4584 4.54038L12.4597 3.54163L8.50008 7.50121L4.5405 3.54163L3.54175 4.54038L7.50133 8.49996L3.54175 12.4595L4.5405 13.4583L8.50008 9.49871L12.4597 13.4583L13.4584 12.4595L9.49883 8.49996L13.4584 4.54038Z" fill="black"/> |
| 66 |
</svg> |
| 67 |
</a> |
| 68 |
<div class="merchant-notifications-sidebar-inner"> |
| 69 |
<div class="merchant-notifications-sidebar-header"> |
| 70 |
<div class="merchant-notifications-sidebar-header-icon"> |
| 71 |
<svg width="26" height="25" viewBox="0 0 26 25" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 72 |
<path d="M11.9441 20.5818C12.3228 20.8497 12.7752 20.9936 13.2391 20.9937L11.9441 20.5818ZM11.9441 20.5818C11.6044 20.3416 11.3391 20.0122 11.1764 19.6313M11.9441 20.5818L11.1764 19.6313M11.1764 19.6313H15.3018C15.1392 20.0122 14.8738 20.3416 14.5341 20.5818C14.1554 20.8497 13.703 20.9936 13.2391 20.9937L11.1764 19.6313ZM5.42653 19.6313H5.4266H9.33118C9.5281 20.5037 10.0116 21.2861 10.7057 21.8526C11.4209 22.4365 12.3158 22.7554 13.2391 22.7554C14.1624 22.7554 15.0573 22.4365 15.7725 21.8526C16.4666 21.2861 16.9501 20.5037 17.147 19.6313H21.0516H21.0517C21.344 19.6309 21.631 19.5534 21.8838 19.4068C22.1366 19.2601 22.3462 19.0494 22.4916 18.7959C22.637 18.5424 22.713 18.255 22.712 17.9628C22.7109 17.6705 22.6329 17.3837 22.4856 17.1313C21.9553 16.2176 21.1516 13.5951 21.1516 10.1562C21.1516 8.05772 20.318 6.04515 18.8341 4.56127C17.3502 3.07739 15.3376 2.24375 13.2391 2.24375C11.1406 2.24375 9.128 3.07739 7.64412 4.56127C6.16024 6.04515 5.3266 8.05772 5.3266 10.1562C5.3266 13.5963 4.52185 16.2179 3.99149 17.1314L4.07797 17.1816L3.99158 17.1313C3.84432 17.3838 3.76625 17.6707 3.76524 17.963C3.76424 18.2554 3.84034 18.5428 3.98587 18.7964C4.1314 19.0499 4.34121 19.2606 4.59414 19.4072C4.84708 19.5537 5.13419 19.631 5.42653 19.6313ZM5.59668 17.8687C6.33498 16.4852 7.0891 13.5615 7.0891 10.1562C7.0891 8.52517 7.73705 6.96089 8.8904 5.80754C10.0437 4.65419 11.608 4.00625 13.2391 4.00625C14.8702 4.00625 16.4345 4.65419 17.5878 5.80754C18.7412 6.96089 19.3891 8.52517 19.3891 10.1562C19.3891 13.5589 20.1415 16.4827 20.8815 17.8687H5.59668Z" fill="#3858E9" stroke="#3858E9" stroke-width="0.2"/> |
| 73 |
</svg> |
| 74 |
</div> |
| 75 |
<div class="merchant-notifications-sidebar-header-content"> |
| 76 |
<h3> |
| 77 |
<?php |
| 78 |
if ( ! empty( $merchant_notification_read ) ) { |
| 79 |
esc_html_e( 'Latest News', 'merchant' ); |
| 80 |
} else { |
| 81 |
esc_html_e( 'New Update', 'merchant' ); |
| 82 |
} |
| 83 |
?> |
| 84 |
</h3> |
| 85 |
<p><?php echo esc_html__( 'Check the latest news from Merchant', 'merchant' ); ?></p> |
| 86 |
</div> |
| 87 |
</div> |
| 88 |
<?php if ( $merchant_notification_tabs ) : ?> |
| 89 |
<div class="merchant-notifications-sidebar-tabs"> |
| 90 |
<nav class="merchant-tabs-nav merchant-tabs-nav-no-negative-margin" data-tab-wrapper-id="notifications-sidebar"> |
| 91 |
<ul> |
| 92 |
<li class="merchant-tabs-nav-item active"> |
| 93 |
<a href="#" class="merchant-tabs-nav-link" data-tab-to="notifications-sidebar-merchant"> |
| 94 |
<?php echo esc_html__( 'Merchant', 'merchant' ); ?> |
| 95 |
</a> |
| 96 |
</li> |
| 97 |
<li class="merchant-tabs-nav-item"> |
| 98 |
<a href="#" class="merchant-tabs-nav-link" data-tab-to="notifications-sidebar-merchant-pro"> |
| 99 |
<?php echo esc_html__( 'Merchant Pro', 'merchant' ); ?> |
| 100 |
</a> |
| 101 |
</li> |
| 102 |
</ul> |
| 103 |
</nav> |
| 104 |
</div> |
| 105 |
<?php endif; ?> |
| 106 |
<div class="merchant-notifications-sidebar-body merchant-tab-content-wrapper" data-tab-wrapper-id="notifications-sidebar"> |
| 107 |
<div class="merchant-tab-content active" data-tab-content-id="notifications-sidebar-merchant"> |
| 108 |
<?php if ( ! empty( $merchant_notifications ) ) : ?> |
| 109 |
<?php $merchant_display_version = false; ?> |
| 110 |
<?php foreach ( $merchant_notifications as $merchant_notification ) : ?> |
| 111 |
<?php $merchant_date = isset( $merchant_notification->post_date ) ? $merchant_notification->post_date : false; ?> |
| 112 |
<?php $merchant_version = isset( $merchant_notification->post_title ) ? $merchant_notification->post_title : false; ?> |
| 113 |
<?php $merchant_content = isset( $merchant_notification->post_content ) ? $merchant_notification->post_content : false; ?> |
| 114 |
<div class="merchant-notification"> |
| 115 |
<?php if ( $merchant_date ) : ?> |
| 116 |
<span class="merchant-notification-date" data-raw-date="<?php echo esc_attr( $merchant_date ); ?>"> |
| 117 |
<?php echo esc_html( date_format( date_create( $merchant_date ), 'F j, Y' ) ); ?> |
| 118 |
<?php if ( $merchant_display_version ) : ?> |
| 119 |
<span class="merchant-notification-version">(<?php echo esc_html( $merchant_version ); ?>)</span> |
| 120 |
<?php endif; ?> |
| 121 |
</span> |
| 122 |
<?php endif; ?> |
| 123 |
<?php if ( $merchant_content ) : ?> |
| 124 |
<div class="merchant-notification-content"> |
| 125 |
<?php echo wp_kses_post( $merchant_content ); ?> |
| 126 |
</div> |
| 127 |
<?php endif; ?> |
| 128 |
</div> |
| 129 |
<?php $merchant_display_version = true; ?> |
| 130 |
<?php endforeach; ?> |
| 131 |
<?php else : ?> |
| 132 |
<div class="merchant-notification"> |
| 133 |
<div class="merchant-notification-content"> |
| 134 |
<p class="changelog-description"><?php echo esc_html__( 'No notifications found', 'merchant' ); ?></p> |
| 135 |
</div> |
| 136 |
</div> |
| 137 |
<?php endif; ?> |
| 138 |
</div> |
| 139 |
|
| 140 |
<?php if ( $merchant_notification_tabs ) : ?> |
| 141 |
<div class="merchant-tab-content" data-tab-content-id="notifications-sidebar-merchant-pro"> |
| 142 |
<?php if ( ! empty( $merchant_notifications_pro ) ) : ?> |
| 143 |
<?php $merchant_display_version = false; ?> |
| 144 |
<?php foreach ( $merchant_notifications_pro as $merchant_notification ) : ?> |
| 145 |
<?php $merchant_date = isset( $merchant_notification->post_date ) ? $merchant_notification->post_date : false; ?> |
| 146 |
<?php $merchant_version = isset( $merchant_notification->post_title ) ? $merchant_notification->post_title : false; ?> |
| 147 |
<?php $merchant_content = isset( $merchant_notification->post_content ) ? $merchant_notification->post_content : false; ?> |
| 148 |
<div class="merchant-notification"> |
| 149 |
<?php if ( $merchant_date ) : ?> |
| 150 |
<span class="merchant-notification-date" data-raw-date="<?php echo esc_attr( $merchant_date ); ?>"> |
| 151 |
<?php echo esc_html( date_format( date_create( $merchant_date ), 'F j, Y' ) ); ?> |
| 152 |
<?php if ( $merchant_display_version ) : ?> |
| 153 |
<span class="merchant-notification-version">(<?php echo esc_html( $merchant_version ); ?>)</span> |
| 154 |
<?php endif; ?> |
| 155 |
</span> |
| 156 |
<?php endif; ?> |
| 157 |
<?php if ( $merchant_content ) : ?> |
| 158 |
<div class="merchant-notification-content"> |
| 159 |
<?php echo wp_kses_post( $merchant_content ); ?> |
| 160 |
</div> |
| 161 |
<?php endif; ?> |
| 162 |
</div> |
| 163 |
<?php $merchant_display_version = true; ?> |
| 164 |
<?php endforeach; ?> |
| 165 |
<?php else : ?> |
| 166 |
<div class="merchant-notification"> |
| 167 |
<div class="merchant-notification-content"> |
| 168 |
<p class="changelog-description"><?php echo esc_html__( 'No notifications found', 'merchant' ); ?></p> |
| 169 |
</div> |
| 170 |
</div> |
| 171 |
<?php endif; ?> |
| 172 |
</div> |
| 173 |
<?php endif; ?> |
| 174 |
</div> |
| 175 |
</div> |
| 176 |
</div> |
| 177 |
|
| 178 |
<div class="wrap merchant-wrap"> |
| 179 |
|
| 180 |
<?php if ( ! empty( $_GET['module'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> |
| 181 |
|
| 182 |
<?php require MERCHANT_DIR . 'admin/pages/page-module.php'; ?> |
| 183 |
|
| 184 |
<?php elseif ( ! empty( $_GET['section'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> |
| 185 |
|
| 186 |
<?php |
| 187 |
|
| 188 |
switch ( $_GET['section'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 189 |
|
| 190 |
case 'modules': |
| 191 |
require MERCHANT_DIR . 'admin/pages/page-modules.php'; |
| 192 |
break; |
| 193 |
|
| 194 |
case 'settings': |
| 195 |
require MERCHANT_DIR . 'admin/pages/page-settings.php'; |
| 196 |
break; |
| 197 |
|
| 198 |
} |
| 199 |
|
| 200 |
?> |
| 201 |
|
| 202 |
<?php else : ?> |
| 203 |
|
| 204 |
<?php |
| 205 |
$merchant_modules = Merchant_Admin_Modules::get_modules(); |
| 206 |
$merchant_modules = Merchant_Admin_Modules::add_upsell_modules( $merchant_modules ); |
| 207 |
?> |
| 208 |
|
| 209 |
<?php |
| 210 |
|
| 211 |
$merchant_active_modules = 0; |
| 212 |
$merchant_option_modules = get_option( 'merchant-modules', array() ); |
| 213 |
|
| 214 |
if ( ! empty( $merchant_modules ) ) { |
| 215 |
foreach ( $merchant_modules as $merchant_data ) { |
| 216 |
if ( ! empty( $merchant_data['modules'] ) ) { |
| 217 |
foreach ( $merchant_data['modules'] as $merchant_module_id => $merchant_module ) { |
| 218 |
if ( ! empty( $merchant_option_modules[ $merchant_module_id ] ) ) { |
| 219 |
++$merchant_active_modules; |
| 220 |
} |
| 221 |
} |
| 222 |
} |
| 223 |
} |
| 224 |
} |
| 225 |
|
| 226 |
?> |
| 227 |
|
| 228 |
<div class="merchant-modules-header"> |
| 229 |
|
| 230 |
<div class="merchant-modules-header-left"> |
| 231 |
|
| 232 |
<div class="merchant-modules-header-heading"><?php esc_html_e( 'Welcome To Merchant', 'merchant' ); ?> <img class="merchant-admin-hand-icon" src="<?php echo esc_url( MERCHANT_URI . '/assets/images/admin-hand-icon.png' ); ?>" alt="<?php echo esc_attr__( 'Welcome To Merchant', 'merchant' ); ?>" /></div> |
| 233 |
<div class="merchant-modules-header-subheading"><?php esc_html_e( 'We’re glad to see you :)', 'merchant' ); ?></div> |
| 234 |
<div class="merchant-modules-header-image"> |
| 235 |
<img src="<?php echo esc_url( MERCHANT_URI ); ?>assets/images/dashboard-hero.svg" alt="Merchant" /> |
| 236 |
</div> |
| 237 |
|
| 238 |
</div> |
| 239 |
|
| 240 |
<div class="merchant-modules-header-right"> |
| 241 |
|
| 242 |
<ul class="merchant-modules-header-shortlinks"> |
| 243 |
|
| 244 |
<li class="merchant-modules-header-shortlinks-modules-status"> |
| 245 |
<a href="<?php echo esc_url( add_query_arg( array( 'page' => 'merchant', 'section' => 'modules' ), 'admin.php' ) ); ?>"> |
| 246 |
|
| 247 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 248 |
<path d="M16.0909 7H7.90909C5.20091 7 3 9.24167 3 12C3 14.7583 5.20091 17 7.90909 17H16.0909C18.7991 17 21 14.7583 21 12C21 9.24167 18.7991 7 16.0909 7ZM16.0909 15.3333H7.90909C6.10091 15.3333 4.63636 13.8417 4.63636 12C4.63636 10.1583 6.10091 8.66667 7.90909 8.66667H16.0909C17.8991 8.66667 19.3636 10.1583 19.3636 12C19.3636 13.8417 17.8991 15.3333 16.0909 15.3333ZM16.0909 9.5C14.7327 9.5 13.6364 10.6167 13.6364 12C13.6364 13.3833 14.7327 14.5 16.0909 14.5C17.4491 14.5 18.5455 13.3833 18.5455 12C18.5455 10.6167 17.4491 9.5 16.0909 9.5Z" fill="#787C82"/> |
| 249 |
</svg> |
| 250 |
|
| 251 |
<?php /* translators: %s: active module count */ ?> |
| 252 |
<span><?php esc_html_e( 'You have', 'merchant' ); ?> <strong><?php echo esc_html( sprintf( _n( '%s module', '%s modules', $merchant_active_modules, 'merchant' ), $merchant_active_modules ) ); ?></strong> <?php esc_html_e( 'enabled', 'merchant' ); ?></span> |
| 253 |
|
| 254 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 255 |
<path d="M10.8626 8.04102L14.2809 12.0291L10.8626 16.0172L9.72363 15.041L12.3053 12.0291L9.72363 9.01721L10.8626 8.04102Z" fill="#757575"/> |
| 256 |
</svg> |
| 257 |
|
| 258 |
</a> |
| 259 |
</li> |
| 260 |
|
| 261 |
<li class="merchant-modules-header-shortlinks-get-help"> |
| 262 |
<a href="https://athemes.com/support/" target="_blank"> |
| 263 |
|
| 264 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 265 |
<path d="M11.96 16.8C12.24 16.8 12.4768 16.7032 12.6704 16.5096C12.8635 16.3165 12.96 16.08 12.96 15.8C12.96 15.52 12.8635 15.2835 12.6704 15.0904C12.4768 14.8968 12.24 14.8 11.96 14.8C11.68 14.8 11.4432 14.8968 11.2496 15.0904C11.0565 15.2835 10.96 15.52 10.96 15.8C10.96 16.08 11.0565 16.3165 11.2496 16.5096C11.4432 16.7032 11.68 16.8 11.96 16.8ZM12.08 8.56C12.4533 8.56 12.7533 8.6632 12.98 8.8696C13.2067 9.07653 13.32 9.34667 13.32 9.68C13.32 9.90667 13.2435 10.1365 13.0904 10.3696C12.9368 10.6032 12.72 10.8467 12.44 11.1C12.04 11.4467 11.7467 11.78 11.56 12.1C11.3733 12.42 11.28 12.74 11.28 13.06C11.28 13.2467 11.3501 13.4032 11.4904 13.5296C11.6301 13.6565 11.7933 13.72 11.98 13.72C12.1667 13.72 12.3333 13.6533 12.48 13.52C12.6267 13.3867 12.72 13.22 12.76 13.02C12.8 12.7933 12.8901 12.5835 13.0304 12.3904C13.1701 12.1968 13.4 11.9467 13.72 11.64C14.1333 11.2533 14.4235 10.9 14.5904 10.58C14.7568 10.26 14.84 9.90667 14.84 9.52C14.84 8.84 14.5835 8.2832 14.0704 7.8496C13.5568 7.41653 12.8933 7.2 12.08 7.2C11.52 7.2 11.0235 7.30667 10.5904 7.52C10.1568 7.73333 9.82 8.06 9.58 8.5C9.48667 8.67333 9.45333 8.8432 9.48 9.0096C9.50667 9.17653 9.6 9.31333 9.76 9.42C9.93333 9.52667 10.1235 9.56 10.3304 9.52C10.5368 9.48 10.7067 9.36667 10.84 9.18C10.9867 8.98 11.1635 8.82667 11.3704 8.72C11.5768 8.61333 11.8133 8.56 12.08 8.56ZM12 20C10.9067 20 9.87333 19.7899 8.9 19.3696C7.92667 18.9499 7.0768 18.38 6.3504 17.66C5.62347 16.94 5.05013 16.0933 4.6304 15.12C4.21013 14.1467 4 13.1067 4 12C4 10.8933 4.21013 9.85333 4.6304 8.88C5.05013 7.90667 5.62347 7.06 6.3504 6.34C7.0768 5.62 7.92667 5.04987 8.9 4.6296C9.87333 4.20987 10.9067 4 12 4C13.12 4 14.1667 4.20987 15.14 4.6296C16.1133 5.04987 16.96 5.62 17.68 6.34C18.4 7.06 18.9667 7.90667 19.38 8.88C19.7933 9.85333 20 10.8933 20 12C20 13.1067 19.7933 14.1467 19.38 15.12C18.9667 16.0933 18.4 16.94 17.68 17.66C16.96 18.38 16.1133 18.9499 15.14 19.3696C14.1667 19.7899 13.12 20 12 20ZM12 18.4C13.7867 18.4 15.3 17.7768 16.54 16.5304C17.78 15.2835 18.4 13.7733 18.4 12C18.4 10.2267 17.78 8.71653 16.54 7.4696C15.3 6.2232 13.7867 5.6 12 5.6C10.2533 5.6 8.74987 6.2232 7.4896 7.4696C6.22987 8.71653 5.6 10.2267 5.6 12C5.6 13.7733 6.22987 15.2835 7.4896 16.5304C8.74987 17.7768 10.2533 18.4 12 18.4Z" fill="#787C82"/> |
| 266 |
</svg> |
| 267 |
|
| 268 |
<span><?php esc_html_e( 'Get', 'merchant' ); ?> <strong><?php esc_html_e( 'help and support', 'merchant' ); ?></strong></span> |
| 269 |
|
| 270 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 271 |
<path d="M10.8626 8.04102L14.2809 12.0291L10.8626 16.0172L9.72363 15.041L12.3053 12.0291L9.72363 9.01721L10.8626 8.04102Z" fill="#757575"/> |
| 272 |
</svg> |
| 273 |
|
| 274 |
</a> |
| 275 |
</li> |
| 276 |
|
| 277 |
<li class="merchant-modules-header-shortlinks-settings"> |
| 278 |
<a href="<?php echo esc_url( add_query_arg( array( 'page' => 'merchant', 'section' => 'settings' ), 'admin.php' ) ); ?>"> |
| 279 |
|
| 280 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 281 |
<path d="M18.7744 12.9949C18.652 12.8581 18.5845 12.6822 18.5845 12.5C18.5845 12.3178 18.652 12.1419 18.7744 12.0051L19.7516 10.9252C19.8593 10.8072 19.9261 10.6588 19.9426 10.5012C19.959 10.3435 19.9242 10.1848 19.8432 10.0478L18.3164 7.45319C18.2362 7.31635 18.114 7.20788 17.9673 7.14324C17.8206 7.07861 17.6569 7.06111 17.4995 7.09324L16.0643 7.3782C15.8817 7.41526 15.6916 7.38539 15.5299 7.29421C15.3681 7.20303 15.246 7.05685 15.1864 6.88326L14.7208 5.51095C14.6695 5.362 14.572 5.23264 14.4418 5.14113C14.3117 5.04963 14.1556 5.00061 13.9955 5.00102H10.9419C10.7754 4.99248 10.6107 5.03771 10.4728 5.12979C10.335 5.22187 10.2316 5.35574 10.1785 5.51095L9.751 6.88326C9.69146 7.05685 9.56929 7.20303 9.40756 7.29421C9.24582 7.38539 9.05571 7.41526 8.87309 7.3782L7.39972 7.09324C7.25051 7.07252 7.0984 7.09565 6.96256 7.15971C6.82671 7.22376 6.71319 7.32588 6.63632 7.45319L5.10951 10.0478C5.02642 10.1833 4.98906 10.3411 5.00277 10.4987C5.01648 10.6563 5.08056 10.8056 5.18585 10.9252L6.15537 12.0051C6.27776 12.1419 6.34526 12.3178 6.34526 12.5C6.34526 12.6822 6.27776 12.8581 6.15537 12.9949L5.18585 14.0748C5.08056 14.1944 5.01648 14.3437 5.00277 14.5013C4.98906 14.6589 5.02642 14.8167 5.10951 14.9522L6.63632 17.5468C6.71655 17.6837 6.83871 17.7921 6.98538 17.8568C7.13206 17.9214 7.29576 17.9389 7.45316 17.9068L8.88836 17.6218C9.07098 17.5847 9.26109 17.6146 9.42282 17.7058C9.58456 17.797 9.70673 17.9431 9.76627 18.1167L10.2319 19.489C10.2851 19.6443 10.3884 19.7781 10.5263 19.8702C10.6641 19.9623 10.8289 20.0075 10.9953 19.999H14.049C14.209 19.9994 14.3651 19.9504 14.4953 19.8589C14.6254 19.7674 14.723 19.638 14.7742 19.489L15.2399 18.1167C15.2994 17.9431 15.4216 17.797 15.5833 17.7058C15.745 17.6146 15.9352 17.5847 16.1178 17.6218L17.553 17.9068C17.7104 17.9389 17.8741 17.9214 18.0208 17.8568C18.1674 17.7921 18.2896 17.6837 18.3698 17.5468L19.8966 14.9522C19.9777 14.8152 20.0125 14.6565 19.996 14.4988C19.9796 14.3412 19.9127 14.1928 19.805 14.0748L18.7744 12.9949ZM17.637 13.9998L18.2477 14.6747L17.2705 16.3395L16.3697 16.1595C15.8199 16.0491 15.2479 16.1408 14.7624 16.4173C14.2769 16.6938 13.9117 17.1357 13.736 17.6593L13.4459 18.4992H11.4916L11.2167 17.6443C11.041 17.1208 10.6758 16.6788 10.1903 16.4023C9.70476 16.1258 9.13281 16.0341 8.58299 16.1445L7.68218 16.3245L6.68976 14.6672L7.30048 13.9923C7.67604 13.5798 7.88367 13.0459 7.88367 12.4925C7.88367 11.9391 7.67604 11.4052 7.30048 10.9927L6.68976 10.3178L7.66691 8.66802L8.56773 8.848C9.11755 8.9584 9.68949 8.86665 10.175 8.59018C10.6605 8.31371 11.0258 7.87175 11.2015 7.3482L11.4916 6.50082H13.4459L13.736 7.3557C13.9117 7.87925 14.2769 8.32121 14.7624 8.59768C15.2479 8.87415 15.8199 8.9659 16.3697 8.8555L17.2705 8.67552L18.2477 10.3403L17.637 11.0152C17.2656 11.4267 17.0606 11.9576 17.0606 12.5075C17.0606 13.0574 17.2656 13.5883 17.637 13.9998ZM12.4687 9.50041C11.8648 9.50041 11.2744 9.67633 10.7722 10.0059C10.2701 10.3355 9.87867 10.804 9.64755 11.3521C9.41643 11.9002 9.35595 12.5033 9.47378 13.0852C9.5916 13.6671 9.88243 14.2015 10.3095 14.621C10.7365 15.0405 11.2806 15.3262 11.873 15.442C12.4653 15.5577 13.0793 15.4983 13.6373 15.2713C14.1953 15.0442 14.6722 14.6598 15.0077 14.1665C15.3432 13.6732 15.5223 13.0933 15.5223 12.5C15.5223 11.7045 15.2006 10.9415 14.6279 10.379C14.0553 9.81644 13.2786 9.50041 12.4687 9.50041ZM12.4687 13.9998C12.1667 13.9998 11.8716 13.9118 11.6205 13.747C11.3694 13.5822 11.1737 13.348 11.0581 13.0739C10.9426 12.7999 10.9123 12.4983 10.9712 12.2074C11.0302 11.9165 11.1756 11.6492 11.3891 11.4395C11.6026 11.2297 11.8747 11.0869 12.1709 11.029C12.467 10.9712 12.774 11.0009 13.053 11.1144C13.332 11.2279 13.5704 11.4201 13.7382 11.6668C13.906 11.9134 13.9955 12.2034 13.9955 12.5C13.9955 12.8978 13.8347 13.2792 13.5483 13.5605C13.262 13.8418 12.8737 13.9998 12.4687 13.9998Z" fill="#787C82"/> |
| 282 |
</svg> |
| 283 |
|
| 284 |
<span><?php esc_html_e( 'Manage your', 'merchant' ); ?> <strong><?php esc_html_e( 'Merchant settings', 'merchant' ); ?></strong></span> |
| 285 |
|
| 286 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 287 |
<path d="M10.8626 8.04102L14.2809 12.0291L10.8626 16.0172L9.72363 15.041L12.3053 12.0291L9.72363 9.01721L10.8626 8.04102Z" fill="#757575"/> |
| 288 |
</svg> |
| 289 |
|
| 290 |
</a> |
| 291 |
</li> |
| 292 |
|
| 293 |
<li class="merchant-modules-header-shortlinks-leave-review"> |
| 294 |
<a href="<?php echo esc_url( MERCHANT_REVIEW_URL ); ?>" title="<?php echo esc_attr__( 'Leave a review', 'merchant' ); ?>" target="_blank"> |
| 295 |
|
| 296 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 297 |
<path d="M12 7L13.2747 9.35645L16 9.73445L14 11.4545L14.6667 14L12 12.5682L9.33333 14L10 11.4545L8 9.73445L10.8 9.35645L12 7Z" fill="#787C82"/> |
| 298 |
<path d="M13.116 21L12 20.3846L14.5714 16.0769H18.4286C18.5975 16.0772 18.7648 16.0455 18.9209 15.9837C19.077 15.922 19.2188 15.8313 19.3383 15.717C19.4577 15.6026 19.5524 15.4669 19.6169 15.3174C19.6815 15.168 19.7145 15.0078 19.7143 14.8462V7.46154C19.7145 7.29984 19.6815 7.13969 19.6169 6.99026C19.5524 6.84082 19.4577 6.70505 19.3383 6.59071C19.2188 6.47638 19.077 6.38573 18.9209 6.32396C18.7648 6.2622 18.5975 6.23053 18.4286 6.23077H5.57143C5.40251 6.23053 5.23521 6.2622 5.07911 6.32396C4.923 6.38573 4.78117 6.47638 4.66173 6.59071C4.54228 6.70505 4.44759 6.84082 4.38307 6.99026C4.31854 7.13969 4.28546 7.29984 4.28571 7.46154V14.8462C4.28546 15.0078 4.31854 15.168 4.38307 15.3174C4.44759 15.4669 4.54228 15.6026 4.66173 15.717C4.78117 15.8313 4.923 15.922 5.07911 15.9837C5.23521 16.0455 5.40251 16.0772 5.57143 16.0769H11.3571V17.3077H5.57143C4.88944 17.3077 4.23539 17.0484 3.75315 16.5867C3.27092 16.1251 3 15.499 3 14.8462V7.46154C2.99992 7.13826 3.06637 6.81814 3.19557 6.51945C3.32476 6.22077 3.51417 5.94938 3.75297 5.72079C3.99176 5.4922 4.27527 5.31088 4.58729 5.18721C4.8993 5.06353 5.23372 4.99992 5.57143 5H18.4286C18.7663 4.99992 19.1007 5.06353 19.4127 5.18721C19.7247 5.31088 20.0082 5.4922 20.247 5.72079C20.4858 5.94938 20.6752 6.22077 20.8044 6.51945C20.9336 6.81814 21.0001 7.13826 21 7.46154V14.8462C21 15.499 20.7291 16.1251 20.2468 16.5867C19.7646 17.0484 19.1106 17.3077 18.4286 17.3077H15.3204L13.116 21Z" fill="#787C82"/> |
| 299 |
</svg> |
| 300 |
|
| 301 |
<span><?php esc_html_e( 'Leave a', 'merchant' ); ?> <strong><?php esc_html_e( 'review', 'merchant' ); ?></strong></span> |
| 302 |
|
| 303 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 304 |
<path d="M10.8626 8.04102L14.2809 12.0291L10.8626 16.0172L9.72363 15.041L12.3053 12.0291L9.72363 9.01721L10.8626 8.04102Z" fill="#757575"/> |
| 305 |
</svg> |
| 306 |
|
| 307 |
</a> |
| 308 |
</li> |
| 309 |
|
| 310 |
<li class="merchant-modules-header-shortlinks-feedback"> |
| 311 |
<a href="https://athemes.com/feature-request/" target="_blank"> |
| 312 |
|
| 313 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 314 |
<path d="M6.09407 4L5.18893 4.8922L6.53571 6.22098L7.43957 5.32878L6.09343 4H6.09407ZM17.9066 4L16.5598 5.32878L17.4643 6.22098L18.8104 4.89283L17.9066 4ZM12 4.39597C11.7879 4.39851 11.5731 4.41056 11.3571 4.43658C11.3507 4.43658 11.3443 4.43531 11.3379 4.43658C8.73043 4.73165 6.65529 6.81112 6.29464 9.3735C6.00664 11.4358 6.86807 13.3059 8.30357 14.5103C8.89076 15.005 9.28793 15.6838 9.42857 16.433V20.2404H10.8943C11.118 20.6193 11.5262 20.875 12 20.875C12.4738 20.875 12.882 20.6193 13.1057 20.2404H14.5714V17.7022H14.6319V16.9483C14.6319 16.018 15.1217 15.0801 15.9176 14.351C16.9821 13.2989 17.7857 11.8045 17.7857 10.088C17.7857 6.95327 15.1719 4.36678 12 4.39597ZM12 5.6651C14.4846 5.63083 16.5 7.6386 16.5 10.088C16.5 11.4168 15.8764 12.5869 15.0131 13.4385L15.0336 13.4588C14.1757 14.2398 13.6209 15.292 13.4651 16.4337H10.6532C10.5118 15.346 10.0393 14.2933 9.14636 13.5382C8.01043 12.5863 7.3335 11.1522 7.55979 9.53278C7.84071 7.5339 9.48386 5.92654 11.4973 5.70635C11.6635 5.68347 11.8309 5.66991 11.9987 5.66573L12 5.6651ZM3 10.088V11.3572H4.92857V10.088H3ZM19.0714 10.088V11.3572H21V10.088H19.0714ZM6.53571 15.2242L5.18957 16.5523L6.09407 17.4452L7.43893 16.1164L6.53571 15.2242ZM17.4643 15.2242L16.5604 16.1164L17.9059 17.4452L18.8104 16.5523L17.4643 15.2242ZM10.7143 17.7028H13.2857V18.9719H10.7143V17.7028Z" fill="#787C82"/> |
| 315 |
</svg> |
| 316 |
|
| 317 |
<span><?php esc_html_e( 'Have an', 'merchant' ); ?> <strong><?php esc_html_e( 'idea or feedback?', 'merchant' ); ?></strong></span> |
| 318 |
|
| 319 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 320 |
<path d="M10.8626 8.04102L14.2809 12.0291L10.8626 16.0172L9.72363 15.041L12.3053 12.0291L9.72363 9.01721L10.8626 8.04102Z" fill="#757575"/> |
| 321 |
</svg> |
| 322 |
|
| 323 |
</a> |
| 324 |
</li> |
| 325 |
|
| 326 |
</ul> |
| 327 |
|
| 328 |
</div> |
| 329 |
|
| 330 |
</div> |
| 331 |
|
| 332 |
<div class="merchant-modules-panel"> |
| 333 |
|
| 334 |
<?php if ( ! empty( $merchant_modules ) ) : ?> |
| 335 |
|
| 336 |
<?php foreach ( $merchant_modules as $merchant_data ) : ?> |
| 337 |
|
| 338 |
<div class="merchant-modules-box"> |
| 339 |
|
| 340 |
<div class="merchant-modules-box-heading"> |
| 341 |
<?php echo esc_html( $merchant_data['title'] ); ?> |
| 342 |
</div> |
| 343 |
|
| 344 |
<?php if ( ! empty( $merchant_data['modules'] ) ) : ?> |
| 345 |
|
| 346 |
<div class="merchant-modules-list"> |
| 347 |
|
| 348 |
<?php |
| 349 |
foreach ( $merchant_data['modules'] as $merchant_module_id => $merchant_module ) : |
| 350 |
$is_upsell = ! defined( 'MERCHANT_PRO_VERSION' ) && isset( $merchant_module['pro'] ) && true === $merchant_module['pro']; |
| 351 |
$module_link = add_query_arg( array( 'page' => 'merchant', 'module' => $merchant_module_id ), 'admin.php' ); |
| 352 |
$link_target = '_self'; |
| 353 |
|
| 354 |
/** |
| 355 |
* Hook 'merchant_admin_module_{module_id}_list_item_class' |
| 356 |
* |
| 357 |
* @since 1.0 |
| 358 |
*/ |
| 359 |
$module_list_item_class = apply_filters( "merchant_admin_module_{$merchant_module_id}_list_item_class", 'merchant-modules-list-item' ); |
| 360 |
$has_wc_required_class = strpos( $module_list_item_class, 'merchant-module-wc-only' ) !== FALSE ? true : false; |
| 361 |
$has_bp_deactivated_class = strpos( $module_list_item_class, 'merchant-module-deactivated-by-bp' ) !== FALSE ? true : false; |
| 362 |
|
| 363 |
if ( $has_wc_required_class ) { |
| 364 |
if ( isset( $merchant_module[ 'pro' ] ) && $merchant_module[ 'pro' ] === true ) { |
| 365 |
$module_link = 'https://athemes.com/merchant-upgrade?utm_source=plugin_dashboard&utm_medium=merchant_dashboard&utm_campaign=Merchant'; |
| 366 |
$link_target = '_blank'; |
| 367 |
} else { |
| 368 |
$module_link = '#'; |
| 369 |
} |
| 370 |
} |
| 371 |
|
| 372 |
?> |
| 373 |
|
| 374 |
<a href="<?php echo esc_url( $module_link ); ?>" class="<?php echo esc_attr( $module_list_item_class ) ?>" target="<?php echo esc_attr( $link_target ); ?>" data-module-id="<?php echo esc_attr( $merchant_module_id ); ?>"> |
| 375 |
<?php if( $has_bp_deactivated_class ) : ?> |
| 376 |
<div class="merchant-modules-list-item-badge-wrapper merchant-modules-list-item-removed-by-bp"> |
| 377 |
<span class="merchant-pro-badge merchant-pro-tooltip" data-tooltip-message="<?php echo esc_attr__( 'Botiga module is taking precedence', 'merchant' ); ?>"> |
| 378 |
<?php echo esc_html__( 'In use', 'merchant' ); ?> |
| 379 |
</span> |
| 380 |
</div> |
| 381 |
<?php endif; ?> |
| 382 |
<?php if( $has_wc_required_class ) : ?> |
| 383 |
<div class="merchant-modules-list-item-badge-wrapper merchant-modules-list-item-woo-required"> |
| 384 |
<span class="merchant-pro-badge merchant-pro-tooltip" data-tooltip-message="<?php echo esc_attr__( 'The WooCommerce plugin is required for this option', 'merchant' ); ?>"> |
| 385 |
<?php echo esc_html__( 'WOO', 'merchant' ); ?> |
| 386 |
</span> |
| 387 |
</div> |
| 388 |
<?php endif; ?> |
| 389 |
<?php if( $is_upsell ) : ?> |
| 390 |
<div class="merchant-modules-list-item-badge-wrapper merchant-modules-list-item-upsell"> |
| 391 |
<span class="merchant-pro-badge merchant-pro-tooltip" data-tooltip-message="<?php echo esc_attr__( 'This option is only available on Merchant Pro', 'merchant' ); ?>"> |
| 392 |
<svg width="28" height="16" viewBox="0 0 28 16" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 393 |
<path d="M7.41309 8.90723H5.58203V7.85254H7.41309C7.71257 7.85254 7.95508 7.80371 8.14062 7.70605C8.32943 7.60514 8.46777 7.46842 8.55566 7.2959C8.64355 7.12012 8.6875 6.91992 8.6875 6.69531C8.6875 6.47721 8.64355 6.27376 8.55566 6.08496C8.46777 5.89616 8.32943 5.74316 8.14062 5.62598C7.95508 5.50879 7.71257 5.4502 7.41309 5.4502H6.02148V11.5H4.67871V4.39062H7.41309C7.96647 4.39062 8.43848 4.48991 8.8291 4.68848C9.22298 4.88379 9.52246 5.1556 9.72754 5.50391C9.93587 5.84896 10.04 6.24284 10.04 6.68555C10.04 7.14453 9.93587 7.54004 9.72754 7.87207C9.52246 8.2041 9.22298 8.45964 8.8291 8.63867C8.43848 8.81771 7.96647 8.90723 7.41309 8.90723ZM11.0947 4.39062H13.6777C14.2181 4.39062 14.682 4.47201 15.0693 4.63477C15.4567 4.79753 15.7546 5.03841 15.9629 5.35742C16.1712 5.67643 16.2754 6.06868 16.2754 6.53418C16.2754 6.90202 16.2103 7.22103 16.0801 7.49121C15.9499 7.76139 15.766 7.98763 15.5283 8.16992C15.2939 8.35221 15.0173 8.49544 14.6982 8.59961L14.2783 8.81445H11.998L11.9883 7.75488H13.6924C13.9691 7.75488 14.1986 7.70605 14.3809 7.6084C14.5632 7.51074 14.6999 7.37565 14.791 7.20312C14.8854 7.0306 14.9326 6.83366 14.9326 6.6123C14.9326 6.37467 14.887 6.1696 14.7959 5.99707C14.7048 5.82129 14.5664 5.6862 14.3809 5.5918C14.1953 5.4974 13.9609 5.4502 13.6777 5.4502H12.4375V11.5H11.0947V4.39062ZM15.1084 11.5L13.4629 8.31641L14.8838 8.31152L16.5488 11.4316V11.5H15.1084ZM23.209 7.76465V8.13086C23.209 8.66797 23.1374 9.15137 22.9941 9.58105C22.8509 10.0075 22.6475 10.3704 22.3838 10.6699C22.1201 10.9694 21.806 11.1989 21.4414 11.3584C21.0768 11.5179 20.6715 11.5977 20.2256 11.5977C19.7861 11.5977 19.3825 11.5179 19.0146 11.3584C18.6501 11.1989 18.3343 10.9694 18.0674 10.6699C17.8005 10.3704 17.5938 10.0075 17.4473 9.58105C17.3008 9.15137 17.2275 8.66797 17.2275 8.13086V7.76465C17.2275 7.22428 17.3008 6.74089 17.4473 6.31445C17.5938 5.88802 17.7988 5.52507 18.0625 5.22559C18.3262 4.92285 18.6403 4.69173 19.0049 4.53223C19.3727 4.37272 19.7764 4.29297 20.2158 4.29297C20.6618 4.29297 21.0671 4.37272 21.4316 4.53223C21.7962 4.69173 22.1104 4.92285 22.374 5.22559C22.641 5.52507 22.846 5.88802 22.9893 6.31445C23.1357 6.74089 23.209 7.22428 23.209 7.76465ZM21.8516 8.13086V7.75488C21.8516 7.36751 21.8158 7.02734 21.7441 6.73438C21.6725 6.43815 21.5667 6.18913 21.4268 5.9873C21.2868 5.78548 21.1143 5.63411 20.9092 5.5332C20.7041 5.42904 20.473 5.37695 20.2158 5.37695C19.9554 5.37695 19.7243 5.42904 19.5225 5.5332C19.3239 5.63411 19.1546 5.78548 19.0146 5.9873C18.8747 6.18913 18.7673 6.43815 18.6924 6.73438C18.6208 7.02734 18.585 7.36751 18.585 7.75488V8.13086C18.585 8.51497 18.6208 8.85514 18.6924 9.15137C18.7673 9.44759 18.8747 9.69824 19.0146 9.90332C19.1579 10.1051 19.3304 10.2581 19.5322 10.3623C19.734 10.4665 19.9652 10.5186 20.2256 10.5186C20.486 10.5186 20.7171 10.4665 20.9189 10.3623C21.1208 10.2581 21.29 10.1051 21.4268 9.90332C21.5667 9.69824 21.6725 9.44759 21.7441 9.15137C21.8158 8.85514 21.8516 8.51497 21.8516 8.13086Z" fill="#3858E9"/> |
| 394 |
<rect x="0.5" y="1" width="27" height="14" rx="1.5" stroke="#3858E9"/> |
| 395 |
</svg> |
| 396 |
</span> |
| 397 |
</div> |
| 398 |
<?php endif; ?> |
| 399 |
|
| 400 |
<div class="merchant-modules-list-item-icon"> |
| 401 |
<?php if ( ! empty( $merchant_module['icon'] ) ) : ?> |
| 402 |
<?php echo wp_kses( $merchant_module['icon'], merchant_kses_allowed_tags( array(), false ) ); ?> |
| 403 |
<?php else : ?> |
| 404 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 405 |
<path d="M18.7744 12.9949C18.652 12.8581 18.5845 12.6822 18.5845 12.5C18.5845 12.3178 18.652 12.1419 18.7744 12.0051L19.7516 10.9252C19.8593 10.8072 19.9261 10.6588 19.9426 10.5012C19.959 10.3435 19.9242 10.1848 19.8432 10.0478L18.3164 7.45319C18.2362 7.31635 18.114 7.20788 17.9673 7.14324C17.8206 7.07861 17.6569 7.06111 17.4995 7.09324L16.0643 7.3782C15.8817 7.41526 15.6916 7.38539 15.5299 7.29421C15.3681 7.20303 15.246 7.05685 15.1864 6.88326L14.7208 5.51095C14.6695 5.362 14.572 5.23264 14.4418 5.14113C14.3117 5.04963 14.1556 5.00061 13.9955 5.00102H10.9419C10.7754 4.99248 10.6107 5.03771 10.4728 5.12979C10.335 5.22187 10.2316 5.35574 10.1785 5.51095L9.751 6.88326C9.69146 7.05685 9.56929 7.20303 9.40756 7.29421C9.24582 7.38539 9.05571 7.41526 8.87309 7.3782L7.39972 7.09324C7.25051 7.07252 7.0984 7.09565 6.96256 7.15971C6.82671 7.22376 6.71319 7.32588 6.63632 7.45319L5.10951 10.0478C5.02642 10.1833 4.98906 10.3411 5.00277 10.4987C5.01648 10.6563 5.08056 10.8056 5.18585 10.9252L6.15537 12.0051C6.27776 12.1419 6.34526 12.3178 6.34526 12.5C6.34526 12.6822 6.27776 12.8581 6.15537 12.9949L5.18585 14.0748C5.08056 14.1944 5.01648 14.3437 5.00277 14.5013C4.98906 14.6589 5.02642 14.8167 5.10951 14.9522L6.63632 17.5468C6.71655 17.6837 6.83871 17.7921 6.98538 17.8568C7.13206 17.9214 7.29576 17.9389 7.45316 17.9068L8.88836 17.6218C9.07098 17.5847 9.26109 17.6146 9.42282 17.7058C9.58456 17.797 9.70673 17.9431 9.76627 18.1167L10.2319 19.489C10.2851 19.6443 10.3884 19.7781 10.5263 19.8702C10.6641 19.9623 10.8289 20.0075 10.9953 19.999H14.049C14.209 19.9994 14.3651 19.9504 14.4953 19.8589C14.6254 19.7674 14.723 19.638 14.7742 19.489L15.2399 18.1167C15.2994 17.9431 15.4216 17.797 15.5833 17.7058C15.745 17.6146 15.9352 17.5847 16.1178 17.6218L17.553 17.9068C17.7104 17.9389 17.8741 17.9214 18.0208 17.8568C18.1674 17.7921 18.2896 17.6837 18.3698 17.5468L19.8966 14.9522C19.9777 14.8152 20.0125 14.6565 19.996 14.4988C19.9796 14.3412 19.9127 14.1928 19.805 14.0748L18.7744 12.9949ZM17.637 13.9998L18.2477 14.6747L17.2705 16.3395L16.3697 16.1595C15.8199 16.0491 15.2479 16.1408 14.7624 16.4173C14.2769 16.6938 13.9117 17.1357 13.736 17.6593L13.4459 18.4992H11.4916L11.2167 17.6443C11.041 17.1208 10.6758 16.6788 10.1903 16.4023C9.70476 16.1258 9.13281 16.0341 8.58299 16.1445L7.68218 16.3245L6.68976 14.6672L7.30048 13.9923C7.67604 13.5798 7.88367 13.0459 7.88367 12.4925C7.88367 11.9391 7.67604 11.4052 7.30048 10.9927L6.68976 10.3178L7.66691 8.66802L8.56773 8.848C9.11755 8.9584 9.68949 8.86665 10.175 8.59018C10.6605 8.31371 11.0258 7.87175 11.2015 7.3482L11.4916 6.50082H13.4459L13.736 7.3557C13.9117 7.87925 14.2769 8.32121 14.7624 8.59768C15.2479 8.87415 15.8199 8.9659 16.3697 8.8555L17.2705 8.67552L18.2477 10.3403L17.637 11.0152C17.2656 11.4267 17.0606 11.9576 17.0606 12.5075C17.0606 13.0574 17.2656 13.5883 17.637 13.9998ZM12.4687 9.50041C11.8648 9.50041 11.2744 9.67633 10.7722 10.0059C10.2701 10.3355 9.87867 10.804 9.64755 11.3521C9.41643 11.9002 9.35595 12.5033 9.47378 13.0852C9.5916 13.6671 9.88243 14.2015 10.3095 14.621C10.7365 15.0405 11.2806 15.3262 11.873 15.442C12.4653 15.5577 13.0793 15.4983 13.6373 15.2713C14.1953 15.0442 14.6722 14.6598 15.0077 14.1665C15.3432 13.6732 15.5223 13.0933 15.5223 12.5C15.5223 11.7045 15.2006 10.9415 14.6279 10.379C14.0553 9.81644 13.2786 9.50041 12.4687 9.50041ZM12.4687 13.9998C12.1667 13.9998 11.8716 13.9118 11.6205 13.747C11.3694 13.5822 11.1737 13.348 11.0581 13.0739C10.9426 12.7999 10.9123 12.4983 10.9712 12.2074C11.0302 11.9165 11.1756 11.6492 11.3891 11.4395C11.6026 11.2297 11.8747 11.0869 12.1709 11.029C12.467 10.9712 12.774 11.0009 13.053 11.1144C13.332 11.2279 13.5704 11.4201 13.7382 11.6668C13.906 11.9134 13.9955 12.2034 13.9955 12.5C13.9955 12.8978 13.8347 13.2792 13.5483 13.5605C13.262 13.8418 12.8737 13.9998 12.4687 13.9998Z" fill="#787C82"/> |
| 406 |
</svg> |
| 407 |
<?php endif; ?> |
| 408 |
</div> |
| 409 |
|
| 410 |
<div class="merchant-modules-list-item-content"> |
| 411 |
<div class="merchant-modules-list-item-title"> |
| 412 |
|
| 413 |
<?php echo esc_html( $merchant_module['title'] ); ?> |
| 414 |
|
| 415 |
<?php if ( Merchant_Modules::is_module_active( $merchant_module_id ) && ! $is_upsell ) : ?> |
| 416 |
<i class="merchant-modules-indicator"></i> |
| 417 |
<?php endif; ?> |
| 418 |
|
| 419 |
</div> |
| 420 |
|
| 421 |
<?php if ( ! empty( $merchant_module['desc'] ) ) : ?> |
| 422 |
<div class="merchant-modules-list-item-desc"><?php echo esc_html( $merchant_module['desc'] ); ?></div> |
| 423 |
<?php endif; ?> |
| 424 |
|
| 425 |
</div> |
| 426 |
|
| 427 |
</a> |
| 428 |
|
| 429 |
<?php endforeach; ?> |
| 430 |
|
| 431 |
</div> |
| 432 |
|
| 433 |
<?php endif; ?> |
| 434 |
|
| 435 |
</div> |
| 436 |
|
| 437 |
<?php endforeach; ?> |
| 438 |
|
| 439 |
<?php endif; ?> |
| 440 |
|
| 441 |
</div> |
| 442 |
|
| 443 |
<?php endif; ?> |
| 444 |
|
| 445 |
</div> |
| 446 |
|