8 Commits 8d08d6f8e5 ... 1c35123243

Author SHA1 Message Date
  windhamdavid 1c35123243 php7.3 dom parser 1 month ago
  windhamdavid 28196e675f styles 1 month ago
  windhamdavid 2cefc25e56 update cal 1 month ago
  windhamdavid 03953a9ede dom parser for php 7.3 1 month ago
  windhamdavid 7878b284d7 update grunt 1 month ago
  windhamdavid 9aeb9d274e guten.js for video_meta 1 month ago
  windhamdavid 1d28ed4e88 guten.js for video_meta 1 month ago
  windhamdavid d14248eb9a add align-wide 1 month ago
11 changed files with 3898 additions and 12 deletions
  1. 1 1
      css/front.min.css
  2. 1 0
      functions.php
  3. 2328 0
      inc/lib/html_dom.php
  4. 21 0
      inc/tweaks.php
  5. 5 0
      inc/utils.php
  6. 28 0
      js/about.js
  7. 33 0
      js/guten.js
  8. 1457 0
      package-lock.json
  9. 7 7
      package.json
  10. 15 2
      style.css
  11. 2 2
      style.min.css

File diff suppressed because it is too large
+ 1 - 1
css/front.min.css


+ 1 - 0
functions.php

@@ -15,6 +15,7 @@ function dw_setup() {
 	set_post_thumbnail_size( 150, 150, true );
 	add_image_size( 'post-large', 770, 577, true );
 	add_image_size( 'studio', 400, 300, true );
+	add_theme_support( 'align-wide' );
 }
 endif; 
 add_action( 'after_setup_theme', 'dw_setup' );

File diff suppressed because it is too large
+ 2328 - 0
inc/lib/html_dom.php


+ 21 - 0
inc/tweaks.php

@@ -266,4 +266,25 @@ function dw_video_embed( $attr, $content='' ) {
 add_shortcode( 'video', 'dw_video_embed' );
 
 
+/*************   Gutenberg Editor Stuff ******************/
+
+function dw_guten_fullwidth() {
+     add_theme_support( 'align-wide' );
+}
+add_action( 'after_setup_theme', 'dw_guten_fullwidth' );
+
+function guten_enqueue() {
+    wp_enqueue_script('guten-script', get_template_directory_uri() . '/js/guten.js',
+        array( 'wp-blocks', 'wp-element', 'wp-components' )
+    );
+}
+add_action( 'enqueue_block_editor_assets', 'guten_enqueue' );
+function gutenberg_video_meta_init() {
+    register_meta( 'post', 'media', array(
+        'show_in_rest' => true,
+		'single' => true,
+		'type' => 'string'
+    ) );
+}
+add_action( 'init', 'gutenberg_video_meta_init' );
 ?>

+ 5 - 0
inc/utils.php

@@ -72,6 +72,11 @@ function _s_backbone_get_request_parameters() {
 	return $uri;
 }
 
+/*******************
+< PHP 7.3 include file as dom.php
+>= PHP 7.3 include file as html_dom.php
+**********************/
+
 function pull_til() {
 	include('lib/dom.php');
 

+ 28 - 0
js/about.js

@@ -431,14 +431,42 @@ $('.calendar').fullCalendar ({
 			},
 			{
 				title: 'Project',
+				start: '2019-09-03',
+				end: '2019-09-28'
+			},
+			{
+				title: 'Project',
+				start: '2019-10-01',
+				end: '2019-10-06'
+			},
+			{
+				title: 'Project',
 				start: '2019-10-01',
 				end: '2019-11-01'
 			},
 			{
+				title: 'Contract',
+				start: '2019-11-01',
+				end: '2020-01-31',
+				borderColor: 'blue'
+			},
+			{
+				title: 'Holiday',
+				start: '2019-11-26',
+				end: '2019-12-01',
+				borderColor: 'red'
+			},
+			{
 				title: 'Holiday',
 				start: '2019-12-23',
 				end: '2020-01-05',
 				borderColor: 'red'
+			},
+			{
+				title: 'Contract',
+				start: '2020-02-01',
+				end: '2020-03-31',
+				borderColor: 'blue'
 			}
 	]
 });

+ 33 - 0
js/guten.js

@@ -0,0 +1,33 @@
+registerBlockType('my-plugin/event-location', {
+  title: 'Media URL',
+  category: 'widgets',
+
+  attributes: {
+    location: {
+      type: 'string',
+      source: 'meta',
+      meta: 'media_url'
+    }
+  },
+
+  edit ({ className, attributes, setAttributes }) {
+    const { location } = attributes
+
+    function updateContent (e) {
+      setAttributes({ location: e.target.value })
+    }
+
+    return el(
+      'p',
+      { className: className },
+      el(
+        'input',
+        { value: location, onChange: updateContent }
+      )
+    )
+  },
+
+  save () {
+    return null
+  }
+})

File diff suppressed because it is too large
+ 1457 - 0
package-lock.json


+ 7 - 7
package.json

@@ -7,11 +7,11 @@
     "url": "git@github.com:windhamdavid/dw.git"
   },
   "devDependencies": {
-    "grunt": "~0.4.5",
-    "grunt-contrib-jshint": "~0.10.0",
-	"grunt-contrib-uglify": "~0.6.0",
-	"grunt-contrib-cssmin": "~0.10.0",
-	"grunt-contrib-htmlmin": "~0.3.0",
-	"grunt-contrib-concat": "~0.5.0"
+    "grunt": "^1.0.4",
+    "grunt-contrib-concat": "^0.5.1",
+    "grunt-contrib-cssmin": "^3.0.0",
+    "grunt-contrib-htmlmin": "^3.1.0",
+    "grunt-contrib-jshint": "^2.1.0",
+    "grunt-contrib-uglify": "^4.0.1"
   }
-}
+}

+ 15 - 2
style.css

@@ -251,11 +251,14 @@ input,button,select,textarea {
 	text-align: right;
 }
 em {
-	font-weight: bold;
+	font-style: italic;
 }
 i {
 	font-style: italic;
 }
+b {
+	font-weight: bold;
+}
 .big {
 	font-size: 29px;
 	font-weight: bold;
@@ -835,7 +838,11 @@ h4.spread {
   -o-transform: rotate(-45deg);
 }
 
-
+.entry-content ol {
+	padding: 0 25px;
+	list-style: outside;
+	list-style-type: decimal;
+}
 #archives li {
 	list-style: none;
 	margin: 2px 8px;
@@ -2526,6 +2533,12 @@ img.me {
 #content img.aligncenter {
 	margin-bottom: 12px;
 }
+#content img.alignfull,
+#content img.alignwide,
+ {
+	max-width: 100vw;
+	width: 100vw;
+}
 #content .wp-caption {
 	color: #737373;
 	line-height: 18px;

File diff suppressed because it is too large
+ 2 - 2
style.min.css