initial
This commit is contained in:
81
public/class-apigoat_doc-public.php
Normal file
81
public/class-apigoat_doc-public.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The public-facing functionality of the plugin.
|
||||
*
|
||||
* @link http://example.com
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @package apigoat_doc
|
||||
* @subpackage apigoat_doc/public
|
||||
*/
|
||||
|
||||
/**
|
||||
* The public-facing functionality of the plugin.
|
||||
*
|
||||
* @package apigoat_doc
|
||||
* @subpackage apigoat_doc/public
|
||||
* @author Your Name <email@example.com>
|
||||
*/
|
||||
class apigoat_doc_Public
|
||||
{
|
||||
|
||||
/**
|
||||
* The ID of this plugin.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access private
|
||||
* @var string $apigoat_doc The ID of this plugin.
|
||||
*/
|
||||
private $apigoat_doc;
|
||||
|
||||
/**
|
||||
* The version of this plugin.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access private
|
||||
* @var string $version The current version of this plugin.
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* Initialize the class and set its properties.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @param string $apigoat_doc The name of the plugin.
|
||||
* @param string $version The version of this plugin.
|
||||
*/
|
||||
public function __construct($apigoat_doc, $version)
|
||||
{
|
||||
|
||||
$this->apigoat_doc = $apigoat_doc;
|
||||
$this->version = $version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the stylesheets for the public-facing side of the site.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_styles()
|
||||
{
|
||||
wp_enqueue_style($this->apigoat_doc, plugin_dir_url(__FILE__) . 'css/apigoat_doc-public.css', array(), $this->version, 'all');
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the JavaScript for the public-facing side of the site.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_scripts()
|
||||
{
|
||||
wp_enqueue_script($this->apigoat_doc, plugin_dir_url(__FILE__) . 'js/apigoat_doc-public.js', array('jquery'), $this->version, false);
|
||||
}
|
||||
|
||||
public function register_session()
|
||||
{
|
||||
if (!session_id()) {
|
||||
session_start();
|
||||
}
|
||||
}
|
||||
}
|
||||
46
public/css/apigoat_doc-public.css
Normal file
46
public/css/apigoat_doc-public.css
Normal file
@@ -0,0 +1,46 @@
|
||||
.wedocs-single-wrap {
|
||||
width: 100%;
|
||||
display: -ms-flex;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-single-content {
|
||||
width: 75%;
|
||||
border-left: 1px solid #eee;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap:before, .wedocs-single-wrap:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list {
|
||||
list-style: none;
|
||||
margin: 0 12px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li.current_page_parent > a, .wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li.current_page_item > a, .wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li.current_page_ancestor > a {
|
||||
background: #3598DB;
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list li a {
|
||||
display: block;
|
||||
padding: 8px 10px 8px 20px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li > a:before {
|
||||
margin-right: 10px;
|
||||
content: '';
|
||||
}
|
||||
/*# sourceMappingURL=apigoat_doc-public.css.map */
|
||||
9
public/css/apigoat_doc-public.css.map
Normal file
9
public/css/apigoat_do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AE,GAAG,CAAC,AAAA,OAAO,CAAC;EACnE,YAAY,EAAE,IAAI;EAClB,OAAO,EAAC,EAAE;CACV",
|
||||
"sources": [
|
||||
"apigoat_doc-public.scss"
|
||||
],
|
||||
"names": [],
|
||||
"file": "apigoat_doc-public.css"
|
||||
}
|
||||
45
public/css/apigoat_doc-public.scss
Normal file
45
public/css/apigoat_doc-public.scss
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
.wedocs-single-wrap {
|
||||
width: 100%;
|
||||
display: -ms-flex;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-single-content {
|
||||
width: 75%;
|
||||
border-left: 1px solid #eee;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap:before, .wedocs-single-wrap:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list {
|
||||
list-style: none;
|
||||
margin: 0 12px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li.current_page_parent > a, .wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li.current_page_item > a, .wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li.current_page_ancestor > a {
|
||||
background: #3598DB;
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list li a {
|
||||
display: block;
|
||||
padding: 8px 10px 8px 20px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wedocs-single-wrap .wedocs-sidebar ul.doc-nav-list > li > a:before {
|
||||
margin-right: 10px;
|
||||
content:'';
|
||||
}
|
||||
1
public/index.php
Normal file
1
public/index.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php // Silence is golden
|
||||
32
public/js/apigoat_doc-public.js
Normal file
32
public/js/apigoat_doc-public.js
Normal file
@@ -0,0 +1,32 @@
|
||||
(function( $ ) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* All of the code for your public-facing JavaScript source
|
||||
* should reside in this file.
|
||||
*
|
||||
* Note: It has been assumed you will write jQuery code here, so the
|
||||
* $ function reference has been prepared for usage within the scope
|
||||
* of this function.
|
||||
*
|
||||
* This enables you to define handlers, for when the DOM is ready:
|
||||
*
|
||||
* $(function() {
|
||||
*
|
||||
* });
|
||||
*
|
||||
* When the window is loaded:
|
||||
*
|
||||
* $( window ).load(function() {
|
||||
*
|
||||
* });
|
||||
*
|
||||
* ...and/or other possibilities.
|
||||
*
|
||||
* Ideally, it is not considered best practise to attach more than a
|
||||
* single DOM-ready or window-load handler for a particular page.
|
||||
* Although scripts in the WordPress core, Plugins and Themes may be
|
||||
* practising this, we should strive to set a better example in our own work.
|
||||
*/
|
||||
|
||||
})( jQuery );
|
||||
16
public/partials/apigoat_doc-public-display.php
Normal file
16
public/partials/apigoat_doc-public-display.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Provide a public-facing view for the plugin
|
||||
*
|
||||
* This file is used to markup the public-facing aspects of the plugin.
|
||||
*
|
||||
* @link http://example.com
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @package apigoat_doc
|
||||
* @subpackage apigoat_doc/public/partials
|
||||
*/
|
||||
?>
|
||||
|
||||
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
||||
Reference in New Issue
Block a user