From e1eba484a7e9432a0e5d3879f362d80e41b0cf28 Mon Sep 17 00:00:00 2001 From: briandunnigan Date: Wed, 17 Feb 2016 10:23:22 -0500 Subject: [PATCH] Home redirect, blog page, styling -Adding the ability to link to an external sites rom home page story -Updating blog page to hide near in the media -Fixing social media sharing -Updating styles --- content-featured-home.php | 31 +++--- css/neag.css | 176 +++++++++++++++++++++++++++++++++ page-blog.php | 200 +++++++++++++++++++------------------- sass/neag.scss | 53 ++++++++++ single.php | 5 +- 5 files changed, 348 insertions(+), 117 deletions(-) diff --git a/content-featured-home.php b/content-featured-home.php index 07afa50..e19d1a9 100644 --- a/content-featured-home.php +++ b/content-featured-home.php @@ -3,24 +3,19 @@ ?>
>
- '; - echo '
'; - the_post_thumbnail(); - echo '
'; - echo '
'; - } */?> - - -
- -
- ', '' ); ?>
- - '; - echo '
'; - } */?> + +
+ + + + + +
+ + + ', '' ); ?> + +
diff --git a/css/neag.css b/css/neag.css index f61d7f5..a722386 100644 --- a/css/neag.css +++ b/css/neag.css @@ -7420,6 +7420,11 @@ button.close { .mega-sub-menu { list-style-type: none; } +.mega-sub-menu li.mega-menu-item a { + padding-top: 7px !important; + padding-bottom: 7px !important; + line-height: 1.5em !important; +} #megamenu-mobile-title { font-size: 1.3em; @@ -7510,6 +7515,17 @@ button.close { color: #474747 !important; } +/* Post Loop Styling */ +.widget_siteorigin-panels-postloop .content-template-date { + font-size: 12px; +} +.widget_siteorigin-panels-postloop h2.entry-title { + line-height: 1.25em; +} +.widget_siteorigin-panels-postloop .entry-content { + margin-top: 0.75em; +} + /* - - - - - - - - - - - - - - - - - - - == Content - - - - - - - - - - - - - - - - - - - */ @@ -9524,6 +9540,13 @@ a.btn { border-bottom: 1px solid #eee; } +/*-------------------------------------------------------------- +10.6 UC Calendar - Fixes for Sub/Super Characters +--------------------------------------------------------------*/ +#content .widget.uc-ecw .uc-cal-list .uc-cal-item .uc-cal-event-title { + display: flex !important; +} + /* - - - - - - - - - - - - - - - - - - - == Captions - - - - - - - - - - - - - - - - - - - */ @@ -9897,6 +9920,7 @@ q:before, table q:after { .uc-listcal .uc-cal-list .uc-cal-item .uc-cal-event-title { font-style: normal; margin-left: 1em; + display: flex !important; } .uc-listcal .uc-cal-list .uc-cal-item .glyphicon-new-window { display: none; @@ -10658,6 +10682,111 @@ input[type="button"]#footers.btn-block { width: 100%; } +.panel-grid { + /* Denotes the beginning of a Page Builder section */ +} +.panel-grid .simple-social-icons ul li.social-bloglovin:before, .panel-grid .simple-social-icons ul li.social-dribbble:before, .panel-grid .simple-social-icons ul li.social-email:before, .panel-grid .simple-social-icons ul li.social-facebook:before, .panel-grid .simple-social-icons ul li.social-flickr:before, .panel-grid .simple-social-icons ul li.social-github:before, .panel-grid .simple-social-icons ul li.social-gplus:before, .panel-grid .simple-social-icons ul li.social-instagram:before, .panel-grid .simple-social-icons ul li.social-linkedin:before, .panel-grid .simple-social-icons ul li.social-pinterest:before, .panel-grid .simple-social-icons ul li.social-rss:before, .panel-grid .simple-social-icons ul li.social-stumbleupon:before, .panel-grid .simple-social-icons ul li.social-tumblr:before, .panel-grid .simple-social-icons ul li.social-twitter:before, .panel-grid .simple-social-icons ul li.social-vimeo:before, .panel-grid .simple-social-icons ul li.social-youtube:before { + display: none !important; + content: none !important; +} +.panel-grid .simple-social-icons ul li a .glyphicon-new-window { + display: none !important; + content: none !important; +} + +#page-page-builder #primary #main .page h3.widget-title { + margin-top: 0px; + margin-bottom: 0.75em; + font-weight: 500; +} + +#page-page-builder-cards #primary #main { + background-color: transparent; + border: none; + padding-left: 0px; + padding-right: 0px; +} +#page-page-builder-cards #primary #main .page .entry-content { + margin-top: 0; +} +#page-page-builder-cards #primary #main .page .entry-content h3.widget-title { + margin-top: 0px; + margin-bottom: 0.75em; + font-weight: 500; +} +#page-page-builder-cards #primary #main .page .entry-content .widget { + background-color: white; + border: 1px solid #eaeaea; + padding: 2em; + margin-bottom: 10px; +} +#page-page-builder-cards #primary #main .page .entry-content .widget.widget_metaslider_widget { + background-color: transparent; + border: none; + padding: 0; +} +#page-page-builder-cards #primary #main .panel-grid { + margin-bottom: 0px; + margin-left: -5px; + margin-right: -5px; +} +#page-page-builder-cards #primary #main .panel-grid .panel-grid-cell { + padding-left: 5px; + padding-right: 5px; +} + +.home #content #page-page-builder-cards .panel-grid .widget.widget_metaslider_widget { + margin-bottom: 0px !important; +} +.home #content #page-page-builder-cards .panel-grid .widget.widget_metaslider_widget ul.flex-direction-nav li { + margin: 0 !important; +} + +body.page-template-page-blank .widget.widget_rcpt { + /*Recent Custom Posts Type Widget */ +} +body.page-template-page-blank .widget.widget_rcpt ul { + padding-left: 0; + list-style-type: none; +} +body.page-template-page-blank .widget.widget_rcpt ul .rcpt_item_image { + margin-bottom: 10px; +} +body.page-template-page-blank .widget.widget_rcpt ul .rcpt_item_excerpt { + margin-top: 10px; +} +body.page-template-page-blank .widget.widget_rcpt ul .rcpt_item_date { + margin-top: 10px; +} +body.page-template-page-blank .widget.widget_rcpt ul li { + margin-bottom: 30px; +} +body.page-template-page-blank .widget.widget_recent-posts { + /*Recent Posts Widget */ +} +body.page-template-page-blank .widget.widget_recent-posts ul { + padding-left: 0; + list-style-type: none; +} +body.page-template-page-blank .widget.widget_recent-posts ul li { + margin-bottom: 15px; +} +body.page-template-page-blank .widget.widget_recent-posts ul li .post-date { + display: block; + font-size: 11.5px; + margin-top: 5px; +} +body.page-template-page-blank .widget.widget_dpe_fp_widget { + /*Flexible Posts Widget */ +} +body.page-template-page-blank .widget.widget_dpe_fp_widget ul { + padding-left: 0; + list-style-type: none; +} +body.page-template-page-blank .widget.widget_dpe_fp_widget ul li { + margin-bottom: 0px; +} + body { font-family: 'Proxima Nova', helvetica, arial, sans-serif; } @@ -10985,6 +11114,31 @@ h1#uc-site-title { margin-bottom: 16px; text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); } +.home #content .panel-grid .metaslider .caption-wrap a { + background-color: #c7902b; + border: 1px solid #b78124; + border-radius: 4px; + clear: both; + color: white !important; + display: inline-block; + font-size: 12px; + font-weight: 500; + margin-top: 20px !important; + padding-left: 10px; + padding-right: 10px; + padding-top: 4px; + padding-bottom: 2px; + position: relative; + text-decoration: none; + text-transform: uppercase; + white-space: nowrap; +} +.home #content .panel-grid .metaslider .caption-wrap a:hover { + background-color: #b78124; +} +.home #content .panel-grid .metaslider .caption-wrap p { + text-shadow: 0 1px 2px #333; +} .home #content .panel-grid .widget { border-radius: 0px !important; } @@ -11081,6 +11235,9 @@ h1#uc-site-title { width: 205px; } } +.home #content .home-quick-button-1 h2 a .glyphicon { + display: none; +} .home #content .home-quick-button-1 h2 a:hover { color: #CD942D !important; } @@ -11120,6 +11277,9 @@ h1#uc-site-title { width: 205px; } } +.home #content .home-quick-button-2 h2 a .glyphicon { + display: none; +} .home #content .home-quick-button-2 h2 a:hover { color: #CD942D !important; } @@ -11159,6 +11319,9 @@ h1#uc-site-title { width: 205px; } } +.home #content .home-quick-button-3 h2 a .glyphicon { + display: none; +} .home #content .home-quick-button-3 h2 a:hover { color: #CD942D !important; } @@ -11198,6 +11361,9 @@ h1#uc-site-title { width: 205px; } } +.home #content .home-quick-button-4 h2 a .glyphicon { + display: none; +} .home #content .home-quick-button-4 h2 a:hover { color: #CD942D !important; } @@ -12268,3 +12434,13 @@ body.single-person .col-sm-4 { #page #content .widget .btn:hover.btn-info { color: white !important; } + +#accordion a.accordion-closed.accordion-open.collapsed::after, #accordion a.accordion-closed.accordion-open::after, #accordion a.accordion-closed::after { + margin-top: -16px; +} + +@media (min-width: 1200px) { + .cat-item.cat-item-855 a { + font-size: 11px !important; + } +} diff --git a/page-blog.php b/page-blog.php index f1be99d..abcc3ac 100644 --- a/page-blog.php +++ b/page-blog.php @@ -1,99 +1,103 @@ - -
- - - -
-
-
-
- ID; - $authorsStr .= $id.','; - } - $author = rtrim($authorsStr, ','); - } else { - $author = get_user_by('slug', $authornames)->ID; - } - $args = array( - 'post_type' => 'post', - 'category_name' => $cat, - 'tag' => $tag, - 'author' => $author, - 'post_status' => 'publish', - 'paged' => get_query_var('paged'), - ); - if( isset($args) ){ - $pattern = '#[a-zA-Z|~`!@\#$%^&*()_+=|\\}\][{\'/;\-":?>.<]#'; - $arr = array('category_name'=>$cat, 'tag'=>$tag, 'author'=>$author); - foreach( $arr as $k=>$v ){ - if( empty($v) ){ - continue; - } - if( $k == 'author' ){ - $pattern = '#[0-9|~`!@\#$%^&*()_+=|\\}\][{\'/;\-":?>.<]#'; - } - if( preg_match($pattern, $v) ){ - $args[$k] = $v; - } else { - echo '

Invalid input in field: "'.$k.'"

'; - } - } - } - query_posts( $args ); - if( have_posts() ): - while( have_posts() ): the_post(); ?> -
-
- -
-
-

-

-
-
- -
- -
-
- - - - - - - -
-

- -

-
- -
-
-
- -
- - -
+ +
+ + + +
+
+
+
+ ID; + $authorsStr .= $id.','; + } + $author = rtrim($authorsStr, ','); + } else { + $author = get_user_by('slug', $authornames)->ID; + } + $inTheMediaObj = get_category_by_slug('neag-in-the-media'); + $args = array( + 'post_type' => 'post', + 'category_name' => $cat, + 'cat'=> '-'.$inTheMediaObj->term_id, + 'tag' => $tag, + 'author' => $author, + 'post_status' => 'publish', + 'paged' => get_query_var('paged'), + ); + if( isset($args) ){ + $pattern = '#[a-zA-Z|~`!@\#$%^&*()_+=|\\}\][{\'/;\-":?>.<]#'; + $arr = array('category_name'=>$cat, 'tag'=>$tag, 'author'=>$author); + foreach( $arr as $k=>$v ){ + if( empty($v) ){ + continue; + } + if( $k == 'author' ){ + $pattern = '#[0-9|~`!@\#$%^&*()_+=|\\}\][{\'/;\-":?>.<]#'; + } + if( preg_match($pattern, $v) ){ + $args[$k] = $v; + } else { + echo '

Invalid input in field: "'.$k.'"

'; + } + } + } + query_posts( $args ); + if( have_posts() ): + while( have_posts() ): the_post();?> +
+
+ +
+
+

+

+
+
+ +
+ +
+
+ + + + + + + +
+

+ +

+
+ +
+
+
+ +
+ + +
\ No newline at end of file diff --git a/sass/neag.scss b/sass/neag.scss index 827f767..7973341 100644 --- a/sass/neag.scss +++ b/sass/neag.scss @@ -390,6 +390,33 @@ h1#uc-site-title { } } + a { + background-color:#c7902b; + border:1px solid #b78124; + border-radius:4px; + clear:both; + color:#fff!important; + display:inline-block; + font-size:12px; + font-weight:500; + margin-top:20px!important; + padding-left:10px; + padding-right:10px; + padding-top:4px; + padding-bottom:2px; + position:relative; + text-decoration:none; + text-transform:uppercase; + white-space:nowrap; + } + + a:hover { + background-color:#b78124 + } + + p { + text-shadow:0 1px 2px #333; + } } } @@ -495,6 +522,10 @@ h1#uc-site-title { margin-top:61px !important; width:205px; } + + .glyphicon { + display:none; + } } h2 a:hover { @@ -534,6 +565,10 @@ h1#uc-site-title { margin-top:72px !important; width:205px; } + + .glyphicon { + display:none; + } } h2 a:hover { @@ -573,6 +608,9 @@ h1#uc-site-title { margin-top:61px !important; width:205px; } + .glyphicon { + display:none; + } } h2 a:hover { color:#CD942D !important; @@ -610,6 +648,10 @@ h1#uc-site-title { margin-top:61px !important; width:205px; } + .glyphicon { + display:none; + } + } h2 a:hover { color:#CD942D !important; @@ -1893,3 +1935,14 @@ body.single-person { color:white !important; } } + + +#accordion a.accordion-closed.accordion-open.collapsed::after,#accordion a.accordion-closed.accordion-open::after,#accordion a.accordion-closed::after { +margin-top:-16px +} + +@media (min-width:1200px) { + .cat-item.cat-item-855 a { + font-size:11px!important + } +} \ No newline at end of file diff --git a/single.php b/single.php index 920f1bc..7e9c029 100644 --- a/single.php +++ b/single.php @@ -4,6 +4,9 @@ * * @package cornerstone */ + $key="featured-news-link"; + $link = get_post_meta($post->ID, $key, true); +if(!empty($link)) wp_redirect($link); get_header(); ?>
@@ -20,7 +23,7 @@ get_header(); ?> Share on:  facebookFacebook TwitterTwitter LinkedInLinkedIn - emailEmail + emailEmail