Dropped Thematic events as the theme is obsolete.

This commit is contained in:
Andrey Savchenko committed 2018-02-07 22:55:51 +02:00
1 parent 62ea1f4246
commit c966fb1552
3 files changed
+2 -64

No files matched your search

+1 -1
View File
@@ -1,5 +1,6 @@
# Laps — light WordPress profiler # 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) [![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) [![Total Downloads](https://poser.pugx.org/rarst/laps/downloads)](https://packagist.org/packages/rarst/laps)
![Laps screenshot](http://i.imgur.com/zFokmkU.png) ![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/) - [Theme Hook Alliance](http://zamoose.github.io/themehookalliance/)
- [Hybrid](http://themehybrid.com/) - [Hybrid](http://themehybrid.com/)
- [Genesis](http://my.studiopress.com/themes/genesis/) - [Genesis](http://my.studiopress.com/themes/genesis/)
- [Thematic](http://thematictheme.com/)
There are also additional optional timelines, displaying: There are also additional optional timelines, displaying:
+1 -1
View File
@@ -176,7 +176,7 @@ class Laps {
*/ */
public function after_setup_theme() { 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"; $class = "Rarst\\Laps\\{$vendor}_Events";
/** @var Laps_Events $events */ /** @var Laps_Events $events */
-62
View File
@@ -1,62 +0,0 @@
<?php
namespace Rarst\Laps;
/**
* Events for Thematic Framework based themes
*
* @link http://thematictheme.com/
*/
class Thematic_Events extends Laps_Events {
/**
* @return bool
*/
protected function is_applicable() {
return function_exists( 'thematic_init' );
}
/**
* @return array
*/
protected function get_events() {
$events = array();
$events['thematic_aboveheader'][10] = array(
'event' => '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;
}
}