footer.php
149 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Main footer wrapper. |
| 4 | * |
| 5 | * @uses ./navigation |
| 6 | * @uses ./social |
| 7 | * |
| 8 | * @package Hustle |
| 9 | * @since 4.0.0 |
| 10 | */ |
| 11 | |
| 12 | $hide_footer = false; |
| 13 | /* translators: heart icon */ |
| 14 | $footer_text = sprintf( __( 'Made with %s by WPMU DEV', 'hustle' ), ' <span class="sui-icon-heart" aria-hidden="true"></span>' ); |
| 15 | |
| 16 | // TODO: Check if the user is member to apply these filters. |
| 17 | $hide_footer = apply_filters( 'wpmudev_branding_change_footer', $hide_footer ); |
| 18 | $footer_text = apply_filters( 'wpmudev_branding_footer_text', $footer_text ); |
| 19 | |
| 20 | // Display cross-sell row when it's free and the footer type is "large". |
| 21 | if ( Opt_In_Utils::_is_free() && ! empty( $is_large ) && ! $hide_footer ) : ?> |
| 22 | |
| 23 | <div id="sui-cross-sell-footer" class="sui-row"> |
| 24 | |
| 25 | <div><span class="sui-icon-plugin-2"></span></div> |
| 26 | <h3><?php esc_html_e( 'Check out our other free wordpress.org plugins!', 'hustle' ); ?></h3> |
| 27 | |
| 28 | </div> |
| 29 | |
| 30 | <div class="sui-row sui-cross-sell-modules"> |
| 31 | |
| 32 | <div class="sui-col-md-4"> |
| 33 | |
| 34 | <div class="sui-cross-1"><span></span></div> |
| 35 | |
| 36 | <div class="sui-box"> |
| 37 | |
| 38 | <div class="sui-box-body"> |
| 39 | |
| 40 | <h3><?php esc_html_e( 'Hummingbird Page Speed Optimization', 'hustle' ); ?></h3> |
| 41 | |
| 42 | <p><?php esc_html_e( 'Performance Tests, File Optimization & Compression, Page, Browser & Gravatar Caching, GZIP Compression, CloudFlare Integration & more.', 'hustle' ); ?></p> |
| 43 | |
| 44 | <a |
| 45 | href="https://wordpress.org/plugins/hummingbird-performance/" |
| 46 | target="_blank" |
| 47 | class="sui-button sui-button-ghost" |
| 48 | > |
| 49 | <?php esc_html_e( 'View features', 'hustle' ); ?> <span aria-hidden="true" class="sui-icon-arrow-right"></span> |
| 50 | </a> |
| 51 | |
| 52 | </div> |
| 53 | |
| 54 | </div> |
| 55 | |
| 56 | </div> |
| 57 | |
| 58 | <div class="sui-col-md-4"> |
| 59 | |
| 60 | <div class="sui-cross-2"><span></span></div> |
| 61 | |
| 62 | <div class="sui-box"> |
| 63 | |
| 64 | <div class="sui-box-body"> |
| 65 | |
| 66 | <h3><?php esc_html_e( 'Defender Security, Monitoring, and Hack Protection', 'hustle' ); ?></h3> |
| 67 | |
| 68 | <p><?php esc_html_e( 'Security Tweaks & Recommendations, File & Malware Scanning, Login & 404 Lockout Protection, Two-Factor Authentication & more.', 'hustle' ); ?></p> |
| 69 | |
| 70 | <a |
| 71 | href="https://wordpress.org/plugins/defender-security/" |
| 72 | target="_blank" |
| 73 | class="sui-button sui-button-ghost" |
| 74 | > |
| 75 | <?php esc_html_e( 'View features', 'hustle' ); ?> <span aria-hidden="true" class="sui-icon-arrow-right"></span> |
| 76 | </a> |
| 77 | |
| 78 | </div> |
| 79 | |
| 80 | </div> |
| 81 | |
| 82 | </div> |
| 83 | |
| 84 | <div class="sui-col-md-4"> |
| 85 | |
| 86 | <div class="sui-cross-3"><span></span></div> |
| 87 | |
| 88 | <div class="sui-box"> |
| 89 | |
| 90 | <div class="sui-box-body"> |
| 91 | |
| 92 | <h3><?php esc_html_e( 'SmartCrawl Search Engine Optimization', 'hustle' ); ?></h3> |
| 93 | |
| 94 | <p><?php esc_html_e( 'Customize Titles & Meta Data, OpenGraph, Twitter & Pinterest Support, Auto-Keyword Linking, SEO & Readability Analysis, Sitemaps, URL Crawler & more.', 'hustle' ); ?></p> |
| 95 | |
| 96 | <a |
| 97 | href="https://wordpress.org/plugins/smartcrawl-seo/" |
| 98 | target="_blank" |
| 99 | class="sui-button sui-button-ghost" |
| 100 | > |
| 101 | <?php esc_html_e( 'View features', 'hustle' ); ?> <span aria-hidden="true" class="sui-icon-arrow-right"></span> |
| 102 | </a> |
| 103 | |
| 104 | </div> |
| 105 | |
| 106 | </div> |
| 107 | |
| 108 | </div> |
| 109 | |
| 110 | </div> |
| 111 | |
| 112 | <div class="sui-cross-sell-bottom"> |
| 113 | |
| 114 | <h3><?php esc_html_e( 'Your All-in-One WordPress Platform', 'hustle' ); ?></h3> |
| 115 | |
| 116 | <p><?php esc_html_e( 'Pretty much everything you need for developing and managing WordPress based websites, and then some.', 'hustle' ); ?></p> |
| 117 | |
| 118 | <a |
| 119 | href="https://premium.wpmudev.org/?utm_source=hustle&utm_medium=plugin&utm_campaign=hustle_footer_upsell_notice" |
| 120 | rel="dialog" |
| 121 | id="dash-uptime-update-membership" |
| 122 | class="sui-button sui-button-green" |
| 123 | > |
| 124 | <?php esc_html_e( 'Learn more', 'hustle' ); ?> |
| 125 | </a> |
| 126 | |
| 127 | <img |
| 128 | class="sui-image" |
| 129 | src="<?php echo esc_url( self::$plugin_url . 'assets/images/dev-team.png' ); ?>" |
| 130 | srcset="<?php echo esc_url( self::$plugin_url . 'assets/images/dev-team.png' ); ?> 1x, <?php echo esc_url( self::$plugin_url . 'assets/images/dev-team@2x.png' ); ?> 2x" |
| 131 | alt="<?php esc_html_e( 'Try pro features for free!', 'hustle' ); ?>" |
| 132 | > |
| 133 | |
| 134 | </div> |
| 135 | |
| 136 | <?php endif; ?> |
| 137 | |
| 138 | <div class="sui-footer"><?php echo $footer_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div> |
| 139 | |
| 140 | <?php |
| 141 | if ( ! $hide_footer ) { |
| 142 | // FOOTER: Navigation. |
| 143 | $this->render( 'admin/footer/navigation' ); |
| 144 | |
| 145 | // FOOTER: Social. |
| 146 | $this->render( 'admin/footer/social' ); |
| 147 | } |
| 148 | ?> |
| 149 |