clean up
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
6 additions
and
15 deletions
| ... | @@ -74,8 +74,6 @@ function theme_broker_enqueue_scripts() | ... | @@ -74,8 +74,6 @@ function theme_broker_enqueue_scripts() |
| 74 | || is_page_template("broker_notifications_archive.php") | 74 | || is_page_template("broker_notifications_archive.php") |
| 75 | || is_page_template("broker_account_pages.php") | 75 | || is_page_template("broker_account_pages.php") |
| 76 | || get_post_type() == 'notifications' | 76 | || get_post_type() == 'notifications' |
| 77 | |||
| 78 | |||
| 79 | ) { | 77 | ) { |
| 80 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/landing-page/broker_landing.css', [], "0.0.67"); | 78 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/landing-page/broker_landing.css', [], "0.0.67"); |
| 81 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.71"); | 79 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.71"); |
| ... | @@ -102,6 +100,7 @@ function theme_broker_enqueue_scripts() | ... | @@ -102,6 +100,7 @@ function theme_broker_enqueue_scripts() |
| 102 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/secondary-page/broker.css', array(), '0.0.64'); | 100 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/secondary-page/broker.css', array(), '0.0.64'); |
| 103 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.7"); | 101 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.7"); |
| 104 | } | 102 | } |
| 103 | |||
| 105 | if ( | 104 | if ( |
| 106 | is_page_template("broker_landing_page.php") | 105 | is_page_template("broker_landing_page.php") |
| 107 | || is_page_template("broker_pages.php") | 106 | || is_page_template("broker_pages.php") |
| ... | @@ -313,10 +312,7 @@ function handle_preflight() | ... | @@ -313,10 +312,7 @@ function handle_preflight() |
| 313 | } | 312 | } |
| 314 | 313 | ||
| 315 | add_role( | 314 | add_role( |
| 316 | 'cwl_staff', | 315 | 'cwl_staff', __('CWL Staff'), |
| 317 | __( | ||
| 318 | 'CWL Staff' | ||
| 319 | ), | ||
| 320 | array( | 316 | array( |
| 321 | 'read' => true, // Allows user to read | 317 | 'read' => true, // Allows user to read |
| 322 | 'create_posts' => true, // Allows user to create new posts | 318 | 'create_posts' => true, // Allows user to create new posts |
| ... | @@ -339,9 +335,6 @@ function ja_theme_setup() | ... | @@ -339,9 +335,6 @@ function ja_theme_setup() |
| 339 | 335 | ||
| 340 | function enable_extended_upload($mime_types = array()) | 336 | function enable_extended_upload($mime_types = array()) |
| 341 | { | 337 | { |
| 342 | |||
| 343 | // The MIME types listed here will be allowed in the media library. | ||
| 344 | // You can add as many MIME types as you want. | ||
| 345 | $mime_types['gz'] = 'application/x-gzip'; | 338 | $mime_types['gz'] = 'application/x-gzip'; |
| 346 | $mime_types['zip'] = 'application/zip'; | 339 | $mime_types['zip'] = 'application/zip'; |
| 347 | $mime_types['rtf'] = 'application/rtf'; | 340 | $mime_types['rtf'] = 'application/rtf'; |
| ... | @@ -351,8 +344,6 @@ function enable_extended_upload($mime_types = array()) | ... | @@ -351,8 +344,6 @@ function enable_extended_upload($mime_types = array()) |
| 351 | $mime_types['svg'] = 'image/svg+xml'; | 344 | $mime_types['svg'] = 'image/svg+xml'; |
| 352 | $mime_types['xlsm'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; | 345 | $mime_types['xlsm'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; |
| 353 | 346 | ||
| 354 | // If you want to forbid specific file types which are otherwise allowed, | ||
| 355 | // specify them here. You can add as many as possible. | ||
| 356 | unset($mime_types['exe']); | 347 | unset($mime_types['exe']); |
| 357 | unset($mime_types['bin']); | 348 | unset($mime_types['bin']); |
| 358 | 349 | ||
| ... | @@ -379,8 +370,8 @@ function broker_options() | ... | @@ -379,8 +370,8 @@ function broker_options() |
| 379 | <?php wp_nonce_field('update-options')?> | 370 | <?php wp_nonce_field('update-options')?> |
| 380 | <p><strong>Info Message</strong><br /> | 371 | <p><strong>Info Message</strong><br /> |
| 381 | <textarea type="textarea" name="broker_info_message" rows="10" cols="100"> | 372 | <textarea type="textarea" name="broker_info_message" rows="10" cols="100"> |
| 382 | <?php echo get_option('broker_info_message'); ?> | 373 | <?php echo get_option('broker_info_message'); ?> |
| 383 | </textarea> | 374 | </textarea> |
| 384 | </p> | 375 | </p> |
| 385 | 376 | ||
| 386 | <p><input type="submit" name="Submit" value="Store Options" /></p> | 377 | <p><input type="submit" name="Submit" value="Store Options" /></p> |
| ... | @@ -392,8 +383,8 @@ function broker_options() | ... | @@ -392,8 +383,8 @@ function broker_options() |
| 392 | <?php wp_nonce_field('update-options')?> | 383 | <?php wp_nonce_field('update-options')?> |
| 393 | <p><strong>No Team Meassage</strong><br /> | 384 | <p><strong>No Team Meassage</strong><br /> |
| 394 | <textarea type="textarea" name="no_team_message" rows="10" cols="100"> | 385 | <textarea type="textarea" name="no_team_message" rows="10" cols="100"> |
| 395 | <?php echo get_option('no_team_message'); ?> | 386 | <?php echo get_option('no_team_message'); ?> |
| 396 | </textarea> | 387 | </textarea> |
| 397 | </p> | 388 | </p> |
| 398 | 389 | ||
| 399 | 390 | ... | ... |
-
Please register or sign in to post a comment