Skip to content

phpVMS v7 theme/skin (Bootstrap v5.x + FontAwesome v5.x)

License

Notifications You must be signed in to change notification settings

FatihKoz/DisposableTheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disposable Theme v3

phpVMS v7 theme/skin (Bootstrap v5.x + FontAwesome v5.x)

  • Theme supports only php8.1+ and laravel10
  • Minimum required phpVMS v7 version is phpVms 7.0.38-dev.g47ce6755b4 / 15.NOV.2024
  • php8.0 and laravel9 compatible latest version: v3.3.1
  • php7.4 and laravel8 compatible latest version: v3.0.19

Compatibility with other addons

This addon is fully compatible with phpVMS v7 and it will work with any other addon, specially acars softwares which are 100% compatible with phpVMS v7 too.

If the acars solution you are using is not compatible with phpVMS v7, then it is highly probable that you will face errors over and there. In this case, please speak with your addon provider not me 'cause I can not fix something I did not broke, or I can not cover somebody else's mistakes, poor compatibility problems etc.

If an addon is fully compatible with phpVMS v7 and needs/uses some custom features, then I can work on this theme to support that addon's special needs too.

As of date, theme supports vmsACARS.

Installation

Same folder structure is used with phpvms v7, so if you have a default installation for it then installing the theme will take only seconds.
Just extract the zip file at the root folder of your phpvms v7 installation and select the template from admin section.

Non Standard Installation

If you want to manually upload the files or have a modified installation of phpvms please follow the instructions below;

  • Contents of public\image should be placed in your phpvms public folder.
  • Contents of public\disposable should be placed in your phpvms public folder.
  • Contents of resources\lang folder should be placed under your phpvms resources\lang folder.
  • Contents of resources\views\layouts folder should be placed under your phpvms resources\views\layouts folder.

According to your installation, public folder may be public or public_html or something else configured via your hosting control panel.

Customization and Theme Cloning

Below you can find details about the theme, customization of it and some minor technical info about duplication.

Theme Cloning / Theme Duplication

  • Just create a new folder under your resources\views\layouts\ folder and name it MyTheme
  • Copy the theme.json file from Disposable_v3 folder to this folder.
  • Edit this file as below (only first two lines are shown to save space);
"name"    : "MyTheme",        // Theme Name (and also the folder name)
"extends" : "Disposable_v3",  // Here we tell Laravel that we are extending Disposable_v3 theme
  • Now copy any file you want to edit/change from Disposable_v3 folder to your MyTheme folder, for example take home.blade.php
  • From this moment on, if you switch to MyTheme from admin settings, this clone theme will be active and its contents will be used
  • For the rest, non-modified files, Disposable_v3 theme contents will be used

Technically you can copy any number of files to your new/duplicated theme. Just keep the file names and file paths intact, editing contents of the files is up to you.

Theme Styling / Customization

  • CSS, Stylesheet files are located under /public/disposable/stylesheet/ folder.

There are two stylesheet files provided with the main package, one for general usage and holds all required styles in it theme_v3.css,
Second one is for dark mode conversion and technically should hold only the items you want to change in a dark-theme theme_v3_darkmode.css

Unless really necessary for technical reasons, no hard coded style tags used in theme blades. So you can configure perrty much everything via css files.

Defining a custom default Gravatar

You can simply define your own custom default gravatar for pilots. Just edit your .env file and add below lines to the end of it

## GRAVATAR DEFAULT
GRAVATAR_DEFAULT_AVATAR='https://your.phpvms.url.comes.here/disposable/nophoto.jpg'

Defining a custom FavIcon

Edit your duplicated app.blade.php and add below line to the head section

<link rel="shortcut icon" type="image/png" href="{{ public_asset('/disposable/your_airline_icon_file.png') }}"/>

Using your own FontAwesome Kit

This theme uses FontAwesome v5.x by default and all blades are designed with them, for better performance and optimization you must define your own free kit from FontAwesome and then enter your kit url in your duplicated app.blade.php's HEAD section like below

<script src="https://kit.fontawesome.com/YOUR-KIT-CODE-HERE.js" crossorigin="anonymous"></script>

Using theme provided kit code is NOT POSSIBLE on a live server because of the limits FontAwesome applying to page hits and loads.

Customizing VA Logo images and Menu items

This can be achieved in two ways, either you need to change the image files provided in the package theme_logo.png and theme_logo_big.png or you need to edit blade files to use your own paths for your logos (preferred way)

Files holding logo definitions are nav_side.blade.php, nav_top.blade.php and nav_menu.blade.php

Both SideBar and NavBar uses the same file for menu items nav_menu.blade.php
nav_menu.blade.php also holds the new language switching dropdown

Settings (via theme.json)

There are some options defined in this file for quick settings or for pre-defined features to be enabled/disabled easily without editing blade files.

    "name": "Disposable_v3",          // Theme Name
    "extends": "default",             // Safety feature to extend default theme

    "gen_background_img": 1,          // Enable - Disable background image
    "gen_sidebar": 1,                 // SideBar , NavBar switch
    "gen_utc_clock": 1,               // Enable - Disable local and utc clock display
    "gen_ivao_logo": 1,               // IVAO logo placed on all pages 
    "gen_ivao_field": "IVAO",         // Your phpvms custom profile field name defined for IVAO ID's 
    "gen_ivao_vaid": "",              // OBSOLETE NOT USED ANYMORE --- Your IVAO Member VA ID (will be used for VA System reports)
    "gen_ivao_icao": "",              // Your IVAO Approved VA ICAO code (will be used for VA System reports)
    "gen_vatsim_logo": 1,             // VATSIM logo placed on all pages
    "gen_vatsim_field": "VATSIM",     // Your phpvms custom profile field name defined for VATSIM CID's
    "gen_discord_invite": "",         // Your static discord invite link (get only the last part like 4fkDHiNv )
    "gen_discord_server": "",         // Your discrod server ID, used for Discord Widget (Disposable Basic)
    "gen_map_flight": 1,              // Map Widget for flights (Disposable Basic)
    "gen_map_fleet": 1,               // Map Widget for fleet (Disposable Basic)
    "gen_darkmode": 0,                // Enable - Disable dark mode switch
    "gen_nicescroll": 0,              // Enable - Disable nice scroll (kills page performance and has issues!)
    "gen_stable_approach": 0,         // Enable - Disable Stable Approach plugin support (Disposable Basic)
    "gen_multilang": 0,               // Enable - Disable Language Selection / Multiple Languages
    
    "home_disable": 0,                // Disable home (landing) page for quests
    "home_ivao_logo": 0,              // Home page IVAO logo (with link)
    "home_vatsim_logo": 0,            // Home page VATSIM logo (with link)
    "home_carousel": 1,               // Home page image slider
    
    "dash_embed_wx": 1,               // Embedded current wx display at dashboard
    "dash_livemap": 0,                // LiveMap at dashboard
    "dash_whazzup_ivao": 0,           // WhazzUp Widget for IVAO (Disposable Basic)
    "dash_whazzup_vatsim": 0,         // WhazzUp Widget for VATSIM (Disposable Basic)

    "download_counts": 0,             // Download counts display

    "flight_bid": 0,                  // Bid Add/Remove button on flight details page
    "flight_simbrief": 1,             // SimBrief OFP generation button on flight details page
    "flight_jumpseat": 0,             // Quick Travel button on flight details page (Disposable Basic)
    "flight_notams": 0,               // Display NOTAMs at flight details page (Disposable Special)

    "flights_flags": 1,               // Enable - Disable country flags on flight related pages
    "flights_table": 1,               // Classic table or card view switch for flights search page
    "flights_codeleg": 0,             // Displays the Route Code and Leg fields separately (Flight and Pireps)
    "flights_localtimes":0,           // Displays local time for flight schedule, needs proper timezone definitions at airports

    "login_logo": 0,                  // Show bigger VA logo at login page

    "pireps_manual": 1,               // Hide or show manual pirep filing buttons

    "roster_userimage": 1,            // Use profile images (or gravatar) at roster
    "roster_ident": 0,                // Use ident at roster in a separate column (like DSP001 Name P)
    "roster_flags": 0,                // Use country flags at roster
    "roster_airline": 1,              // Display user's airline at roster
    "roster_combinetimes": 0,         // Combine flight time and transfer time at roster
    "roster_ivao": 1,                 // Show IVAO ID's and link at roster
    "roster_vatsim": 1,               // Show VATSIM ID's and link at roster

    "simbrief_extrafuel": 1,          // Extra fuel field in SimBrief form
    "simbrief_tankering": 1,          // Tankering advice for Extra Fuel field
    "simbrief_raw_wx": 1,             // Raw WX display at SimBrief form (and NOTAMs with Disposable Basic)
    "simbrief_rfinder": 1,            // RouteFinder modal at SimBrief form
    "simbrief_runways": 1,            // Runway selection at SimBrief form (Disposable Basic)
    "simbrief_taxitimes": 0,          // Taxi Times droddown for Dep - Arrival Airports (with averages, Disposable Basic)
    "simbrief_rvr": "500",            // SimBrief ATC Flight plan RVR value
    "simbrief_rmk": "Disposable VA",  // SimBrief ATC Flight plan remark field addition (like RMK/TCAS Disposable VA)
    "simbrief_crew": 1,               // SimBrief Crew names at SimBrief summary page
    "simbrief_ivao": 1,               // File ATC to IVAO button at SimBrief summary page
    "simbrief_vatsim": 1,             // File ATC to VATSIM button at SimBrief summary page
    "simbrief_specs": 1,              // Use addon based specifications at SimBrief form (Disposable Basic)

    "user_disable_hub": 0,            // Disable changing hub from profile edit
    "user_disable_airline": 0         // Disable changing airline from profile edit

About IVAO VA System Support

Recently IVAO introduced a new way to track registered VA flights, which is mostly automated and works along with their FPL system. A new field should be included in FPL ITEM 18 as IVAOVA/nnn where nnn is the ICAO code of the registered VA. Theme supports this new feature with SimBrief integration and if airline icao code is defined in theme settings required field will be included in all FPL's filed via theme SimBrief support.

Below is the old notice about obsolete IVAO VA System logic, if you still need it or somehow use it related files will be in relevant folders.

As this is really an optional feature and the system itself is too old, it is provided only for VA's already using it. You should define your IVAO approved Airline ID and Airline ICAO code at theme.json file for the auto placed badges to show up.

Below you can find an example, it checks if you have necessary definitions at theme.json and includes the file. Which will have a visible badge/button, when clicked it will open up a modal window for the pilot to send the report.

@if(Theme::getSetting('gen_ivao_vaid') && Theme::getSetting('gen_ivao_icao'))
  @include('pireps.ivao_vasys')
@endif

Be advised, IVAO's login cookies do not work properly even if you click "Remember Me". This is the reason of that "Login IVAO" button placed in the modal. It is higly advised that pilots click that button first, complete their login to IVAO, which will send them back to your VA, then click the "Send Report" button.

Here is an answer from IVAO Official Wiki about VA System usage

Do the pilots need to report their flights? 

Currently, the VA System is withdrawn, and not to be used anymore. The new VA system should be back alive in 2021. In the meantime, as we have no backup solution, no flight reporting is asked to pilots. 

Footer Positioning and Content

As per the license, addon/theme name should be always visible in all pages. Editing the footer is still possible but Disposable Theme or Powered By DH Addons link SHOULD BE always visible.

Powered by <a href="https://www.phpvms.net" target="_blank">phpVMS v7</a> & <a href="https://github.com/FatihKoz" target="_blank">DH Addons</a>

or

Powered by <a href="https://github.com/FatihKoz" target="_blank">DH Addons</a>

If you need more space in footer area, kindly check theme stylesheet to add yourself some space 'cause it is really limited with a small area and always placed at the bottom.

Known Bugs / Problems

  • SmartCars v3 users reported problems with some of the features theme offers, root cause is SC3 being not fully phpVMS v7 compatible yet and not sending proper data. With latest improvements done to SC3 implementation incompatibilities are reduced but still it may behave different than expected. Please follow changes/updates of SC3 modules being develop by other devs.

Release / Update Notes

15.NOV.24

  • Added Turkish translation Requires latest dev as of 15.Nov.2024

09.NOV.24

  • Added Award issue date to user/pilot profile

29.SEP.24

  • Added Japanese traslation (Thanks to Minnsch, ANA Virtual Group)
  • Added Altitude and Speed chart to pirep details page (preparations for vmsAcars v2)

17.SEP.24

  • Added support for Latest Awards widget
  • Fixed the flight search page (was updated for upcoming search options)
  • Fixed external link warning modal bug (thanks to JCB)
  • Added option for displaying local times at flight schedule
  • Hide buttons for bids/simbrief/vmsacars load according to scheduled days
  • SimBrief form selection should now display a dropdown indicator
  • Updated LiveMap for upcoming vmsAcars v2
  • Some helper improvements and cleanup
  • Some tiny text/type fixes
  • Added a custom 503 page (for servers under maintenance)
  • Prepared flight search for upcoming new features of phpvms v7
  • Added a fix for SimBrief ICAO code requirements (affects US and CA only)

01.JUN.24

  • Added SimBrief TLR results to briefing page
  • Added support for IVAO registered VA's (FPL ITEM 18)
  • Removed old IVAO VA System calls from blades

27.MAY.24

  • Fixed manual pirep edit blade (was causing a server error)
    Change requires latest dev build as of 24th May 2024 or newer

07.MAY.24

  • Added DisposableBasic Notams widget support (to Airport Details, Bids, SimBrief Form)

31.MAR.24

  • Helper changes to match phpvms v7 improvements
  • Support for external link notifications via modals (GDPR)
    Both changes require latest dev build as of 28th March 2024

21.FEB.24

  • Fixed register form (hub selection and form method)
  • Added missing classes to navigation menu items

17.FEB.24

  • Fixed some translation errors in pirep fields
  • Fixed manual pirep creation form
  • Updated SimBrief form to use aircraft selcal (if defined in admin > fleet)
  • Added a failsafe for beta.5 users (user registration form)

11.FEB.24

  • Removed laravelcollective/html package features/usage WARNING: Code Breaking Changes Present, update your duplicates
  • Removed Login With Discord button from register page
  • Added support for new pirep field values (TOC/TOD reached)

05.JAN.24

  • Added country flags to pirep details page (follow theme settings for flight flags)
  • License update (Two new disallowed VA's are added)

24.DEC.23

  • Fixed pagination errors on roster and pireps pages (sortable columns)
  • Fixed SimBrief form for "no pax" and/or "no load" conditions
  • Added oAuth support for login, register and profile pages (needs Discord application and settings)

26.NOV.23

  • Update Simbrief form (according to latest API changes to provide more details for additional fuel planning)
  • Disable autocomplete feature for custom profile fields (also provide a number field for IVAO/VATSIM ID's)

03.NOV.23

  • Spanish (ES-ES) translation update

17.SEP.23

  • Simbrief form updates (to follow User model changes about alphanumeric callsigns)
  • License update (Another disallowed VA was added)

02.SEP.23

  • Added support for DisposableSpecial Market feature
    (only links, needs DispoSpecial v3.4.3 with Market)

26.AUG.23

  • Added aircraft selection/booking feature while bidding on flights

19.AUG.23

  • Added support for sortable results (Flights, Pireps, Users)
  • Added support for airport search dropdowns (Register, Profile, Flights, Pireps)
    Warning: both changes require latest dev as of 19.AUG.23

23.JUN.23

  • Theme is compatible with php8.1+ and Laravel10

16.JUN.23

WARNING: THIS IS THE LAST VERSION SUPPORTING PHP 8.0.x AND LARAVEL 9

  • Pirep Details > Fare display update (following v7 dev changes)

11.JUN.23

  • Fixed ICAO FPL Message (using CS/ instead of CALLSIGN/)
  • Rounded up version, added compatibility notice

11.MAR.23

  • Fixed pagination bug of flight search page (Thanks to @dougjuk)

25.JAN.23

  • Fixed weather widget embed at dashboard
  • Removed some buttons (about editing live acars pireps)
  • Updated theme helpers for network display (now it will use different colors per network flown)

14.JAN.23

  • Added network display for pireps (blade changes and helper update)
    (to ease up IVAO/VATSIM audits, compatible with Dispo Basic Network Presence Check system)

12.JAN.23

  • Quickfix for core improvements (navigation changes)
  • DE Translation (Cyber Air)

30.DEC.22

  • Added support for multi language (can be enabled via theme.json, needs core update to latest dev)
  • Updated SimBrief form to allow pilots to choose their ATC Callsign (VA ident, VA Callsign, Flight Callsign, Flight Number)

17.DEC.22

  • Quick fixes applied for IVAO/VATSIM/POSCON plan filing systems applied (IVAO API Change, SB xml changes)
  • Added public pireps page link to menu/nav (Needs Dispo Basic)
  • Added UserPireps widget to profile index (Needs Dispo Basic)

15.NOV.22

  • PT-BR Translation (Thanks to @Joaolzc)
  • PT-PT Translation (Thanks to @PVPVA , specially JCB)
  • License Updated (more non-authorized virtual airlines added !)

21.OCT.22

  • IVAO URL/Link fixes (User profile and Roster)

27.AUG.22

  • Added customizations for core map support (pirep maps and live flights widget) Needs phpvms 7.0.0-dev+220822.231e54 and later

22.AUG.22

  • Added radio telephony callsign to SimBrief form (if defined at airline it will be used automatically)

14.AUG.22

  • Added notes to Airport Details page (needs phpvms core update, possible upcoming dev release)

09.JUL.22

  • Added baggage weight definitions to SimBrief form (follow up for SimBrief API changes)

11.JUN.22

  • Fixed a conversion error in Theme Helpers (fuel price conversion from lbs to kgs)

17.APR.22

  • Fixed Date Of Flight (DOF) issue in SimBrief form (was effecting ofp generation around 23 UTC with edited ETD and changed dates)

14.MAR.22

  • Theme is now only compatible with php8 and Laravel9
  • All blades changed to provide better support mobile devices
  • Theme helpers updated to meet new core requirements
  • Added some admin only items to pilot profile page (to support Disposable Special features)
  • Added some details to My Bids page, allowed deletion of bids when the pilot is not at that airport
  • Spanish (Spain) translation, thanks to @arv187

01.MAR.22

WARNING: THIS IS THE LAST VERSION SUPPORTING PHP 7.4.xx AND LARAVEL 8

  • No functional changes, just version matching with all v3.0.xx series Disposable addons

28.FEB.22

  • Added support for IVAO VA System Needs to be manually placed and enabled if needed, be aware this system is too old for full automation
  • Stable Approach Plugin stats will be visible if the pilot uses it and sends FDM reports to VA Needs Disposable Basic Module v3.0.18 or later if you are using it
  • Added Assignment and Tour Progress Widgets to user profile (visible only to admins, check Profile Details pill) Needs Disposable Special Module v3.0.16 or later

04.FEB.22

  • Added French translation (Thanks to Jbaltazar67, from phpVMS Forum)

12.JAN.22

  • Fixed the error at user profile (caused by Monthly Flight Assignment stats)
    Disposable Special module needs to be installed and enabled for it to work

05.JAN.22

  • Fixed the ordering of Type Ratings (it is now alphabetically sorted at user profile)
  • Added Stable Approach Plugin's FDM Results to personal pireps page
  • Added some new stats to user profile page (for FDM and Monthly Flight Assignments)
    Both additions need minimum Disposable Basic v3.0.9 and Stable Approach Plugin

18.DEC.21

  • Stable Approach Plugin support
    Needs minimum Disposable Basic v3.0.6 and Stable Approach Plugin 1.2.0-beta.3

14.DEC.21

  • Update Live Map Widget blade (added refresh interval setting)

05.DEC.21

  • Added "Type Ratings" at user profile page (requires phpVms 7.0.0-dev+211130.c45d52 or later)
  • Added Taxi Time selection dropdowns to SimBrief form (like the old theme, needs Disposable Basic)
  • Changed the logic of "Route Finder" setting, on SSL enabled servers it will be a link, non-SSL servers will have a modal
    Route Finder change is related to recent browser changes blocking non-secure content in secure pages

26.NOV.21

  • Added natural sort for flight search > dropdowns and flight > subfleets.
  • Italian translation (Thanks to Fabietto for his support)

20.NOV.21

  • Fix new user registration (password confirmation field)

19.NOV.21

  • Fixed manual pirep sending buttons not following theme settings in some blades
  • Reduced the empty space at login page when logo is enabled
  • Added menu item language/translation definitions
  • Fixed SimBrief NO ALTN display

18.NOV.21

  • Added Quick Travel button to flight details page (requires Disposable Basic to work)
  • Fixed some minor placing issues at flight and pirep details pages
  • Added missing "login_logo" setting to Theme.json
  • Added min/max time to flight search (requires phpvms 7.0.0-dev+211118.66d83c or later)

16.NOV.21

  • Initial Release