Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 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
5 changes: 5 additions & 0 deletions .github/workflows/plugin-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ jobs:
tests
bin
.github
src
packages
exclude-files: |
phpcs.xml.dist
ignore-codes: |
PluginCheck.CodeAnalysis.Offloading.OffloadedContent
WordPress.WP.I18n.TextDomainMismatch
textdomain_mismatch
hidden_files
Expand Down
3 changes: 2 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"mappings": {
"wp-content/mu-plugins": "./packages/e2e-tests/mu-plugins",
"wp-content/themes/raft": "https://downloads.wordpress.org/theme/raft.zip"
"wp-content/themes/raft": "https://downloads.wordpress.org/theme/raft.zip",
"wp-content/plugins/woocommerce": "./vendor/wp-content/plugins/woocommerce"
},
"lifecycleScripts": {
"afterStart": "bash bin/e2e-tests.sh"
Expand Down
4 changes: 4 additions & 0 deletions development.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

// phpcs:ignoreFile

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

if ( ! defined( 'ENABLE_OTTER_PRO_DEV' ) ) {
define( 'ENABLE_OTTER_PRO_DEV', true );
}
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-bento-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Bento Feature Grid', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'features' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-blog-cards.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Blog Post Cards', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'blog' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-case-study-metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Case Study With Metrics', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'portfolio' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-cta-banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'CTA Banner', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'call-to-action' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-faq-cards.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'FAQ Cards', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'faq' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-feature-cards.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Feature Cards', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'features' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-feature-split.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Feature Split', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'features' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-gallery-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Gallery Masonry Grid', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'gallery' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-glow-cta.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Glow CTA', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'call-to-action' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-hero-centered.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Centered Hero', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'header' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-hero-split.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Split Hero', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'header' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-icon-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Icon Feature Grid', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'icons' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-portfolio-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Portfolio Showcase Grid', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'portfolio' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-pricing-tiers.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Pricing Tiers', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'pricing' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-quote-spotlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Spotlight Quote', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'testimonials' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-review-stars.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Star Rating Reviews', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'testimonials' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-stats-banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Gradient Stats Banner', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'stats' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-team-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Team Grid with Hover Effect', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'team' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-testimonial-cards.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Testimonial Cards', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'testimonials' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-timeline-steps.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Timeline Steps', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'timeline' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/aw-video-feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Video Feature', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'video' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/blog-featured-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Blog Featured & List', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'blog' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/bold-image-hero.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Bold Image Hero', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'header' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/cafe-about.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Cafe - About', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'pages', 'cafe-pack' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/cafe-contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Cafe - Contact', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'pages', 'cafe-pack' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/cafe-homepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Cafe - Homepage', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'pages', 'cafe-pack' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/cafe-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Cafe - Menu', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'pages', 'cafe-pack' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/contact-form-split.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Contact Form with Details', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'contact' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/contact-info-cards.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Contact Info Cards', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'contact' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/content-checklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Content with Checklist', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'text' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/countdown-launch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Launch Countdown', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'waitlist' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/dark-cta-band.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'Indigo CTA Band', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'call-to-action' ),
Expand Down
4 changes: 4 additions & 0 deletions inc/patterns/faq-boxed-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package ThemeIsle
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

return array(
'title' => __( 'FAQ Boxed List', 'otter-blocks' ),
'categories' => array( 'otter-blocks', 'faq' ),
Expand Down
Loading
Loading