Skip to content

Commit

Permalink
Updated namespace and constant prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rgiosan committed Nov 29, 2024
1 parent 8f1fea4 commit 35fec88
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).

## [1.3.1] - 2024-11-29

### Changed

- Namespace and constant prefix.

## [1.3.0] - 2024-11-15

### Changed
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ composer require s3rgiosan/littlefoot
2. Run `composer install` to install the plugin.
3. Activate the plugin from your WordPress admin area or using WP-CLI.

## Usage

This plugin requires no configuration.

## Options

### `activateDelay`
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://github.com/s3rgiosan/littlefoot
* Requires at least: 6.4
* Requires PHP: 7.4
* Version: 1.3.0
* Version: 1.3.1
* Author: Sérgio Santos
* Author URI: https://s3rgiosan.dev/?utm_source=wp-plugins&utm_medium=littlefoot&utm_campaign=author-uri
* License: MIT
Expand All @@ -15,18 +15,18 @@
* @package Littlefoot
*/

namespace s3rgiosan\WP\Littlefoot;
namespace S3S\WP\Littlefoot;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}

define( 'S3RGIOSAN_LITTLEFOOT_PATH', plugin_dir_path( __FILE__ ) );
define( 'S3RGIOSAN_LITTLEFOOT_URL', plugin_dir_url( __FILE__ ) );
define( 'S3S_LITTLEFOOT_PATH', plugin_dir_path( __FILE__ ) );
define( 'S3S_LITTLEFOOT_URL', plugin_dir_url( __FILE__ ) );

if ( file_exists( S3RGIOSAN_LITTLEFOOT_PATH . 'vendor/autoload.php' ) ) {
require_once S3RGIOSAN_LITTLEFOOT_PATH . 'vendor/autoload.php';
if ( file_exists( S3S_LITTLEFOOT_PATH . 'vendor/autoload.php' ) ) {
require_once S3S_LITTLEFOOT_PATH . 'vendor/autoload.php';
}

/**
Expand All @@ -45,7 +45,7 @@ function enqueue_assets() {

$asset_file = sprintf(
'%s/build/%s.asset.php',
untrailingslashit( S3RGIOSAN_LITTLEFOOT_PATH ),
untrailingslashit( S3S_LITTLEFOOT_PATH ),
$filename
);

Expand All @@ -57,7 +57,7 @@ function enqueue_assets() {
"littlefoot-$asset_handle",
sprintf(
'%s/build/%s.js',
untrailingslashit( S3RGIOSAN_LITTLEFOOT_URL ),
untrailingslashit( S3S_LITTLEFOOT_URL ),
$filename
),
$dependencies,
Expand All @@ -74,15 +74,15 @@ function enqueue_assets() {

$asset_file = sprintf(
'%s/build/%s.css',
untrailingslashit( S3RGIOSAN_LITTLEFOOT_PATH ),
untrailingslashit( S3S_LITTLEFOOT_PATH ),
$filename
);

wp_register_style(
"littlefoot-$asset_handle",
sprintf(
'%s/build/%s.css',
untrailingslashit( S3RGIOSAN_LITTLEFOOT_URL ),
untrailingslashit( S3S_LITTLEFOOT_URL ),
$filename
),
[],
Expand Down

0 comments on commit 35fec88

Please sign in to comment.