diff --git a/config/purify.php b/config/purify.php index de6f0a9e..4792a4ce 100644 --- a/config/purify.php +++ b/config/purify.php @@ -1,148 +1,101 @@ 'default', + + /* + |-------------------------------------------------------------------------- + | Config sets + |-------------------------------------------------------------------------- | - | Feel free to add / remove / customize these attributes as you wish. + | Here you may configure various sets of configuration for differentiated use of HTMLPurifier. + | A specific set of configuration can be applied by calling the "config($name)" method on + | a Purify instance. Feel free to add/remove/customize these attributes as you wish. | | Documentation: http://htmlpurifier.org/live/configdoc/plain.html | + | Core.Encoding The encoding to convert input to. + | HTML.Doctype Doctype to use during filtering. + | HTML.Allowed The allowed HTML Elements with their allowed attributes. + | HTML.ForbiddenElements The forbidden HTML elements. Elements that are listed in this + | string will be removed, however their content will remain. + | CSS.AllowedProperties The Allowed CSS properties. + | AutoFormat.AutoParagraph Newlines are converted in to paragraphs whenever possible. + | AutoFormat.RemoveEmpty Remove empty elements that contribute no semantic information to the document. + | */ - 'settings' => [ - - /* - |-------------------------------------------------------------------------- - | Core.Encoding - |-------------------------------------------------------------------------- - | - | The encoding to convert input to. - | - | http://htmlpurifier.org/live/configdoc/plain.html#Core.Encoding - | - */ - - 'Core.Encoding' => 'utf-8', - - /* - |-------------------------------------------------------------------------- - | Cache.SerializerPath - |-------------------------------------------------------------------------- - | - | The HTML purifier serializer cache path. - | - | http://htmlpurifier.org/live/configdoc/plain.html#Cache.SerializerPath - | - */ - - 'Cache.SerializerPath' => storage_path('app/purify'), - - /* - |-------------------------------------------------------------------------- - | Cache.SerializerPermissions - |-------------------------------------------------------------------------- - | - | The HTML purifier serializer cache path. - | - | http://htmlpurifier.org/live/configdoc/plain.html#Cache.SerializerPermissions - | - */ - - 'Cache.SerializerPermissions' => env('PURIFY_CACHE_PERMISSIONS', null), - - /* - |-------------------------------------------------------------------------- - | HTML.Doctype - |-------------------------------------------------------------------------- - | - | Doctype to use during filtering. - | - | http://htmlpurifier.org/live/configdoc/plain.html#HTML.Doctype - | - */ - - 'HTML.Doctype' => 'XHTML 1.0 Strict', - - /* - |-------------------------------------------------------------------------- - | HTML.Allowed - |-------------------------------------------------------------------------- - | - | The allowed HTML Elements with their allowed attributes. - | - | http://htmlpurifier.org/live/configdoc/plain.html#HTML.Allowed - | - */ - - 'HTML.Allowed' => 'h1,h2,h3,h4,h5,h6,b,strong,i,em,a[href|title],ul,ol,li,p[style],br,span,sup,sub,img[width|height|alt|src]', - - /* - |-------------------------------------------------------------------------- - | HTML.ForbiddenElements - |-------------------------------------------------------------------------- - | - | The forbidden HTML elements. Elements that are listed in - | this string will be removed, however their content will remain. - | - | For example if 'p' is inside the string, the string: '
Test
', - | - | Will be cleaned to: 'Test' - | - | http://htmlpurifier.org/live/configdoc/plain.html#HTML.ForbiddenElements - | - */ + 'configs' => [ + + 'default' => [ + 'Core.Encoding' => 'utf-8', + 'HTML.Doctype' => 'HTML 4.01 Transitional', + 'Cache.SerializerPermissions' => env('PURIFY_CACHE_PERMISSIONS', null), + 'HTML.Allowed' => 'h1,h2,h3,h4,h5,h6,b,strong,i,em,a[href|title],ul,ol,li,p[style],br,span,sup,sub,img[width|height|alt|src]', + 'HTML.ForbiddenElements' => '', + 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align', + 'AutoFormat.AutoParagraph' => false, + 'AutoFormat.RemoveEmpty' => false, + ], + + 'trix_email' => [ + 'HTML.Doctype' => 'HTML 4.01 Transitional', + 'HTML.AllowedElements' => 'a,span', + 'HTML.AllowedAttributes' => 'a.href,a.style,span.style', + 'AutoFormat.RemoveEmpty' => true, + 'AutoFormat.RemoveEmpty.RemoveNbsp' => true, + 'CSS.AllowedProperties' => 'color,text-decoration', + 'Output.TidyFormat' => true, + 'HTML.Nofollow' => false, + 'Core.NormalizeNewlines' => true, + 'AutoFormat.AutoParagraph' => false, + 'AutoFormat.RemoveSpansWithoutAttributes' => true, + ], - 'HTML.ForbiddenElements' => '', - - /* - |-------------------------------------------------------------------------- - | CSS.AllowedProperties - |-------------------------------------------------------------------------- - | - | The Allowed CSS properties. - | - | http://htmlpurifier.org/live/configdoc/plain.html#CSS.AllowedProperties - | - */ - - 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align', - - /* - |-------------------------------------------------------------------------- - | AutoFormat.AutoParagraph - |-------------------------------------------------------------------------- - | - | The Allowed CSS properties. - | - | This directive turns on auto-paragraphing, where double - | newlines are converted in to paragraphs whenever possible. - | - | http://htmlpurifier.org/live/configdoc/plain.html#AutoFormat.AutoParagraph - | - */ + ], - 'AutoFormat.AutoParagraph' => false, + /* + |-------------------------------------------------------------------------- + | HTMLPurifier definitions + |-------------------------------------------------------------------------- + | + | Here you may specify a class that augments the HTML definitions used by + | HTMLPurifier. Additional HTML5 definitions are provided out of the box. + | When specifying a custom class, make sure it implements the interface: + | + | \Stevebauman\Purify\Definitions\Definition + | + | Note that these definitions are applied to every Purifier instance. + | + | Documentation: http://htmlpurifier.org/docs/enduser-customize.html + | + */ - /* - |-------------------------------------------------------------------------- - | AutoFormat.RemoveEmpty - |-------------------------------------------------------------------------- - | - | When enabled, HTML Purifier will attempt to remove empty - | elements that contribute no semantic information to the document. - | - | http://htmlpurifier.org/live/configdoc/plain.html#AutoFormat.RemoveEmpty - | - */ + 'definitions' => Html5Definition::class, - 'AutoFormat.RemoveEmpty' => false, + /* + |-------------------------------------------------------------------------- + | Serializer location + |-------------------------------------------------------------------------- + | + | The location where HTMLPurifier can store its temporary serializer files. + | The filepath should be accessible and writable by the web server. + | A good place for this is in the framework's own storage path. + | + */ - ], + 'serializer' => storage_path('app/purify'), ]; diff --git a/public/img/monogram-solid-rgb-full.png b/public/img/monogram-solid-rgb-full.png new file mode 100644 index 00000000..89f5205f Binary files /dev/null and b/public/img/monogram-solid-rgb-full.png differ diff --git a/resources/views/emails/reviewstudents.blade.php b/resources/views/emails/reviewstudents.blade.php index e3b7042b..8ae2d3af 100644 --- a/resources/views/emails/reviewstudents.blade.php +++ b/resources/views/emails/reviewstudents.blade.php @@ -1,7 +1,7 @@ @extends('emails.template') @php - $primary_color = $settings['primary_color'] ?? '#008542'; + $primary_color = $settings['primary_color'] ?? '#154734'; @endphp @section('message') @@ -15,12 +15,24 @@If you would like to review these undergraduate student research applications, please visit the following page. On this page, you will also be able to delegate review of the applications to another person or indicate if you're not accepting students.
-- - Review Undergraduate Student Research Applications → - -
+| + + Review Undergraduate Student Research Applications → + + | +
|
-
- @if(isset($settings['logo']))
- |
- ||||||||||||||||||||||||||||||||||
|
-
-
-
- @yield('message')
-
- - - This is an automated message from the {{ $settings['site_title'] ?? 'Profiles' }} website. +
| ||||||||||||||||||||||||||||||||||