dfd196f0 by Jeff Balicki

eee

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent f5405b98
......@@ -16365,35 +16365,35 @@ p {
.entry-content p a:hover {
text-decoration: underline;
}
.entry-content ul:not(.side-menu):not(.children) {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) {
padding-left: 2rem;
}
.entry-content ul:not(.side-menu):not(.children) li {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) li {
margin-top: 0.313rem;
}
.entry-content ul:not(.side-menu):not(.children) li a {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) li a {
text-decoration: none !important;
font-weight: bold !important;
}
.entry-content ul:not(.side-menu):not(.children) li a:hover {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) li a:hover {
text-decoration: underline !important;
}
.entry-content ul:not(.side-menu):not(.children) li ul:not(.side-menu):not(.children) {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) li ul:not(.side-menu):not(.children):not(.newslist) {
list-style: none;
margin-top: 0.313rem;
}
.entry-content ul:not(.side-menu):not(.children) li ul:not(.side-menu):not(.children) li:before {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) li ul:not(.side-menu):not(.children):not(.newslist) li:before {
content: "-";
font-weight: bold;
display: inline-block;
width: 1.5em;
margin-left: -1.5em;
}
.entry-content ul:not(.side-menu):not(.children) li ul:not(.side-menu):not(.children) li a {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) li ul:not(.side-menu):not(.children):not(.newslist) li a {
text-decoration: none !important;
font-weight: bold !important;
}
.entry-content ul:not(.side-menu):not(.children) li ul:not(.side-menu):not(.children) li a:hover {
.entry-content ul:not(.side-menu):not(.children):not(.newslist) li ul:not(.side-menu):not(.children):not(.newslist) li a:hover {
text-decoration: underline !important;
}
.entry-content ol {
......@@ -20154,6 +20154,8 @@ ul.sf_date_field .sf-datepicker {
}
.news-and-stories-block ul .article-card:hover a {
color: #699;
}
.news-and-stories-block ul .article-card:hover .new-title {
text-decoration: underline;
}
.news-and-stories-block ul .article-card:hover img {
......@@ -20168,10 +20170,8 @@ ul.sf_date_field .sf-datepicker {
color: white;
gap: 1.625rem;
}
.article-card a:hover p {
.article-card a:hover .news-title {
text-decoration: underline;
font-size: 18px;
line-height: 23px;
}
.article-card a:hover .anchor-dots {
background-image: url(../img/more-hover.svg);
......@@ -20196,7 +20196,14 @@ ul.sf_date_field .sf-datepicker {
margin: 0;
display: inline;
}
.article-card .content p:first-child {
.article-card .content p {
display: block;
word-break: break-word;
}
.article-card .content p:hover {
text-decoration: none !important;
}
.article-card .content .news-title {
display: inline-block;
color: #000000;
font-weight: bold;
......@@ -20215,6 +20222,7 @@ ul.sf_date_field .sf-datepicker {
font-weight: normal;
display: inline-block;
text-decoration: none !important;
margin-top: 14px;
}
.article-card .content .author-name {
font-size: 0.875rem;
......@@ -20260,8 +20268,15 @@ ul.sf_date_field .sf-datepicker {
width: 100%;
}
.sm .content p:first-child {
display: inline-block;
.article-card:hover {
text-decoration: none !important;
}
.article-card:hover p {
text-decoration: none !important;
}
.sm .content .news-title {
display: block;
color: #000000;
font-weight: bold;
margin: 0;
......
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.
......@@ -60,7 +60,7 @@ function pull_posts_for_post_list( $data ) {
if(!$img) {
$img = get_post_meta($post->ID, 'photo_from_source', true);
}
error_log($excerpt);
$new_posts[] = ['date'=>get_the_time( ' F j, Y', $post),
'article_author'=>$article_author,'author_title'=>$author_title,
'author_company'=>$author_company,'href'=>get_permalink($post),'title'=>$post->post_title,
......@@ -106,7 +106,7 @@ function pull_posts_for_post_list( $data ) {
foreach($the_segment as $post) {
$excerpt = wp_filter_nohtml_kses(get_the_excerpt($post));
$excerpt = trim(substr($excerpt, 0, strpos($excerpt, '[...]')));
//$excerpt = trim(substr($excerpt, 0, strpos($excerpt, '[...]')));
$article_author = get_field('article_author', $post->ID) ?: null;
$author_title = get_field('author_title', $post->ID) ?: null;
$author_company = get_field('author_company', $post->ID) ?: null;
......@@ -116,7 +116,7 @@ function pull_posts_for_post_list( $data ) {
if(!$img) {
$img = get_post_meta($post->ID, 'photo_from_source', true);
}
error_log($excerpt);
$posts[] = ['date'=>get_the_time( ' F j, Y', $post),
'article_author'=>$article_author,'author_title'=>$author_title,
'author_company'=>$author_company,'href'=>get_permalink($post),'title'=>$post->post_title,
......
......@@ -26209,6 +26209,7 @@
var mobile_article_list = [];
function postItem(post_obj, size, sides, side_index, side_alternate, labels) {
console.log(post_obj);
var li = "";
if (size == 2) {
li += "<li class='article-card lg'><a href='" + post_obj['href'] + "'>";
......@@ -26216,9 +26217,12 @@
li += "<div class='image large'><div class='scale-wrapper'><img src='" + post_obj['img_src'] + "' /></div></div>";
}
if (post_obj['title'].length > 100) {
li += "<div class='content reduce'><p>" + post_obj['title'] + "</p><span class='anchor-dots'></span></div>";
li += "<div class='content reduce'><span class='news-title'>" + post_obj['title'] + "</span><span class='anchor-dots'></span></div>";
} else {
li += "<div class='content'><p>" + post_obj['title'] + "</p>";
li += "<div class='content'><span class='news-title'>" + post_obj['title'] + "</span>";
}
if (post_obj['text']) {
li += "<p>" + post_obj['text'] + "</p>";
}
if (post_obj['date']) {
li += "<span class='published'>" + window.POST_LIST_LABELS.published + " " + post_obj['date'] + "</span>";
......@@ -26230,9 +26234,12 @@
li += "<div class='image'><div class='scale-wrapper'><img src='" + post_obj['img_src'] + "' /></div></div>";
}
if (post_obj['title'].length > 100) {
li += "<div class='content reduce'><p>" + post_obj['title'] + "</p>";
li += "<div class='content reduce'><span class='news-title'>" + post_obj['title'] + "</span>";
} else {
li += "<div class='content'><p>" + post_obj['title'] + "</p>";
li += "<div class='content'><span class='news-title'>" + post_obj['title'] + "</span>";
}
if (post_obj['text']) {
li += "<p>" + post_obj['text'] + "</p>";
}
if (post_obj['article_author']) {
li += "<span class='author-name'>" + post_obj['article_author'] + " | </span>";
......@@ -26346,11 +26353,11 @@
jQuery(block).data('reset_side_from_large', reset_side_from_large);
jQuery(block).data('side_alternate', side_alternate);
if (append) {
jQuery(block).find('.post-list-left-col').append("<ul>" + sides.left.join('') + "</ul>");
jQuery(block).find('.post-list-right-col').append("<ul>" + sides.right.join('') + "</ul>");
jQuery(block).find('.post-list-left-col').append("<ul class='newslist'>" + sides.left.join('') + "</ul>");
jQuery(block).find('.post-list-right-col').append("<ul class='newslist'>" + sides.right.join('') + "</ul>");
} else {
jQuery(block).find('.post-list-left-col').html("<ul>" + sides.left.join('') + "</ul>");
jQuery(block).find('.post-list-right-col').html("<ul>" + sides.right.join('') + "</ul>");
jQuery(block).find('.post-list-left-col').html("<ul class='newslist'>" + sides.left.join('') + "</ul>");
jQuery(block).find('.post-list-right-col').html("<ul class='newslist'>" + sides.right.join('') + "</ul>");
}
jQuery('.mobile-article-list').html("<ul>" + mobile_article_list.join('') + "</ul>");
if (last_index) {
......
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.
......@@ -2,7 +2,7 @@
var mobile_article_list = [];
function postItem(post_obj, size, sides, side_index, side_alternate, labels) {
console.log(post_obj);
var li = "";
if(size == 2) {
li += "<li class='article-card lg'><a href='"+post_obj['href']+"'>";
......@@ -10,9 +10,12 @@ function postItem(post_obj, size, sides, side_index, side_alternate, labels) {
li += "<div class='image large'><div class='scale-wrapper'><img src='"+post_obj['img_src']+"' /></div></div>";
}
if(post_obj['title'].length > 100) {
li += "<div class='content reduce'><p>"+post_obj['title']+"</p><span class='anchor-dots'></span></div>";
li += "<div class='content reduce'><span class='news-title'>"+post_obj['title']+"</span><span class='anchor-dots'></span></div>";
} else {
li += "<div class='content'><p>"+post_obj['title']+"</p>";
li += "<div class='content'><span class='news-title'>"+post_obj['title']+"</span>";
}
if(post_obj['text']) {
li += "<p>"+post_obj['text']+"</p>";
}
if(post_obj['date']) {
li += "<span class='published'>"+window.POST_LIST_LABELS.published+" "+post_obj['date']+"</span>";
......@@ -24,9 +27,12 @@ function postItem(post_obj, size, sides, side_index, side_alternate, labels) {
li += "<div class='image'><div class='scale-wrapper'><img src='"+post_obj['img_src']+"' /></div></div>";
}
if(post_obj['title'].length > 100) {
li += "<div class='content reduce'><p>"+post_obj['title']+"</p>";
li += "<div class='content reduce'><span class='news-title'>"+post_obj['title']+"</span>";
} else {
li += "<div class='content'><p>"+post_obj['title']+"</p>";
li += "<div class='content'><span class='news-title'>"+post_obj['title']+"</span>";
}
if(post_obj['text']) {
li += "<p>"+post_obj['text']+"</p>";
}
if(post_obj['article_author']) {
li += "<span class='author-name'>"+post_obj['article_author']+" | </span>";
......@@ -160,11 +166,11 @@ function loadPostSegment(block, segment, append, limit) {
jQuery(block).data('side_alternate', side_alternate);
if(append) {
jQuery(block).find('.post-list-left-col').append("<ul>"+sides.left.join('')+"</ul>");
jQuery(block).find('.post-list-right-col').append("<ul>"+sides.right.join('')+"</ul>");
jQuery(block).find('.post-list-left-col').append("<ul class='newslist'>"+sides.left.join('')+"</ul>");
jQuery(block).find('.post-list-right-col').append("<ul class='newslist'>"+sides.right.join('')+"</ul>");
} else {
jQuery(block).find('.post-list-left-col').html("<ul>"+sides.left.join('')+"</ul>");
jQuery(block).find('.post-list-right-col').html("<ul>"+sides.right.join('')+"</ul>");
jQuery(block).find('.post-list-left-col').html("<ul class='newslist'>"+sides.left.join('')+"</ul>");
jQuery(block).find('.post-list-right-col').html("<ul class='newslist'>"+sides.right.join('')+"</ul>");
}
jQuery('.mobile-article-list').html("<ul>"+mobile_article_list.join('')+"</ul>")
......
......@@ -89,7 +89,7 @@ p{
}
}
ul:not(.side-menu):not(.children){
ul:not(.side-menu):not(.children):not(.newslist){
padding-left: 2rem;
li{
a{
......@@ -100,7 +100,7 @@ ul:not(.side-menu):not(.children){
text-decoration: underline !important;
}
margin-top: 0.313rem;
ul:not(.side-menu):not(.children){
ul:not(.side-menu):not(.children):not(.newslist){
list-style: none;
margin-top: 0.313rem;
li:before{
......
......@@ -113,6 +113,9 @@
}
a {
color: #699;
}
.new-title{
text-decoration: underline;
}
img {
......@@ -137,10 +140,10 @@
gap: 1.625rem;
&:hover {
p {
.news-title {
text-decoration: underline;
font-size: 18px;
line-height: 23px;
// font-size: 18px;
//line-height: 23px;
}
.anchor-dots {
background-image: url(../img/more-hover.svg);
......@@ -173,7 +176,14 @@
margin:0;
display: inline;
}
p:first-child {
p{
display: block;
word-break: break-word;
}
p:hover{
text-decoration: none !important;
}
.news-title {
display: inline-block;
color:#000000;
font-weight: bold;
......@@ -192,6 +202,7 @@
font-weight: normal;
display: inline-block;
text-decoration: none !important;
margin-top: 14px;
}
.author-name {
font-size:0.875rem;
......@@ -237,10 +248,18 @@
}
}
}
.article-card:hover{
text-decoration: none !important;
p{
text-decoration: none !important;
}
}
.sm{
.content {
p:first-child {
display: inline-block;
.news-title {
display: block;
color:#000000;
font-weight: bold;
margin:0;
......
......@@ -2,5 +2,5 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.26
Version: 1.0.27
*/
\ No newline at end of file
......