Dropped Thematic events as the theme is obsolete.
This commit is contained in:
1 parent
62ea1f4246
commit
c966fb1552
3 files changed
+2
-64
No files matched your search
@@ -1,5 +1,6 @@
|
||||
# Laps — light WordPress profiler
|
||||
[](https://scrutinizer-ci.com/g/Rarst/laps/?branch=master)
|
||||
[](https://packagist.org/packages/rarst/laps)
|
||||
[](https://packagist.org/packages/rarst/laps)
|
||||
|
||||

|
||||
@@ -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:
|
||||
|
||||
|
||||
+1
-1
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user