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
-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