@@ -692,7 +692,7 @@ function processBlog($files) {
692692 mkdir ($ blogFolder );
693693 }
694694
695- $ blogArr = Array ('post-page ' => null ,'types ' => Array ('title ' => false , 'keywords ' => false , 'description ' => false , 'author ' => false , 'image ' => false , 'image-alt-text ' => false , 'short-blog ' => false , 'full-blog ' => false , 'link-text ' => false , ' date ' => false ), 'posts ' => Array ());
695+ $ blogArr = Array ('post-page ' => null ,'types ' => Array ('title ' => false , 'keywords ' => false , 'description ' => false , 'author ' => false , 'date ' => false , ' image ' => false , 'image-alt-text ' => false , 'short-blog ' => false , 'full-blog ' => false , 'link-text ' => false ), 'posts ' => Array ());
696696
697697 foreach ($ files as $ file ) {
698698 $ fileData = file_get_contents ('../ ' . $ file , true );
@@ -713,7 +713,7 @@ function processBlog($files) {
713713 }
714714 $ blog ->class = str_replace ('auto-blog-head ' , '' , $ blog ->class );
715715 } else if (strpos ($ blog ->class , 'auto-blog-list ' ) !== false ) {
716- foreach ($ html ->find ('.auto-blog-list .auto-blog-title, .auto-blog-list .auto-blog-bg-img, .auto-blog-list .auto-blog-img, .auto-blog-list .auto-blog-short, .auto-blog-list .auto-blog-full, .auto-blog-list .auto-blog-link ' ) as $ list ) {
716+ foreach ($ html ->find ('.auto-blog-list .auto-blog-title, .auto-blog-list .auto-blog-date, .auto-blog-list .auto-blog- bg-img, .auto-blog-list .auto-blog-img, .auto-blog-list .auto-blog-short, .auto-blog-list .auto-blog-full, .auto-blog-list .auto-blog-link ' ) as $ list ) {
717717 if (strpos ($ list ->class , 'auto-blog-title ' ) !== false ) {
718718 $ list ->innertext = '<?=getBlog("title", "$x")?> ' ;
719719 $ list ->class = str_replace ('auto-blog-title ' , '' , $ list ->class );
@@ -737,7 +737,7 @@ function processBlog($files) {
737737 $ list ->class = str_replace ('auto-blog-full ' , '' , $ list ->class );
738738 $ blogArr ['types ' ]['full ' ] = true ;
739739 } else if (strpos ($ list ->class , 'auto-blog-date ' ) !== false ) {
740- $ list ->innertext = '<?=getBlog("full- date", "$x")?> ' ;
740+ $ list ->innertext = '<?=getBlog("date", "$x")?> ' ;
741741 $ list ->class = str_replace ('auto-blog-date ' , '' , $ list ->class );
742742 $ blogArr ['types ' ]['date ' ] = true ;
743743 } else if (strpos ($ list ->class , 'auto-blog-link ' ) !== false ) {
@@ -757,7 +757,7 @@ function processBlog($files) {
757757
758758 } else if (strpos ($ blog ->class , 'auto-blog-post ' ) !== false ) {
759759 $ blogArr ['post-page ' ] = str_replace (Array ('.html ' , '.htm ' ), '' , $ file );
760- foreach ($ html ->find ('.auto-blog-post .auto-blog-title, .auto-blog-post .auto-blog-bg-img, .auto-blog-post .auto-blog-img, .auto-blog-post .auto-blog-short, .auto-blog-post .auto-blog-full ' ) as $ post ) {
760+ foreach ($ html ->find ('.auto-blog-post .auto-blog-title, .auto-blog-post .auto-blog-date, .auto-blog-post .auto-blog- bg-img, .auto-blog-post .auto-blog-img, .auto-blog-post .auto-blog-short, .auto-blog-post .auto-blog-full ' ) as $ post ) {
761761 if (strpos ($ post ->class , 'auto-blog-title ' ) !== false ) {
762762 $ post ->innertext = '<?=getBlog("title")?> ' ;
763763 $ post ->class = str_replace ('auto-blog-title ' , '' , $ post ->class );
@@ -781,7 +781,7 @@ function processBlog($files) {
781781 $ post ->class = str_replace ('auto-blog-full ' , '' , $ post ->class );
782782 $ blogArr ['types ' ]['full-blog ' ] = true ;
783783 } else if (strpos ($ post ->class , 'auto-blog-date ' ) !== false ) {
784- $ post ->innertext = '<?=getBlog("full- date", "$x ")?> ' ;
784+ $ post ->innertext = '<?=getBlog("date")?> ' ;
785785 $ post ->class = str_replace ('auto-blog-date ' , '' , $ post ->class );
786786 $ blogArr ['types ' ]['date ' ] = true ;
787787 }
0 commit comments