Jump to content
MC1028

Airline Logo on Schedules List

Recommended Posts

Hello,

I'm looking for the code to show the airline logo on the schedule list when pilots search for it?

Does anybody have this code?

Regards

Share this post


Link to post
Share on other sites

Go to /lib/skins/*your skin*/schedule_search.php
And add this after <div class="row"> (This is for FireCrew3)

<p align="center"><img src="location of your logo" width="200px"></p>

I know it's a bit messy but it's the easiest way without editing css

Edited by artem

Share this post


Link to post
Share on other sites

1. Add the logo image (png preferred) of your airline(s) to "/lib/images/airlines/"

2. As mentioned by artem, Go to /lib/skins/*your skin*/schedules_results.php and paste the code inside the "foreach" loop. 

<?php $logo = SITE_URL."/lib/images/airline/".$route->code.".png"; ?>
<img src="<?php echo $logo; ?>" style="height: 70px; width: auto;" />

3. [IF YOU ARE NOT USING A CUSTOM SKIN] Go to core/templates and find schedules_results.php and do the same as mentioned in step 2. 

P.S You can adjust the size of the image to your preference. 

Share this post


Link to post
Share on other sites

for me code from Leonard doesnt work. below is my code for fix.

Quote

<?php $logo = SITE_URL."/lib/images/airline/".$schedule->code.".png"; ?> <img src="<?php echo $logo; ?>" style="height: 70px; width: auto;" />

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×