Skip to content

Instantly share code, notes, and snippets.

@mhulse
Created February 22, 2012 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhulse/1887065 to your computer and use it in GitHub Desktop.
Save mhulse/1887065 to your computer and use it in GitHub Desktop.
Pagelines 2.1.1, Base Theme 1.0.2 and Wordpress 3.3.1: PageLines sections for top and bottom ad leaderboards...
<?php
/*
Section: Bottom Leaderboard
Author: Micky Hulse
Description: Shows full width widgetized bottom leaderboard.
Class Name: BottomLeaderboard
Edition: pro
Workswith: footer
*/
class BottomLeaderboard extends PageLinesSection {
function section_persistent() {
$setup = array(
'name' => $this->name,
'description' => $this->settings['description'],
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
);
pagelines_register_sidebar($setup, 5);
}
function section_template() {
dynamic_sidebar($this->name);
}
}
<?php
/*
Section: Top Leaderboard
Author: Micky Hulse
Description: Shows full width widgetized leaderboard.
Class Name: TopLeaderboard
Edition: pro
Workswith: header
*/
class TopLeaderboard extends PageLinesSection {
function section_persistent() {
$setup = array(
'name' => $this->name,
'description' => $this->settings['description'],
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
);
pagelines_register_sidebar($setup, 5);
}
function section_template() {
dynamic_sidebar($this->name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment