6e0e0c56 by Jeremy Groot

CWL college fixes

1 parent 66f70b3a
...@@ -14259,6 +14259,48 @@ li.crumb { ...@@ -14259,6 +14259,48 @@ li.crumb {
14259 flex: 1; 14259 flex: 1;
14260 } 14260 }
14261 14261
14262 .bread {
14263 display: flex;
14264 list-style: none;
14265 gap: 0.5rem;
14266 padding: 0;
14267 margin: 0;
14268 }
14269 .bread li {
14270 font-size: 0.75rem;
14271 color: #68696d;
14272 margin: 0;
14273 }
14274 .bread li a {
14275 color: #000;
14276 }
14277
14278 .learndash-wrapper .ld-progress.ld-progress-inline .ld-progress-bar {
14279 margin-top: 1rem;
14280 }
14281
14282 #brokercontent .material a {
14283 margin-left: 0;
14284 }
14285
14286 p > a:before {
14287 width: 1.313rem !important;
14288 min-width: 1.313rem !important;
14289 height: 1.5rem !important;
14290 }
14291
14292 .learndash-wrapper a:hover {
14293 text-decoration: underline !important;
14294 }
14295
14296 .page-id-45689 ul {
14297 list-style: none !important;
14298 }
14299
14300 ul li a {
14301 border-top: 0 !important;
14302 }
14303
14262 .fav-border-top { 14304 .fav-border-top {
14263 border-top: 1px solid #949598; 14305 border-top: 1px solid #949598;
14264 display: block; 14306 display: block;
...@@ -14655,6 +14697,161 @@ article > h5 { ...@@ -14655,6 +14697,161 @@ article > h5 {
14655 margin-top: 11.875rem; 14697 margin-top: 11.875rem;
14656 } 14698 }
14657 14699
14700 .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments span:after {
14701 content: "|" !important;
14702 margin: 0 0.5rem;
14703 }
14704
14705 .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments span a {
14706 font-size: 0.75rem;
14707 color: black;
14708 margin: 0;
14709 }
14710
14711 /* iCheck plugin Square skin, blue
14712 ----------------------------------- */
14713 .icheckbox_square-blue,
14714 .iradio_square-blue {
14715 display: inline-block;
14716 *display: inline;
14717 vertical-align: middle;
14718 margin: 0;
14719 padding: 0;
14720 width: 22px;
14721 height: 22px;
14722 background: url(blue.png) no-repeat;
14723 border: none;
14724 cursor: pointer;
14725 margin-right: 6px;
14726 padding-left: 22px;
14727 }
14728
14729 .icheckbox_square-blue {
14730 background-position: -24px 0;
14731 }
14732
14733 .icheckbox_square-blue.hover {
14734 background-position: 0 0;
14735 }
14736
14737 .icheckbox_square-blue.checked {
14738 background-position: -48px 0;
14739 }
14740
14741 .icheckbox_square-blue.disabled {
14742 background-position: -72px 0;
14743 cursor: default;
14744 }
14745
14746 .icheckbox_square-blue.checked.disabled {
14747 background-position: -96px 0;
14748 }
14749
14750 .iradio_square-blue {
14751 background-position: -144px 0;
14752 }
14753
14754 .iradio_square-blue.hover {
14755 background-position: -120px 0;
14756 }
14757
14758 .iradio_square-blue.checked {
14759 background-position: -168px 0;
14760 }
14761
14762 .iradio_square-blue.disabled {
14763 background-position: -192px 0;
14764 cursor: default;
14765 }
14766
14767 .iradio_square-blue.checked.disabled {
14768 background-position: -216px 0;
14769 }
14770
14771 /* HiDPI support */
14772 @media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
14773 .icheckbox_square-blue,
14774 .iradio_square-blue {
14775 background-image: url(blue@2x.png);
14776 background-size: 240px 24px;
14777 }
14778 }
14779 /* iCheck plugin Square skin, green
14780 ----------------------------------- */
14781 .icheckbox_square-green,
14782 .iradio_square-green {
14783 display: inline-block;
14784 vertical-align: middle;
14785 margin: 0;
14786 padding: 0;
14787 width: 24px;
14788 height: 24px;
14789 background: url(green.png) no-repeat;
14790 border: none;
14791 cursor: pointer;
14792 transform: scale(1.1);
14793 margin-right: 10px;
14794 }
14795
14796 .icheckbox_square-green {
14797 border: 1px solid #68696D;
14798 }
14799
14800 .iradio_square-green {
14801 border: 1px solid #68696D;
14802 border-radius: 20px;
14803 }
14804
14805 .icheckbox_square-green {
14806 background-position: 0 0;
14807 }
14808
14809 .icheckbox_square-green.hover {
14810 background-position: -24px 0;
14811 }
14812
14813 .icheckbox_square-green.checked {
14814 background-position: -48px 0;
14815 }
14816
14817 .icheckbox_square-green.disabled {
14818 background-position: -72px 0;
14819 cursor: default;
14820 }
14821
14822 .icheckbox_square-green.checked.disabled {
14823 background-position: -96px 0;
14824 }
14825
14826 .iradio_square-green {
14827 background-position: -120px 0;
14828 }
14829
14830 .iradio_square-green.hover {
14831 background-position: -144px 0;
14832 }
14833
14834 .iradio_square-green.checked {
14835 background-position: -168px 0;
14836 }
14837
14838 .iradio_square-green.disabled {
14839 background-position: -192px 0;
14840 cursor: default;
14841 }
14842
14843 .iradio_square-green.checked.disabled {
14844 background-position: -216px 0;
14845 }
14846
14847 /* HiDPI support */
14848 @media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
14849 .icheckbox_square-green,
14850 .iradio_square-green {
14851 background-image: url(green@2x.png);
14852 background-size: 240px 24px;
14853 }
14854 }
14658 #mobile-header-image { 14855 #mobile-header-image {
14659 display: none !important; 14856 display: none !important;
14660 } 14857 }
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -10,6 +10,52 @@ ...@@ -10,6 +10,52 @@
10 } 10 }
11 } 11 }
12 12
13 .bread {
14 display: flex;
15 list-style: none;
16 gap: 0.5rem;
17 padding: 0;
18 margin: 0;
19 li {
20 font-size: .75rem;
21 color: #68696d;
22 margin: 0;
23 }
24 li a {
25 color:#000;
26 }
27 }
28
29 .learndash-wrapper .ld-progress.ld-progress-inline .ld-progress-bar {
30 margin-top:1rem;
31 }
32
33 #brokercontent .material a {
34 margin-left:0;
35 }
36
37 p>a:before {
38 width: 1.313rem !important;
39 min-width: 1.313rem !important;
40 height: 1.5rem !important;
41 }
42
43 .learndash-wrapper a:hover {
44 text-decoration: underline !important;
45 }
46
47 .page-id-45689 {
48 ul {
49 list-style: none !important;
50 }
51 }
52
53 ul {
54 li a {
55 border-top:0 !important;
56 }
57 }
58
13 .fav-border-top { 59 .fav-border-top {
14 border-top:1px solid #949598; 60 border-top:1px solid #949598;
15 display: block; 61 display: block;
...@@ -468,3 +514,152 @@ article { ...@@ -468,3 +514,152 @@ article {
468 } 514 }
469 515
470 } 516 }
517
518 .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments span:after {
519 content: "|" !important;
520 margin:0 0.5rem;
521 }
522
523 .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments span a {
524 font-size: .75rem;
525 color: black;
526 margin: 0;
527 }
528
529 .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments {
530 }
531
532
533 /* iCheck plugin Square skin, blue
534 ----------------------------------- */
535 .icheckbox_square-blue,
536 .iradio_square-blue {
537 display: inline-block;
538 *display: inline;
539 vertical-align: middle;
540 margin: 0;
541 padding: 0;
542 width: 22px;
543 height: 22px;
544 background: url(blue.png) no-repeat;
545 border: none;
546 cursor: pointer;
547 margin-right: 6px;
548 padding-left: 22px;
549
550 }
551
552 .icheckbox_square-blue {
553
554 background-position: -24px 0;
555 }
556 .icheckbox_square-blue.hover {
557 background-position: 0 0;
558 }
559 .icheckbox_square-blue.checked {
560 background-position: -48px 0;
561 }
562 .icheckbox_square-blue.disabled {
563 background-position: -72px 0;
564 cursor: default;
565 }
566 .icheckbox_square-blue.checked.disabled {
567 background-position: -96px 0;
568 }
569
570 .iradio_square-blue {
571
572 background-position: -144px 0;
573 }
574 .iradio_square-blue.hover {
575 background-position: -120px 0;
576 }
577 .iradio_square-blue.checked {
578 background-position: -168px 0;
579 }
580 .iradio_square-blue.disabled {
581 background-position: -192px 0;
582 cursor: default;
583 }
584 .iradio_square-blue.checked.disabled {
585 background-position: -216px 0;
586 }
587
588 /* HiDPI support */
589 @media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
590 .icheckbox_square-blue,
591 .iradio_square-blue {
592 background-image: url(blue@2x.png);
593 -webkit-background-size: 240px 24px;
594 background-size: 240px 24px;
595 }
596 }
597
598 /* iCheck plugin Square skin, green
599 ----------------------------------- */
600 .icheckbox_square-green,
601 .iradio_square-green {
602 display: inline-block;
603 vertical-align: middle;
604 margin: 0;
605 padding: 0;
606 width: 24px;
607 height: 24px;
608 background: url(green.png) no-repeat;
609 border: none;
610 cursor: pointer;
611 transform: scale(1.1);
612 margin-right: 10px;
613 }
614
615 .icheckbox_square-green{
616 border: 1px solid #68696D;
617 }
618 .iradio_square-green {
619 border: 1px solid #68696D;
620 border-radius: 20px;
621 }
622 .icheckbox_square-green {
623 background-position: 0 0;
624 }
625 .icheckbox_square-green.hover {
626 background-position: -24px 0;
627 }
628 .icheckbox_square-green.checked {
629 background-position: -48px 0;
630 }
631 .icheckbox_square-green.disabled {
632 background-position: -72px 0;
633 cursor: default;
634 }
635 .icheckbox_square-green.checked.disabled {
636 background-position: -96px 0;
637 }
638
639 .iradio_square-green {
640 background-position: -120px 0;
641 }
642 .iradio_square-green.hover {
643 background-position: -144px 0;
644 }
645 .iradio_square-green.checked {
646 background-position: -168px 0;
647 }
648 .iradio_square-green.disabled {
649 background-position: -192px 0;
650 cursor: default;
651 }
652 .iradio_square-green.checked.disabled {
653 background-position: -216px 0;
654 }
655
656 /* HiDPI support */
657 @media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
658 .icheckbox_square-green,
659 .iradio_square-green {
660 background-image: url(green@2x.png);
661 -webkit-background-size: 240px 24px;
662 background-size: 240px 24px;
663 }
664 }
665
......
...@@ -264,11 +264,13 @@ if ( class_exists( 'WP_CLI' ) ) { ...@@ -264,11 +264,13 @@ if ( class_exists( 'WP_CLI' ) ) {
264 } 264 }
265 } 265 }
266 266
267 private static function setPostData($post_id, $categories, $doc_type) { 267 private static function setPostData($post_id, $categories, $doc_type, $title) {
268 268
269 wp_set_post_terms($post_id,$categories, 'media_category'); 269 wp_set_post_terms($post_id,$categories, 'media_category');
270 wp_set_post_terms($post_id, $doc_type, 'document_type'); 270 wp_set_post_terms($post_id, $doc_type, 'document_type');
271 271
272 wp_update_post(['ID'=>$post_id,'post_title'=>$title]);
273
272 } 274 }
273 275
274 function import_media_files( $args ) { 276 function import_media_files( $args ) {
...@@ -307,12 +309,14 @@ if ( class_exists( 'WP_CLI' ) ) { ...@@ -307,12 +309,14 @@ if ( class_exists( 'WP_CLI' ) ) {
307 error_log($nm['link'] . " no attachment id!"); 309 error_log($nm['link'] . " no attachment id!");
308 } else { 310 } else {
309 311
312 $title = $nm['title'];
313
310 $doc_type = $nm['type']; 314 $doc_type = $nm['type'];
311 $product_line = $nm['product_line']; 315 $product_line = $nm['product_line'];
312 316
313 error_log($nm['link'] . " FOUND!" . $post_id); 317 error_log($nm['link'] . " FOUND!" . $post_id);
314 318
315 $this->setPostData($post_id, $product_line, $doc_type); 319 $this->setPostData($post_id, $product_line, $doc_type, $title);
316 320
317 // if(!isset($document_types[$nm['type']])) { 321 // if(!isset($document_types[$nm['type']])) {
318 // $document_types[$nm['type']] = 1; 322 // $document_types[$nm['type']] = 1;
......
...@@ -614,15 +614,22 @@ function the_bread() { ...@@ -614,15 +614,22 @@ function the_bread() {
614 foreach ( $crumbs as $crumb ) { 614 foreach ( $crumbs as $crumb ) {
615 $i++; 615 $i++;
616 616
617 if($i === sizeof($crumbs)) {
618 echo '<li class="crumb" itemprop="itemListElement">
619 <span itemprop="name">' . ( url_to_postid( $crumb->url ) ? get_the_title( url_to_postid( $crumb->url ) ) : ucfirst( str_replace( '-', ' ', $crumb->slug ) ) ) . '</span>
620 <meta itemprop="position" content="' . $i . '">
621 </li>';
622 } else {
617 echo '<li class="crumb" itemprop="itemListElement"> 623 echo '<li class="crumb" itemprop="itemListElement">
618 <a itemprop="item" href="' . $crumb->url . '"> 624 <a itemprop="item" href="' . $crumb->url . '">
619 <span itemprop="name">' . ( url_to_postid( $crumb->url ) ? get_the_title( url_to_postid( $crumb->url ) ) : ucfirst( str_replace( '-', ' ', $crumb->slug ) ) ) . '</span> 625 <span itemprop="name">' . ( url_to_postid( $crumb->url ) ? get_the_title( url_to_postid( $crumb->url ) ) : ucfirst( str_replace( '-', ' ', $crumb->slug ) ) ) . '</span>
620 </a> 626 </a>
621 <meta itemprop="position" content="' . $i . '"> 627 <meta itemprop="position" content="' . $i . '">
622 </li>'; 628 </li>';
629 }
623 630
624 if ( $i !== sizeof( $crumbs ) && ! empty( $ingredients['separator'] ) ) 631 if ( $i !== sizeof( $crumbs ) && ! empty( $ingredients['separator'] ) )
625 echo $ingredients['separator']; 632 echo "|";
626 633
627 }; 634 };
628 635
......