alert-coming-soon.php
4 years ago
alert-pro.php
4 years ago
footer.php
2 years ago
logo.php
2 years ago
sidebar.php
2 years ago
toast-message.php
5 years ago
sidebar.php
100 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 <?php echo 'general' === $template ? 'show' : ''; ?>"> |
| 16 | <?php do_action('ep_before_element_item'); ?> |
| 17 | <a href="<?php echo esc_url($ep_page . '&page_type=general'); ?>" class="sidebar__link <?php echo 'general' === $template ? 'active' : ''; ?>"><span><i class="ep-icon ep-gear"></i></span> <?php esc_html_e("General", "embedpress"); ?></a> |
| 18 | <?php do_action('ep_after_element_item'); ?> |
| 19 | </li> |
| 20 | <li class="sidebar__item <?php echo 'shortcode' === $template ? 'show' : ''; ?>"> |
| 21 | <?php do_action('ep_before_element_item'); ?> |
| 22 | <a href="<?php echo esc_url($ep_page . '&page_type=shortcode'); ?>" class="sidebar__link <?php echo 'shortcode' === $template ? 'active' : ''; ?>"><span><i class="ep-icon ep-cell"></i></span> <?php esc_html_e("Shortcode", "embedpress"); ?></a> |
| 23 | <?php do_action('ep_after_element_item'); ?> |
| 24 | </li> |
| 25 | <li class="sidebar__item <?php echo 'sources' === $template ? 'show' : ''; ?>"> |
| 26 | <?php do_action('ep_before_element_item'); ?> |
| 27 | <a href="<?php echo esc_url($ep_page . '&page_type=sources'); ?>" class="sidebar__link <?php echo 'sources' === $template ? 'active' : ''; ?>"><span><i class="ep-icon ep-platform"></i></span> <?php esc_html_e("Sources", "embedpress"); ?></a> |
| 28 | <div class="tab-button-section"> |
| 29 | <ul class="source-tab"> |
| 30 | <!-- <li class="tab-button active" data-tab="all"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/code.svg" alt=""> All</li> --> |
| 31 | <li class="tab-button" data-tab="audio"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/audio.svg" alt="">Audio</li> |
| 32 | <li class="tab-button" data-tab="video"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/video.svg" alt="">Video</li> |
| 33 | <li class="tab-button" data-tab="image"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/image.svg" alt="">Image</li> |
| 34 | <li class="tab-button" data-tab="pdf"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/pdf.svg" alt="">PDF & Docs</li> |
| 35 | <li class="tab-button" data-tab="social"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/social.svg" alt="">Social</li> |
| 36 | <li class="tab-button" data-tab="google"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/google.svg" alt="">Google Sources</li> |
| 37 | <li class="tab-button" data-tab="stream"><img class="source-image" src="<?php echo EMBEDPRESS_SETTINGS_ASSETS_URL; ?>img/sources/stream.svg" alt="">Live Stream</li> |
| 38 | </ul> |
| 39 | </div> |
| 40 | <?php do_action('ep_after_element_item'); ?> |
| 41 | </li> |
| 42 | <li class="sidebar__item <?php echo 'elements' === $template ? 'show' : ''; ?>"> |
| 43 | <?php do_action('ep_before_element_item'); ?> |
| 44 | <a href="<?php echo esc_url($ep_page . '&page_type=elements'); ?>" class="sidebar__link <?php echo 'elements' === $template ? 'active' : ''; ?>"><span><i class="ep-icon ep-cell"></i></span> <?php esc_html_e("Elements", "embedpress"); ?></a> |
| 45 | <?php do_action('ep_after_element_item'); ?> |
| 46 | </li> |
| 47 | <?php do_action('ep_before_branding_menu'); ?> |
| 48 | <li class="sidebar__item <?php echo 'custom-logo' === $template ? 'show' : ''; ?>"> |
| 49 | <a href="<?php echo esc_url($ep_page . '&page_type=custom-logo'); ?>" class="sidebar__link <?php echo 'custom-logo' === $template ? 'active' : ''; ?>"><span><i class="ep-icon ep-branding"></i></span> Branding</a> |
| 50 | </li> |
| 51 | <?php do_action('ep_before_branding_menu'); ?> |
| 52 | |
| 53 | |
| 54 | <li class="sidebar__item <?php echo 'ads' === $template ? 'show' : ''; ?>"> |
| 55 | <a href="<?php echo esc_url($ep_page . '&page_type=ads'); ?>" class="sidebar__link ads-icon <?php echo 'ads' === $template ? 'active' : ''; ?>"> |
| 56 | <span > |
| 57 | <svg width="20" height="24.545" viewBox="0 0 20 24.545" fill="none" xmlns="http://www.w3.org/2000/svg"><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"/><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"/></svg> |
| 58 | </span> <?php echo esc_html__('Custom Ads', 'embedpress'); ?></a> |
| 59 | </li> |
| 60 | |
| 61 | <?php |
| 62 | if (isset($pro_active) && $pro_active) { |
| 63 | do_action('ep_before_license_menu'); ?> |
| 64 | <li class="sidebar__item <?php echo 'license' === $template ? 'show' : ''; ?>"> |
| 65 | <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> |
| 66 | </li> |
| 67 | <?php do_action('ep_after_license_menu'); |
| 68 | } |
| 69 | ?> |
| 70 | |
| 71 | </ul> |
| 72 | |
| 73 | |
| 74 | <?php |
| 75 | if (empty($pro_active) || !$pro_active) { |
| 76 | do_action('ep_before_premium_menu'); ?> |
| 77 | |
| 78 | <div class="premium-button"> |
| 79 | <a href="<?php echo esc_url($ep_page . '&page_type=go-premium'); ?>" class="sidebar__link <?php echo 'license' === $template ? 'active' : ''; ?>"> |
| 80 | |
| 81 | <span> |
| 82 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="21" viewBox="0 0 24 21" fill="none"> |
| 83 | <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" /> |
| 84 | <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)" /> |
| 85 | <defs> |
| 86 | <linearGradient id="paint0_linear_189_140" x1="12" y1="0" x2="12" y2="16.32" gradientUnits="userSpaceOnUse"> |
| 87 | <stop stop-color="#FFC045" /> |
| 88 | <stop offset="1" stop-color="#FF9900" /> |
| 89 | </linearGradient> |
| 90 | </defs> |
| 91 | </svg> |
| 92 | </span> |
| 93 | <?php esc_html_e("Go Premium", "embedpress"); ?> |
| 94 | </a> |
| 95 | </div> |
| 96 | <?php do_action('ep_after_premium_menu'); |
| 97 | } |
| 98 | ?> |
| 99 | </div> |
| 100 | </div> |