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
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
And luck with this code?
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
Add the logo image (png preferred) of your airline(s) to “/lib/images/airlines/”
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;” />
[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.
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;” />