Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
template stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Powers committed Apr 28, 2015
1 parent 09f2b53 commit 5c2c68a
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 1 deletion.
1 change: 1 addition & 0 deletions ___header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
asdfd
4 changes: 4 additions & 0 deletions build.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.banner-board{

padding: 200px;
}
19 changes: 19 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var gulp = require('gulp');
var less = require('gulp-less');
var path = require('path');

gulp.task('default', function() {
// place code for your default task here
});



gulp.task('less', function () {

return gulp.src('build.less')
.pipe(less({
paths: [ path.join(__dirname, 'less', 'includes') ]
}))


});
33 changes: 33 additions & 0 deletions page-bindings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/*
* Template Name: PageLines Bindings
* Description: Overview of the PageLines binding APIs
*/


$opts = array(
array(
'key' => 'post_content',
'col' => 1,
'type' => 'edit_post',
'title' => __( 'Edit Post Content', 'pagelines' ),
'label' => __( '<i class="icon icon-pencil"></i> Edit Post Info', 'pagelines' ),
'help' => __( 'This section uses WordPress posts. Edit post information using WordPress admin.', 'pagelines' ),
'classes' => 'btn-primary'
),
);

pl_add_template_settings( $opts );


get_header(); ?>

<div class="pl-content">
<div class="row">
<div class="col-sm-4">123</div>
<div class="col-sm-4">123</div>
<div class="col-sm-4">123</div>
</div>
</div>

<?php get_footer(); ?>
Empty file added page-styling.php
Empty file.
61 changes: 61 additions & 0 deletions page-welcome.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/*
* Template Name: Welcome to PageLines
* Description: Congrats, lets get started.
*/


$opts = array(
array(
'key' => 'post_content',
'col' => 1,
'type' => 'edit_post',
'title' => __( 'Edit Post Content', 'pagelines' ),
'label' => __( '<i class="icon icon-pencil"></i> Edit Post Info', 'pagelines' ),
'help' => __( 'This section uses WordPress posts. Edit post information using WordPress admin.', 'pagelines' ),
'classes' => 'btn-primary'
),
);

pl_add_template_settings( $opts );



$default_banner = array(

'header' => 'Built for Perfectionists',
'subheader' => 'PageLines and WordPress is the best way to create and maintain client websites.',
'button_primary' => 'http://www.pagelines.com',
'button_primary_text' => 'Read the Docs',
'button_primary_theme' => 'ol-white',
'effects' => 'pl-effect-window-height',
'theme' => 'pl-scheme-dark'

);


?>

<div class="banner-board">

<?php echo pl_get_section( array('section' => 'elements', 'id' => 'e987654dasdf', 'settings' => $default_banner ) );?>

</div>


<?php echo pl_get_section( array('section' => 'slider', 'id' => '424242') );?>

<?php echo pl_get_section( array('section' => 'hero', 'id' => '2222223') );?>

<?php echo do_shortcode( '[plsection section="slider"]');?>


<div class="pl-content">
<div class="row-flex">
<div class="col-sm-4">123</div>
<div class="col-sm-4">123</div>
<div class="col-sm-4">123</div>
</div>
</div>


13 changes: 12 additions & 1 deletion sections/simple_nav/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,19 @@ function section_opts(){
}


function nav_config(){
$config = array(
'key' => 'simple_nav_menu',
'menu' => $this->opt('simple_nav_menu'),
'mode' => 'simple',
'default' => false
);

return $config;
}

function section_template() {
echo pl_dynamic_nav('simple_nav_menu', $this->opt('simple_nav_menu'), '', '', 'quicklinks');
echo pl_dynamic_nav( $this->nav_config() );
}

}

0 comments on commit 5c2c68a

Please sign in to comment.