diff --git a/README.md b/README.md index dc3f5ec..c57bb09 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Laps — light WordPress profiler [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Rarst/laps/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Rarst/laps/?branch=master) +[![Latest Stable Version](https://poser.pugx.org/rarst/laps/v/stable)](https://packagist.org/packages/rarst/laps) [![Total Downloads](https://poser.pugx.org/rarst/laps/downloads)](https://packagist.org/packages/rarst/laps) ![Laps screenshot](http://i.imgur.com/zFokmkU.png) @@ -23,7 +24,6 @@ And some of third party hooks conventions for themes using: - [Theme Hook Alliance](http://zamoose.github.io/themehookalliance/) - [Hybrid](http://themehybrid.com/) - [Genesis](http://my.studiopress.com/themes/genesis/) - - [Thematic](http://thematictheme.com/) There are also additional optional timelines, displaying: diff --git a/src/Laps.php b/src/Laps.php index ec344de..8b8635e 100644 --- a/src/Laps.php +++ b/src/Laps.php @@ -176,7 +176,7 @@ class Laps { */ public function after_setup_theme() { - foreach ( array( 'THA', 'Hybrid', 'Genesis', 'Thematic', 'Yoast' ) as $vendor ) { + foreach ( [ 'THA', 'Hybrid', 'Genesis', 'Yoast' ] as $vendor ) { $class = "Rarst\\Laps\\{$vendor}_Events"; /** @var Laps_Events $events */ diff --git a/src/Thematic_Events.php b/src/Thematic_Events.php deleted file mode 100644 index c1e18d6..0000000 --- a/src/Thematic_Events.php +++ /dev/null @@ -1,62 +0,0 @@ - 'Header', - 'category' => 'theme', - ); - - $events['thematic_belowheader'][10] = array( - 'action' => 'stop', - 'event' => 'Header', - 'category' => 'theme', - ); - - $events['widget_area_primary_aside'][10] = array( - 'event' => 'Sidebar (primary aside)', - 'category' => 'theme', - ); - - $events['thematic_betweenmainasides'][10] = array( - 'action' => 'stop', - 'event' => 'Sidebar (primary aside)', - 'category' => 'theme', - ); - - $events['widget_area_secondary_aside'][10] = array( - 'event' => 'Sidebar (secondary aside)', - 'category' => 'theme', - ); - - $events['thematic_belowmainasides'][10] = array( - 'action' => 'stop', - 'event' => 'Sidebar (secondary aside)', - 'category' => 'theme', - ); - - return $events; - } -}