Skip to content

Commit

Permalink
chore: Initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumaiya Siddika committed Jul 3, 2018
0 parents commit b72d7f0
Show file tree
Hide file tree
Showing 106 changed files with 23,495 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules
config.codekit
build
93 changes: 93 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package Dokanee
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

get_header(); ?>

<div id="primary" <?php dokanee_content_class(); ?>>
<main id="main" <?php dokanee_main_class(); ?>>
<?php
/**
* dokanee_before_main_content hook.
*
* @since 0.1
*/
do_action( 'dokanee_before_main_content' );
?>

<div class="inside-article">

<?php
/**
* dokanee_before_content hook.
*
* @since 0.1
*
* @hooked dokanee_featured_page_header_inside_single - 10
*/
do_action( 'dokanee_before_content' );
?>

<header class="entry-header">
<h1 class="entry-title" itemprop="headline"><?php echo apply_filters( 'dokanee_404_title', __( 'Oops! That page can&rsquo;t be found.', 'dokanee' ) ); // WPCS: XSS OK. ?></h1>
</header><!-- .entry-header -->

<?php
/**
* dokanee_after_entry_header hook.
*
* @since 0.1
*
* @hooked dokanee_post_image - 10
*/
do_action( 'dokanee_after_entry_header' );
?>

<div class="entry-content" itemprop="text">
<?php
echo '<p>' . apply_filters( 'dokanee_404_text', __( 'It looks like nothing was found at this location. Maybe try searching?', 'dokanee' ) ) . '</p>'; // WPCS: XSS OK.

get_search_form();
?>
</div><!-- .entry-content -->

<?php
/**
* dokanee_after_content hook.
*
* @since 0.1
*/
do_action( 'dokanee_after_content' );
?>

</div><!-- .inside-article -->

<?php
/**
* dokanee_after_main_content hook.
*
* @since 0.1
*/
do_action( 'dokanee_after_main_content' );
?>
</main><!-- #main -->
</div><!-- #primary -->

<?php
/**
* dokanee_after_primary_content_area hook.
*
* @since 2.0
*/
do_action( 'dokanee_after_primary_content_area' );

dokanee_construct_sidebars();

get_footer();
48 changes: 48 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
'use strict';
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
grunt.initConfig({

// setting folder templates
dirs: {
css: 'assets/css',
less: 'assets/less',
fonts: 'assets/fonts',
images: 'assets/images',
js: 'assets/js'
},

// Compile all .less files.
less: {

// one to one
front: {
files: {
'<%= dirs.css %>/master.css': '<%= dirs.less %>/master.less',
},
options: {
sourceMap: true,
sourceMapRootpath: '../../'
}
},
},

watch: {
less: {
files: ['<%= dirs.less %>/*.less'],
tasks: ['less:front'],
options: {
livereload: true
}
}
},
});

// Load NPM tasks to be used here
grunt.loadNpmTasks( 'grunt-contrib-less' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );

grunt.registerTask( 'default', [
'watch',
]);
};
74 changes: 74 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?php
/**
* The template for displaying Archive pages.
*
* @package Dokanee
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

get_header(); ?>

<div id="primary" <?php dokanee_content_class(); ?>>
<main id="main" <?php dokanee_main_class(); ?>>
<?php
/**
* dokanee_before_main_content hook.
*
* @since 0.1
*/
do_action( 'dokanee_before_main_content' );

if ( have_posts() ) :

/**
* dokanee_archive_title hook.
*
* @since 0.1
*
* @hooked dokanee_archive_title - 10
*/
do_action( 'dokanee_archive_title' );

while ( have_posts() ) : the_post();

/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );

endwhile;

dokanee_content_nav( 'nav-below' );

else :

get_template_part( 'no-results', 'archive' );

endif;

/**
* dokanee_after_main_content hook.
*
* @since 0.1
*/
do_action( 'dokanee_after_main_content' );
?>
</main><!-- #main -->
</div><!-- #primary -->

<?php
/**
* dokanee_after_primary_content_area hook.
*
* @since 2.0
*/
do_action( 'dokanee_after_primary_content_area' );

dokanee_construct_sidebars();

get_footer();
65 changes: 65 additions & 0 deletions assets/css/admin/editor-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
img {
max-width: 100%;
height: auto;
}

pre {
background: rgba(0, 0, 0, 0.05);
font-family: inherit;
font-size: inherit;
line-height: normal;
margin-bottom: 1.5em;
padding: 20px;
overflow: auto;
max-width: 100%;
}

blockquote {
border-left: 5px solid rgba(0, 0, 0, 0.05);
padding: 20px;
font-size: 1.2em;
font-style:italic;
margin: 0 0 1.5em;
position: relative;
}

blockquote p:last-child {
margin: 0;
}

table, th, td {
border: 1px solid rgba(0, 0, 0, 0.1);
}
table {
border-collapse: separate;
border-spacing: 0;
border-width: 1px 0 0 1px;
margin: 0 0 1.5em;
table-layout: fixed;
width: 100%;
}
th,
td {
padding: 8px;
}
th {
border-width: 0 1px 1px 0;
}
td {
border-width: 0 1px 1px 0;
}

hr {
background-color: rgba(0, 0, 0, 0.1);
border: 0;
height: 1px;
margin-bottom: 40px;
margin-top: 40px;
}

/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
max-width: 100%;
}
77 changes: 77 additions & 0 deletions assets/css/admin/meta-box.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
.dokanee-meta-box-content > div {
padding: 12px;
}
#dokanee_layout_options_meta_box .inside {
padding: 0;
margin:0;
}
#dokanee-meta-box-container .dokanee-meta-box-menu {
position: relative;
float: left;
list-style: none;
width: 180px;
line-height: 1em;
margin: 0 0 -1px 0;
padding: 0;
background-color: #fafafa;
border-right: 1px solid #eee;
box-sizing: border-box;
}

#dokanee-meta-box-container .dokanee-meta-box-menu li {
display: block;
position: relative;
margin: 0;
padding: 0;
line-height: 20px;
}

#dokanee-meta-box-container .dokanee-meta-box-menu li a {
display: block;
margin: 0;
padding: 10px;
line-height: 20px !important;
text-decoration: none;
border-bottom: 1px solid #eee;
box-shadow: none;
}

#dokanee-meta-box-container .dokanee-meta-box-content {
float: left;
width: calc( 100% - 180px );
margin-left: -1px;
border-left: 1px solid #eee;
}

#dokanee-meta-box-container {
overflow: hidden;
background: #fff;
background: linear-gradient( 90deg, #fafafa 0%, #fafafa 180px, #fff 180px, #fff 100% );
}

#dokanee-meta-box-container .current {
position: relative;
font-weight: bold;
background-color: #e0e0e0;
}

#dokanee-meta-box-container .current a {
color: #555;
}

#dokanee-meta-box-container label {
font-weight: 400;
display: inline-block;
margin-bottom: 3px;
}


.dokanee-meta-box-menu li {
display: inline-block;
}

#side-sortables #dokanee-meta-box-container .dokanee-meta-box-menu,
#side-sortables #dokanee-meta-box-container .dokanee-meta-box-content {
float: none;
width: 100%;
}
Loading

0 comments on commit b72d7f0

Please sign in to comment.