| | |
| | | <?php |
| | | /* |
| | | Plugin Name: Tatty Soap Extension |
| | | Plugin URI: https://tattysoap.ca/ |
| | | Plugin Name: Madi Mori Extension |
| | | Plugin URI: https://madimori.ca/ |
| | | Description: An Extension of JakeVan Base, for Tatty Soap. |
| | | Author: Jake Vanderwerf |
| | | Version: 1.0.0 |
| | |
| | | add_filter('jvbBelowHeader', 'atat_header'); |
| | | function atat_header(string $header):string |
| | | { |
| | | return '<p>FREE LOCAL PICKUP at <a href="https://legacytattooremoval.ca/">Legacy Tattoo Removal</a>.</p>'; |
| | | return '<p>FREE LOCAL PICKUP at <a href="https://legacytattooremoval.ca/?ref=madimori">Legacy Tattoo Removal</a>.</p>'; |
| | | } |
| | | |
| | | |
| | |
| | | && array_key_exists('className', $block['attrs']) |
| | | && $block['attrs']['className'] === 'is-style-fixed' |
| | | && $nav === '') { |
| | | $call = '<li class="call"><a href="'.jvbPhoneLink(8259257398).'" title="Call Us">'.jvbIcon('phone').'<span class="screen-reader-text">Call Us</span></a></li>'; |
| | | $text = '<li><a href="'.jvbTextLink(8259257398).'" title="Text Us">'.jvbIcon('chat').'<span class="hide-small">825.925.7398</span><sup class="hide-small">PEWU</sup></a></li>'; |
| | | $email = '<li><a href="'.jvbMailToLink( |
| | | 'info@legacytattooremoval.ca', |
| | | $call = sprintf( |
| | | '<li class="call"><a href="%s" title="Call Us">'.jvbIcon('phone').'<span class="screen-reader-text">Call Us</span></a></li>', |
| | | jvbPhoneLink(7802899915), |
| | | ); |
| | | $text = sprintf( |
| | | '<li><a href="%s" title="Text Us">%s<span class="hide-small">780.289.9915</span></a></li>', |
| | | jvbTextLink(7802899915), |
| | | jvbIcon('chat') |
| | | ); |
| | | $email = sprintf( |
| | | '<li><a href="%s" title="Email Us">%s<span class="hide-small">info@madimori.ca</span></a></li>', |
| | | jvbMailToLink( |
| | | 'info@madimori.ca', |
| | | 'Contact from Our Website' |
| | | ).'" title="Email Us">'.jvbIcon('envelope').'<span class="hide-small">info@legacytattooremoval.ca</span></a></li>'; |
| | | ), |
| | | jvbIcon('envelope') |
| | | ); |
| | | |
| | | return $call.$text.$email; |
| | | } |
| | |
| | | && array_key_exists('className', $block['attrs']) |
| | | && $block['attrs']['className'] === 'is-style-floating' |
| | | ) { |
| | | return $nav.'<li><ul class="socials"> |
| | | return sprintf( |
| | | '%s<li><ul class="socials"> |
| | | <li> |
| | | <a href="https://www.facebook.com/madebymadimori/" target="_blank" rel="nofollow" title="Find us on Facebook"> |
| | | '.jvbIcon('facebook-logo').' |
| | | %s |
| | | <span class="screen-reader-text"> |
| | | Find us on Facebook |
| | | </span> |
| | |
| | | </li> |
| | | <li> |
| | | <a href="https://www.instagram.com/madebymadimori" target="_blank" rel="nofollow" title="Find us on Instagram"> |
| | | '.jvbIcon('instagram-logo').' |
| | | %s |
| | | <span class="screen-reader-text"> |
| | | Find us on Instagram |
| | | </span> |
| | | </a> |
| | | </li> |
| | | </ul></li>'; |
| | | </ul></li>', |
| | | $nav, |
| | | jvbIcon('facebook-logo'), |
| | | jvbIcon('instagram-logo') |
| | | ); |
| | | } |
| | | |
| | | return $nav; |
| | |
| | | { |
| | | $privacy = get_privacy_policy_url(); |
| | | $privacy = ($privacy === '') ? '' : ' | <a href="'.$privacy.'">Privacy Policy</a>'; |
| | | return '<p class="font-small">©'.date('Y').' <a href="https://madimori.ca/">Madi Mori</a>'.$privacy.'</p><p class="font-small">Built with ♡ by <a href="https://jakevan.ca">Jake Van</a></p>'; |
| | | return '<p class="font-small">©'.date('Y').' <a href="https://madimori.ca/">Madi Mori</a>'.$privacy.'</p><p class="font-small">Built with ♡ by <a href="https://jakevan.ca/?ref=madimori">Jake Van</a></p>'; |
| | | } |
| | | |
| | | add_filter('jvbRegisterCustomIcons', 'atat_custom_icons'); |