Skip to content

Commit

Permalink
Merge pull request #114 from wpugph/config/wp-cfm
Browse files Browse the repository at this point in the history
WP CFM file and Content Excerpt
  • Loading branch information
eabquina authored Apr 20, 2020
2 parents 75fa010 + 47c86ea commit 5bf4df9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/private/config/dev/widgets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"widget_custom_html": "a:1:{s:12:\"_multiwidget\";i:1;}",
"widget_media_audio": "a:1:{s:12:\"_multiwidget\";i:1;}",
"widget_media_gallery": "a:3:{i:2;a:6:{s:5:\"title\";s:35:\"Our Partners and Strategic Sponsors\";s:3:\"ids\";a:2:{i:0;i:347;i:1;i:346;}s:7:\"columns\";i:2;s:4:\"size\";s:5:\"large\";s:9:\"link_type\";s:4:\"none\";s:14:\"orderby_random\";b:0;}i:3;a:6:{s:5:\"title\";s:31:\"Our Major Contributing Sponsors\";s:3:\"ids\";a:7:{i:0;i:348;i:1;i:351;i:2;i:349;i:3;i:354;i:4;i:353;i:5;i:350;i:6;i:352;}s:7:\"columns\";i:4;s:4:\"size\";s:6:\"medium\";s:9:\"link_type\";s:4:\"none\";s:14:\"orderby_random\";b:0;}s:12:\"_multiwidget\";i:1;}",
"widget_media_image": "a:3:{i:2;a:15:{s:4:\"size\";s:6:\"medium\";s:5:\"width\";i:0;s:6:\"height\";i:0;s:7:\"caption\";s:0:\"\";s:3:\"alt\";s:0:\"\";s:9:\"link_type\";s:6:\"custom\";s:8:\"link_url\";s:0:\"\";s:13:\"image_classes\";s:0:\"\";s:12:\"link_classes\";s:0:\"\";s:8:\"link_rel\";s:0:\"\";s:17:\"link_target_blank\";b:0;s:11:\"image_title\";s:0:\"\";s:13:\"attachment_id\";i:0;s:3:\"url\";s:0:\"\";s:5:\"title\";s:0:\"\";}i:4;a:15:{s:4:\"size\";s:9:\"thumbnail\";s:5:\"width\";i:150;s:6:\"height\";i:150;s:7:\"caption\";s:38:\"DevCon Community Technology Initiative\";s:3:\"alt\";s:0:\"\";s:9:\"link_type\";s:6:\"custom\";s:8:\"link_url\";s:0:\"\";s:13:\"image_classes\";s:16:\"dctx-footer-logo\";s:12:\"link_classes\";s:0:\"\";s:8:\"link_rel\";s:0:\"\";s:17:\"link_target_blank\";b:0;s:11:\"image_title\";s:0:\"\";s:13:\"attachment_id\";i:528;s:3:\"url\";s:81:\"https:\/\/dev-dctx1.pantheonsite.io\/wp-content\/uploads\/2020\/04\/logo-big-150x150.png\";s:5:\"title\";s:0:\"\";}s:12:\"_multiwidget\";i:1;}",
"widget_media_image": "a:3:{i:2;a:15:{s:4:\"size\";s:6:\"medium\";s:5:\"width\";i:0;s:6:\"height\";i:0;s:7:\"caption\";s:0:\"\";s:3:\"alt\";s:0:\"\";s:9:\"link_type\";s:6:\"custom\";s:8:\"link_url\";s:0:\"\";s:13:\"image_classes\";s:0:\"\";s:12:\"link_classes\";s:0:\"\";s:8:\"link_rel\";s:0:\"\";s:17:\"link_target_blank\";b:0;s:11:\"image_title\";s:0:\"\";s:13:\"attachment_id\";i:0;s:3:\"url\";s:0:\"\";s:5:\"title\";s:0:\"\";}i:4;a:15:{s:4:\"size\";s:9:\"thumbnail\";s:5:\"width\";i:416;s:6:\"height\";i:416;s:7:\"caption\";s:0:\"\";s:3:\"alt\";s:0:\"\";s:9:\"link_type\";s:4:\"none\";s:8:\"link_url\";s:0:\"\";s:13:\"image_classes\";s:16:\"dctx-footer-logo\";s:12:\"link_classes\";s:0:\"\";s:8:\"link_rel\";s:0:\"\";s:17:\"link_target_blank\";b:0;s:11:\"image_title\";s:0:\"\";s:13:\"attachment_id\";i:595;s:3:\"url\";s:68:\"https:\/\/test.dctx.ph\/wp-content\/uploads\/2020\/04\/logo-big-150x150.png\";s:5:\"title\";s:0:\"\";}s:12:\"_multiwidget\";i:1;}",
"widget_media_video": "a:1:{s:12:\"_multiwidget\";i:1;}",
"widget_meta": "a:1:{s:12:\"_multiwidget\";i:1;}",
"widget_nav_menu": "a:1:{s:12:\"_multiwidget\";i:1;}",
Expand Down
2 changes: 1 addition & 1 deletion web/wp-content/themes/dctx2/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function additional_securityheaders( $headers ) {
$headers['XX-XSS-Protection'] = '1; mode=block';
$headers['Feature-Policy'] = 'geolocation "none" ; camera "none"';
$headers['X-Frame-Options'] = 'SAMEORIGIN';
$headers['Content-Security-Policy'] = "script-src-elem 'self' 'unsafe-inline' https://www.google.com https://js-agent.newrelic.com https://bam.nr-data.net https://www.gstatic.com https://cdn.datatables.net; script-src 'unsafe-inline' 'unsafe-eval' https://www.google.com https://fonts.googleapis.com https://cdnjs.cloudflare.com https://www.gstatic.com https://js-agent.newrelic.com/";
$headers['Content-Security-Policy'] = "script-src-elem 'self' 'unsafe-inline' https://www.google.com https://js-agent.newrelic.com https://bam.nr-data.net https://www.gstatic.com https://cdnjs.cloudflare.com https://cdn.datatables.net; script-src 'unsafe-inline' 'unsafe-eval' https://www.google.com https://fonts.googleapis.com https://cdnjs.cloudflare.com https://www.gstatic.com https://js-agent.newrelic.com https://cdn.datatables.net";
}

return $headers;
Expand Down
3 changes: 1 addition & 2 deletions web/wp-content/themes/dctx2/template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<div class="entry-content">
<?php
the_excerpt(
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. */
Expand All @@ -49,7 +49,6 @@
)
);
?>
<div class="read-more"><a href="<?php the_permalink(); ?>" class="button">Continue reading</a></div>
</div><!-- .entry-content -->

<footer class="entry-footer">
Expand Down

0 comments on commit 5bf4df9

Please sign in to comment.