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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...