Correct return for the ticket url
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 27 Mar 2017 13:01:25 +0000 (09:01 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 27 Mar 2017 13:01:25 +0000 (09:01 -0400)
update both image and other link for tickets

front-page.php
functions.php

index 547ef4b..7131679 100644 (file)
@@ -28,7 +28,7 @@
         <div class="action-items">
             <div class="row">
                 <div class="buy-tickets small-12 medium-6 text-center columns">
-                    <a href="<?php echo get_permalink(40)?>"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/buy-tickets-graphics.png"></a>
+                    <a href="<?php echo ticket_url_base();?>order-tickets-online-6/"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/buy-tickets-graphics.png"></a>
                     <a href="<?php echo ticket_url_base();?>order-tickets-online-6/"><h5>Buy Ferry <br>Tickets</h5></a>
                 </div>
                 <div class="get-schedule small-12 medium-6 text-center columns">
index 9bf7e46..1b2027b 100644 (file)
@@ -210,7 +210,7 @@ if (!function_exists('ticket_url_base')) {
         if ( defined('GLM_MEMBERS_APIS_STARLINE_OPTION_NAME') ) {
             $starlineOptions  = unserialize( get_option( GLM_MEMBERS_APIS_STARLINE_OPTION_NAME ) );
             $starlineUrl      = ( isset( $starlineOptions['ticketUrl'] ) ) ? $starlineOptions['ticketUrl'] : '';
-            return $startlineUrl;
+            return $starlineUrl;
         } else {
             return false;
         }