alert-coming-soon.php
9 months ago
alert-pro.php
9 months ago
feature-notice.php
1 month ago
footer.php
1 year ago
logo.php
8 months ago
sidebar.php
1 month ago
toast-message.php
9 months ago
sidebar.php
152 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Side of the settings page |
| 4 | * all undefined vars like $template etc come from the main template |
| 5 | * */ |
| 6 | ?> |
| 7 | |
| 8 | <div class="embedpress-sidebar-wrapper"> |
| 9 | <!-- <div class="sticky-sibling"></div> --> |
| 10 | <div class="embedpress-sidebar"> |
| 11 | <a href="#" class="sidebar__toggler"><i class="ep-icon ep-bar"></i></a> |
| 12 | <ul class="sidebar__menu"> |
| 13 | |
| 14 | <?php do_action('ep_before_element_menu'); ?> |
| 15 | <li class="sidebar__item hub-item <?php echo 'hub' === $template ? 'show' : ''; ?>"> |
| 16 | <?php do_action('ep_before_element_item'); ?> |
| 17 | <a href="<?php echo esc_url($ep_page . '&page_type=hub'); ?>" class="sidebar__link general <?php echo 'hub' === $template ? 'active' : ''; ?>"><span> |
| 18 | <!-- <i class="ep-icon ep-gear"></i> --> |
| 19 | <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 20 | <path d="M7 15h6m2 4H5a4 4 0 0 1-4-4V8.708a4 4 0 0 1 1.927-3.42l5-3.03a4 4 0 0 1 4.146 0l5 3.03A4 4 0 0 1 19 8.707V15a4 4 0 0 1-4 4" stroke="#988FBD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> |
| 21 | </svg> |
| 22 | </span> <?php esc_html_e("Hub", "embedpress"); ?></a> |
| 23 | <?php do_action('ep_after_element_item'); ?> |
| 24 | </li> |
| 25 | <li class="sidebar__item settings-item <?php echo 'settings' === $template ? 'show' : ''; ?>"> |
| 26 | <?php do_action('ep_before_element_item'); ?> |
| 27 | <a href="<?php echo esc_url($ep_page . '&page_type=settings'); ?>" class="sidebar__link general <?php echo 'settings' === $template ? 'active' : ''; ?>"><span> |
| 28 | <!-- <i class="ep-icon ep-gear"></i> --> |
| 29 | |
| 30 | |
| 31 | <svg xmlns="http://www.w3.org/2000/svg" height="24" style="height: 24px" viewBox="0 -960 960 960" width="24" fill="#9790BA"> |
| 32 | <path d="m387.69-100-15.23-121.85q-16.07-5.38-32.96-15.07-16.88-9.7-30.19-20.77L196.46-210l-92.3-160 97.61-73.77q-1.38-8.92-1.96-17.92t-.58-17.93q0-8.53.58-17.34t1.96-19.27L104.16-590l92.3-159.23 112.46 47.31q14.47-11.46 30.89-20.96t32.27-15.27L387.69-860h184.62l15.23 122.23q18 6.54 32.57 15.27 14.58 8.73 29.43 20.58l114-47.31L855.84-590l-99.15 74.92q2.15 9.69 2.35 18.12.19 8.42.19 16.96 0 8.15-.39 16.58-.38 8.42-2.76 19.27L854.46-370l-92.31 160-112.61-48.08q-14.85 11.85-30.31 20.96-15.46 9.12-31.69 14.89L572.31-100zM440-160h78.62L533-267.15q30.62-8 55.96-22.73 25.35-14.74 48.89-37.89L737.23-286l39.39-68-86.77-65.38q5-15.54 6.8-30.47 1.81-14.92 1.81-30.15 0-15.62-1.81-30.15-1.8-14.54-6.8-29.7L777.38-606 738-674l-100.54 42.38q-20.08-21.46-48.11-37.92-28.04-16.46-56.73-23.31L520-800h-79.38l-13.24 106.77q-30.61 7.23-56.53 22.15-25.93 14.93-49.47 38.46L222-674l-39.38 68L269-541.62q-5 14.24-7 29.62t-2 32.38q0 15.62 2 30.62t6.62 29.62l-86 65.38L222-286l99-42q22.77 23.38 48.69 38.31 25.93 14.92 57.31 22.92zm40.46-200q49.92 0 84.96-35.04T600.46-480t-35.04-84.96T480.46-600q-50.54 0-85.27 35.04T360.46-480t34.73 84.96T480.46-360M480-480" /> |
| 33 | </svg> |
| 34 | |
| 35 | </span> <?php esc_html_e("Settings", "embedpress"); ?></a> |
| 36 | <?php do_action('ep_after_element_item'); ?> |
| 37 | </li> |
| 38 | <li class="sidebar__item shortcode-item <?php echo 'shortcode' === $template ? 'show' : ''; ?>"> |
| 39 | <?php do_action('ep_before_element_item'); ?> |
| 40 | <a href="<?php echo esc_url($ep_page . '&page_type=shortcode'); ?>" class="sidebar__link shortcode <?php echo 'shortcode' === $template ? 'active' : ''; ?>"><span> |
| 41 | <svg width="20" height="18" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 42 | <path d="M5.19844 13.8001H2.79844V4.2001H5.19844V1.8001H0.398438V16.2001H5.19844V13.8001ZM6.51844 17.4001H9.03844L13.4784 0.600098H10.9584L6.51844 17.4001ZM14.7984 1.8001V4.2001H17.1984V13.8001H14.7984V16.2001H19.5984V1.8001H14.7984Z" fill="#988FBD" /> |
| 43 | </svg> |
| 44 | |
| 45 | </span> <?php esc_html_e("Shortcode", "embedpress"); ?></a> |
| 46 | <?php do_action('ep_after_element_item'); ?> |
| 47 | </li> |
| 48 | <li class="sidebar__item sources-item <?php echo 'sources' === $template ? 'show' : ''; ?>"> |
| 49 | <?php do_action('ep_before_element_item'); ?> |
| 50 | <a href="<?php echo esc_url($ep_page . '&page_type=sources'); ?>" class="sidebar__link sources <?php echo 'sources' === $template ? 'active' : ''; ?>"><span> |
| 51 | |
| 52 | |
| 53 | <svg width="16" height="20" viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 54 | <path d="M9 12c-3.36 0-4.46 1.35-4.82 2.24A3.002 3.002 0 0 1 3 20a3 3 0 0 1-3-3c0-1.31.83-2.42 2-2.83V5.83A2.99 2.99 0 0 1 0 3a3 3 0 0 1 6 0c0 1.31-.83 2.42-2 2.83v5.29C4.88 10.47 6.16 10 8 10c2.67 0 3.56-1.34 3.85-2.23A3.005 3.005 0 0 1 10 5a3 3 0 0 1 6 0c0 1.34-.88 2.5-2.09 2.86C13.65 9.29 12.68 12 9 12m-6 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2M3 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2m10 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2" fill="#988FBD" /> |
| 55 | </svg> |
| 56 | |
| 57 | </span> <?php esc_html_e("Sources", "embedpress"); ?></a> |
| 58 | <div class="tab-button-section"> |
| 59 | <ul class="source-tab"> |
| 60 | <!-- <li class="tab-button active" data-tab="all"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/code.svg'); ?>" alt=""> <?php echo esc_html__('All', 'embedpress'); ?></li> --> |
| 61 | <li class="tab-button" data-tab="audio"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/audio.svg'); ?>" alt=""><?php echo esc_html__('Audio', 'embedpress'); ?></li> |
| 62 | <li class="tab-button" data-tab="video"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/video.svg'); ?>" alt=""><?php echo esc_html__('Video', 'embedpress'); ?></li> |
| 63 | <li class="tab-button" data-tab="image"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/image.svg'); ?>" alt=""><?php echo esc_html__('Image', 'embedpress'); ?></li> |
| 64 | <li class="tab-button" data-tab="pdf"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/pdf.svg'); ?>" alt=""><?php echo esc_html__('PDF & Docs', 'embedpress'); ?></li> |
| 65 | <li class="tab-button" data-tab="social"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/social.svg'); ?>" alt=""><?php echo esc_html__('Social', 'embedpress'); ?></li> |
| 66 | <li class="tab-button" data-tab="google"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/google.svg'); ?>" alt=""><?php echo esc_html__('Google Sources', 'embedpress'); ?></li> |
| 67 | <li class="tab-button" data-tab="microsoft"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/ms.svg'); ?>" alt=""><?php echo esc_html__('Microsoft Sources', 'embedpress'); ?></li> |
| 68 | <li class="tab-button" data-tab="stream"><img class="source-image" src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/sources/stream.svg'); ?>" alt=""><?php echo esc_html__('Live Stream', 'embedpress'); ?></li> |
| 69 | </ul> |
| 70 | |
| 71 | |
| 72 | </div> |
| 73 | <?php do_action('ep_after_element_item'); ?> |
| 74 | </li> |
| 75 | <li class="sidebar__item elements-item <?php echo 'elements' === $template ? 'show' : ''; ?>"> |
| 76 | <?php do_action('ep_before_element_item'); ?> |
| 77 | <a href="<?php echo esc_url($ep_page . '&page_type=elements'); ?>" class="sidebar__link elements <?php echo 'elements' === $template ? 'active' : ''; ?>"><span> |
| 78 | |
| 79 | <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 80 | <path d="M9 1 1 5l8 4 8-4zM1 9l8 4 8-4M1 13l8 4 8-4" stroke="#988FBD" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" /> |
| 81 | </svg> |
| 82 | |
| 83 | |
| 84 | </span> <?php esc_html_e("Elements", "embedpress"); ?></a> |
| 85 | <?php do_action('ep_after_element_item'); ?> |
| 86 | </li> |
| 87 | <?php do_action('ep_before_branding_menu'); ?> |
| 88 | <li class="sidebar__item branding-item <?php echo 'custom-logo' === $template ? 'show' : ''; ?>"> |
| 89 | <a href="<?php echo esc_url($ep_page . '&page_type=custom-logo'); ?>" class="sidebar__link branding <?php echo 'custom-logo' === $template ? 'active' : ''; ?>"><span> |
| 90 | <svg width="20" height="22" viewBox="0 0 20 22" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 91 | <path d="M19 15.008V6.99a1.98 1.98 0 0 0-1-1.717l-7-4.008a2.02 2.02 0 0 0-2 0L2 5.273c-.619.355-1 1.01-1 1.718v8.018c0 .709.381 1.363 1 1.717l7 4.008a2.02 2.02 0 0 0 2 0l7-4.008c.619-.355 1-1.01 1-1.718M10 21V11m0 0 8.73-5.04m-17.46 0L10 11" stroke="#988FBD" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" /> |
| 92 | </svg> |
| 93 | </span> <?php esc_html_e('Branding', 'embedpress'); ?></a> |
| 94 | </li> |
| 95 | <?php do_action('ep_before_branding_menu'); ?> |
| 96 | |
| 97 | |
| 98 | <li class="sidebar__item sponserd-item <?php echo 'ads' === $template ? 'show' : ''; ?>"> |
| 99 | <a href="<?php echo esc_url($ep_page . '&page_type=ads'); ?>" class="sidebar__link ads-icon <?php echo 'ads' === $template ? 'active' : ''; ?>"> |
| 100 | <span> |
| 101 | <svg width="20" height="24.545" viewBox="0 0 20 24.545" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 102 | <path d="M17.457 4.993H6.487a.474.474 0 0 0 0 .948h10.97c.4 0 .725.325.725.725v9.718h-3.146a.475.475 0 0 0 0 .947h3.146v.222c0 .4-.325.725-.725.725H3.627a.475.475 0 0 0-.305.112l-2.376 2V6.665c0-.4.325-.725.725-.725h1.026a.474.474 0 0 0 0-.948H1.673A1.676 1.676 0 0 0 0 6.665v14.742a.473.473 0 0 0 .778.363l3.023-2.547h13.656a1.674 1.674 0 0 0 1.671-1.671V6.665a1.673 1.673 0 0 0-1.673-1.672l.002-.001Zm-7.893-1.68a.473.473 0 0 0 .475-.474V.473a.475.475 0 0 0-.948 0v2.366a.473.473 0 0 0 .474.473Zm3.569.193a.471.471 0 0 0 .335-.138l1.655-1.655a.475.475 0 0 0-.334-.809.474.474 0 0 0-.335.139l-1.655 1.655a.473.473 0 0 0 .335.808Zm-7.472-.142a.473.473 0 1 0 .669-.669L4.675 1.04a.473.473 0 1 0-.669.669l1.655 1.655ZM9.564 20.93a.473.473 0 0 0-.474.474v2.365a.474.474 0 1 0 .947 0v-2.365a.473.473 0 0 0-.474-.473Zm3.903-.054a.475.475 0 0 0-.669.67l1.656 1.656a.472.472 0 0 0 .669 0 .475.475 0 0 0 0-.671l-1.656-1.655Z" fill="#5B4E96" /> |
| 103 | <path d="M4.183 5.132a.475.475 0 0 0-.14.335.475.475 0 0 0 .479.473.473.473 0 0 0 .339-.807.486.486 0 0 0-.678 0Zm1.423 15.747-1.679 1.655a.473.473 0 0 0-.105.515.473.473 0 0 0 .26.256.483.483 0 0 0 .523-.103l1.679-1.655a.47.47 0 0 0 0-.669.484.484 0 0 0-.678 0Zm8.372-9.058a2.236 2.236 0 0 0-.669-1.591 2.3 2.3 0 0 0-1.613-.659h-1.041a.485.485 0 0 0-.445.293.468.468 0 0 0-.036.182v4.166a.468.468 0 0 0 .297.438.466.466 0 0 0 .185.036h1.042a2.3 2.3 0 0 0 1.613-.66 2.236 2.236 0 0 0 .669-1.591v-.615Zm-.96.613c0 .719-.593 1.304-1.322 1.304h-.562v-3.22h.562c.729 0 1.322.585 1.322 1.304v.613Zm-7.435.435-.405 1.191a.467.467 0 0 0 .139.507.486.486 0 0 0 .53.067.476.476 0 0 0 .242-.273l.3-.879h1.334l.3.878a.473.473 0 0 0 .455.323.479.479 0 0 0 .429-.263.469.469 0 0 0 .025-.362L7.51 9.891a.473.473 0 0 0-.455-.322.484.484 0 0 0-.455.322l-1.018 2.977-.001.001Zm1.47-1.341.345 1.007h-.689l.343-1.007Zm5.824 4.993a.475.475 0 0 0-.14.335.475.475 0 0 0 .479.473.485.485 0 0 0 .442-.292.468.468 0 0 0-.103-.515.487.487 0 0 0-.678 0Z" fill="#5B4E96" /> |
| 104 | </svg> |
| 105 | </span> <?php echo esc_html__('Custom Ads', 'embedpress'); ?> |
| 106 | |
| 107 | <?php if (!apply_filters('embedpress/is_allow_rander', false)): ?> |
| 108 | <span class="embedpress-font-m embedpress-tag"><?php esc_html_e('Premium', 'embedpress'); ?></span> |
| 109 | <?php endif; ?> |
| 110 | </a> |
| 111 | </li> |
| 112 | |
| 113 | <?php |
| 114 | if (isset($pro_active) && $pro_active) { |
| 115 | do_action('ep_before_license_menu'); ?> |
| 116 | <li class="sidebar__item <?php echo 'license' === $template ? 'show' : ''; ?>"> |
| 117 | <a href="<?php echo esc_url($ep_page . '&page_type=license'); ?>" class="sidebar__link <?php echo 'license' === $template ? 'active' : ''; ?>"><span><i class="ep-icon ep-lock"></i></span> <?php esc_html_e("License", "embedpress"); ?></a> |
| 118 | </li> |
| 119 | <?php do_action('ep_after_license_menu'); |
| 120 | } |
| 121 | ?> |
| 122 | |
| 123 | </ul> |
| 124 | |
| 125 | |
| 126 | <?php |
| 127 | if (empty($pro_active) || !$pro_active) { |
| 128 | do_action('ep_before_premium_menu'); ?> |
| 129 | |
| 130 | <div class="premium-button"> |
| 131 | <a href="<?php echo esc_url($ep_page . '&page_type=go-premium'); ?>" class="sidebar__link <?php echo 'license' === $template ? 'active' : ''; ?>" style="margin-top: 12px;"> |
| 132 | |
| 133 | <span> |
| 134 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="21" viewBox="0 0 24 21" fill="none"> |
| 135 | <path d="M19.6799 17.28H4.31988C3.52596 17.28 2.87988 17.9261 2.87988 18.72C2.87988 19.5139 3.52596 20.16 4.31988 20.16H19.6799C20.4738 20.16 21.1199 19.5139 21.1199 18.72C21.1199 17.9261 20.4738 17.28 19.6799 17.28Z" fill="#FF9900" /> |
| 136 | <path d="M22.08 2.88C21.0211 2.88 20.16 3.74114 20.16 4.8C20.16 5.51137 20.5536 6.1267 21.1305 6.45886C20.0198 9.08925 18.287 10.703 16.6675 10.5571C14.8665 10.4102 13.3977 8.28094 12.5875 4.71839C13.6262 4.45533 14.4 3.51933 14.4 2.4C14.4 1.07616 13.3238 0 12 0C10.6761 0 9.59995 1.07616 9.59995 2.4C9.59995 3.51938 10.3737 4.45538 11.4124 4.71839C10.6022 8.28094 9.13336 10.4102 7.33242 10.5571C5.71964 10.703 3.97913 9.08925 2.86941 6.45886C3.44634 6.1267 3.83995 5.51133 3.83995 4.8C3.83995 3.74114 2.97881 2.88 1.91995 2.88C0.861141 2.88 0 3.74114 0 4.8C0 5.78498 0.748781 6.58945 1.70494 6.69886L3.55392 16.32H20.4461L22.295 6.69886C23.2512 6.58945 24 5.78498 24 4.8C24 3.74114 23.1389 2.88 22.08 2.88Z" fill="url(#paint0_linear_189_140)" /> |
| 137 | <defs> |
| 138 | <linearGradient id="paint0_linear_189_140" x1="12" y1="0" x2="12" y2="16.32" gradientUnits="userSpaceOnUse"> |
| 139 | <stop stop-color="#FFC045" /> |
| 140 | <stop offset="1" stop-color="#FF9900" /> |
| 141 | </linearGradient> |
| 142 | </defs> |
| 143 | </svg> |
| 144 | </span> |
| 145 | <?php esc_html_e("Go Premium", "embedpress"); ?> |
| 146 | </a> |
| 147 | </div> |
| 148 | <?php do_action('ep_after_premium_menu'); |
| 149 | } |
| 150 | ?> |
| 151 | </div> |
| 152 | </div> |