Download the PHP package oliveyrc/orbit_banner without Composer

On this page you can find all versions of the php package oliveyrc/orbit_banner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package orbit_banner

Orbit Banner

Orbit Banner is a custom Drupal 11 module that adds banner functionality to the Basic page content type (basic_page).

On install, the module provides:

Features

Media types

Basic page fields

Node form layout

The banner fields sit on a Banner vertical tab, split across three horizontal tabs:

Tab Fields
Content title, text, images, video
Settings transition effect, size, parallax, colour
Help the banner help text

group_tabs, the vertical tab set the Banner tab lives in, is shared with other modules. field_group nests groups by the parent's children list rather than each child's parent_name, so the install hook merges the Banner tab into that list instead of replacing it. Earlier releases replaced it, which silently dropped sibling tabs such as SEO and Schedule out of the tab set; _orbit_banner_attach_to_tabs_group() restores any it finds orphaned.

What the block renders

The page_banner block picks one of three templates:

Condition Template Libraries attached
A video is referenced orbit-page-banner-video.html.twig orbit_banner/video
More than one image orbit-page-banner-slider.html.twig orbit_banner/slider (pulls in Swiper)
One image, or none orbit-page-banner.html.twig none

A video always wins over images. The first image is used as the video's poster frame.

Swiper is only requested when a banner actually holds more than one image, so single-image and video banners ship no slideshow JavaScript or CSS.

When no image is set on the node, the block falls back to the field's default value, then to the banner site settings group, then to the defaults group.

Transition effect

field_orbit_banner_effect chooses between Swiper's slide (labelled "Swipe") and fade transitions. The default is slide.

Because it only means anything for a slideshow, the field is shown on the node form only once two or more images are selected, using Conditional Fields.

Wiring that up needs two pieces, because the media library widget exposes no input holding the number of selected items and rebuilds itself over AJAX:

Two upstream quirks are worked around, both commented where they are handled:

Parallax

field_orbit_banner_parallax moves the media layer at a slower rate than the page scroll. It works for all three banner types. The media layer is over-sized by the travel distance so the transform can never expose an edge, and the extra size is only applied once the behaviour is running — without JavaScript the banner is unchanged.

Accessibility

Colour

field_orbit_banner_colour is exposed to the template as the --orbit-banner-colour custom property together with a has-colour class, and tints the gradient overlay that sits above the media.

Requirements

Installing Swiper

The module expects swiper-bundle.min.js and swiper-bundle.min.css at web/libraries/swiper/. The status report warns when they are missing, and multi-image banners fall back to showing the first image only.

Composer ignores repositories declared outside the root composer.json, so add the package to the project root:

Installation

  1. Ensure required dependencies are available in the site.
  2. Enable the module:

  3. Rebuild caches:

Updating an existing install

Verify

  1. Go to Structure -> Content types -> Basic page -> Manage form display.
  2. Confirm there is a Tabs group containing a Banner tab, alongside the other tabs the site defines.
  3. Confirm the Banner tab contains Content, Settings and Help horizontal tabs, with the fields distributed as described above.
  4. Edit a Basic page. With fewer than two images the Transition effect field is hidden; adding a second image reveals it without a page reload.
  5. Add two or more images and confirm the banner becomes a slideshow.

Maintainer


All versions of orbit_banner with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package oliveyrc/orbit_banner contains the following files

Loading the files please wait ...