Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PHP 8.2 and 8.3 for 4.x series of the module #565

Merged
merged 4 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
strategy:
matrix:
include:
- php-versions: "7.4"
- php-versions: "8.0"
- php-versions: "8.1"
- php-versions: "8.2"
- php-versions: "8.3"
stable: true

runs-on: ubuntu-latest
Expand Down
18 changes: 11 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"twitter/bootstrap": "Twitter bootstrap assets"
},
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"laminas/laminas-escaper": "^2.9",
"laminas/laminas-form": "^3.1",
"laminas/laminas-i18n": "^2.13",
Expand All @@ -37,17 +37,17 @@
"laminas/laminas-view": "^2.16"
},
"require-dev": {
"laminas/laminas-component-installer": "^2.6",
"laminas/laminas-component-installer": "^3.0",
"laminas/laminas-modulemanager": "^2.11",
"laminas/laminas-mvc": "^3.3",
"mikey179/vfsstream": "^1.6",
"pcov/clobber": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^9.5.11",
"slam/phpstan-laminas-framework": "^0.12",
"spatie/phpunit-snapshot-assertions": "^4.2",
"slam/phpstan-laminas-framework": "^1.0",
"spatie/phpunit-snapshot-assertions": "^4.2.13",
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
Expand Down Expand Up @@ -77,7 +77,11 @@
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"laminas/laminas-component-installer": true,
"phpstan/extension-installer": true
}
},
"extra": {
"branch-alias": {
Expand Down
5 changes: 2 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
parameters:
ignoreErrors:
- '/Call to an undefined method Laminas\\View\\Helper\\AbstractHelper::/'
treatPhpDocTypesAsCertain: false
laminasframework:
serviceManagerLoader: tests/phpstan.php
excludePaths:
- src/DocumentationGenerator/UsagePage/Prettifier/SourceFile.php
- src/DocumentationGenerator/UsagePage/Prettifier/PhpPrettifier.php
- src/DocumentationGenerator/UsagePage/Prettifier/PhpPrettifier.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="alert alert-success" role="alert">
<h4 class="alert-heading">Well done!</h4>
<p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="alert alert-dismissible alert-warning fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button aria-label="Close" class="close" data-dismiss="alert" type="button"><span aria-hidden="true">&times;</span></button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="alert alert-primary" role="alert">
A simple primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="alert alert-primary" role="alert">
A simple primary alert&mdash;check it out!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<span class="badge badge-primary">Primary</span>
<span class="badge badge-secondary">Secondary</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<h1>Example heading <span class="badge badge-secondary">New</span>
</h1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<a class="badge badge-primary" href="#">Primary</a>
<a class="badge badge-secondary" href="#">Secondary</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<span class="badge badge-pill badge-primary">Primary</span>
<span class="badge badge-pill badge-secondary">Secondary</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div aria-label="Basic example" class="btn-group" role="group">
<button type="button" name="left" class="btn btn-secondary" value="">Left</button>
<button type="button" name="middle" class="btn btn-secondary" value="">Middle</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div aria-label="Toolbar with button groups" class="btn-toolbar" role="toolbar">
<div aria-label="First group" class="btn-group mr-2" role="group">
<button type="button" name="1" class="btn btn-secondary" value="">1</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div aria-label="Toolbar with button groups" class="btn-toolbar mb-3" role="toolbar">
<div aria-label="First group" class="btn-group mr-2" role="group">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div aria-label="Button group with nested dropdown" class="btn-group" role="group">
<button type="button" name="1" class="btn btn-secondary" value="">1</button>
<button type="button" name="2" class="btn btn-secondary" value="">2</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div aria-label="..." class="btn-group btn-group-lg" role="group">
<button type="button" name="left" class="btn btn-secondary" value="">Left</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="btn-group-vertical">
<button type="button" name="button" class="btn btn-secondary" value="">Button</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<a href="#" class="btn btn-primary" role="button">Link</a>
<button type="submit" name="Button" class="btn btn-primary" value="">Button</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<button type="button" name="primary" class="btn btn-primary" value="">Primary</button>
<button type="button" name="secondary" class="btn btn-secondary" value="">Secondary</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<button type="button" name="primary" class="btn btn-outline-primary" value="">Primary</button>
<button type="button" name="secondary" class="btn btn-outline-secondary" value="">Secondary</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<button type="button" name="large-button" class="btn btn-lg btn-primary" value="">Large button</button>
<button type="button" name="large-button" class="btn btn-lg btn-secondary" value="">Large button</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="card-columns">
<div class="card">
<img alt="..." class="card-img-top" src="/twbs-helper-module/img/docs/image-cap.svg">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card-deck">
<div class="card">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card-group">
<div class="card">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="bg-primary card mb-3 text-white">
<div class="card-header">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="border-primary card mb-3">
<div class="card-header">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="border-success card mb-3">
<div class="bg-transparent border-success card-header">
Header
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="card">
<div class="card-body">
This is some text within a card body.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card">
<div class="card-header">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="card" style="width: 18rem;">
<img alt="..." class="card-img-top" src="/twbs-helper-module/img/docs/image-cap.svg">
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="card" style="width: 18rem;">
<img alt="..." class="card-img-top" src="/twbs-helper-module/img/docs/image-cap.svg">
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card" style="width: 18rem;">
<ul class="list-group list-group-flush">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="card" style="width: 18rem;">
<img alt="..." class="card-img-top" src="/twbs-helper-module/img/docs/image-cap.svg">
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card mb-3">
<img alt="..." class="card-img-top" src="/twbs-helper-module/img/docs/image-cap.svg">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="bg-dark card text-white">
<img alt="..." class="card-img" src="/twbs-helper-module/img/docs/image-cap.svg">
<div class="card-img-overlay">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card text-center">
<div class="card-header">
<ul class="card-header-tabs nav nav-tabs">
<li class=" nav-item">
<a class="nav-link active" href="#">Active</a>
<a class="nav-link active" href="#" aria-current="page">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
Expand All @@ -28,7 +27,7 @@ <h5 class="card-title">Special title treatment</h5>
<div class="card-header">
<ul class="card-header-pills nav nav-pills">
<li class=" nav-item">
<a class="nav-link active" href="#">Active</a>
<a class="nav-link active" href="#" aria-current="page">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card w-75">
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="card" style="width: 18rem;">
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="carousel carousel-fade slide" data-ride="carousel" id="carouselExampleFade">
<div class="carousel-inner">
<div class="active carousel-item">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="carousel slide" data-ride="carousel" id="carouselExampleControls">
<div class="carousel-inner">
<div class="active carousel-item" data-interval="10000">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="carousel slide" data-ride="carousel" id="carouselExampleSlidesOnly">
<div class="carousel-inner">
<div class="active carousel-item">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="carousel slide" data-ride="carousel" id="carouselExampleCaptions">
<ol class="carousel-indicators">
<li class="active" data-slide-to="0" data-target="#carouselExampleCaptions">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="carousel slide" data-ride="carousel" id="carouselExampleControls">
<div class="carousel-inner">
<div class="active carousel-item">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="carousel slide" data-ride="carousel" id="carouselExampleIndicators">
<ol class="carousel-indicators">
<li class="active" data-slide-to="0" data-target="#carouselExampleIndicators">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="btn-group dropright">
<button type="button" name="dropright" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="btn btn-lg btn-secondary dropdown-toggle" value="">Dropright</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="btn-group dropup">
<button type="button" name="dropup" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="btn btn-lg btn-secondary dropdown-toggle" value="">Dropup</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="d-flex">
<div class="dropdown mr-1">
<button type="button" name="dropdown" id="dropdownMenuOffset" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" data-offset="10,20" class="btn btn-secondary dropdown-toggle" value="">Offset</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="dropdown">
<button type="button" name="dropdown" id="dropdownMenuButton" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="btn btn-secondary dropdown-toggle" value="">Dropdown</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="btn-group dropdown">
<button type="button" name="dropdown" class="btn btn-primary" value="">Dropdown</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body>
<div class="dropdown">
<button type="button" name="dropdown" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="btn btn-secondary dropdown-toggle" value="">Left-aligned but right aligned when large screen</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="dropdown">
<button type="button" name="dropdown" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="btn btn-secondary dropdown-toggle" value="">Right-aligned menu</button>
<div class="dropdown-menu dropdown-menu-right">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="dropdown-menu">
<form action="" method="POST" name="dropdown" id="dropdown" role="form">
<div class="form-group">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="dropdown-menu">
<h6 class="dropdown-header">Dropdown header</h6>
<a class="dropdown-item" href="#">Action</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml encoding="utf-8" ?><html><body><div class="dropdown-menu p-4 text-muted" style="max-width: 200px;">
<p>Some example text that's free-flowing within the dropdown menu.</p>
<p class="mb-0">And this is more example text.</p>
Expand Down
Loading
Loading