Changeset 1534568
- Timestamp:
- 11/15/2016 08:09:58 PM (9 years ago)
- Location:
- socius-marketing-page-taxonomy/trunk
- Files:
-
- 4 edited
-
css/styles.css (modified) (5 diffs)
-
inc/archive-pages.php (modified) (3 diffs)
-
inc/template-archive.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
socius-marketing-page-taxonomy/trunk/css/styles.css
r1533930 r1534568 114 114 } 115 115 116 . row {116 .smct-row { 117 117 margin-right: -15px; 118 118 margin-left: -15px; 119 119 } 120 120 121 . row:before,122 . row:after {121 .smct-row:before, 122 .smct-row:after { 123 123 display:table; 124 124 content:''; 125 125 } 126 . row:after {126 .smct-row:after { 127 127 clear:both; 128 128 } … … 132 132 box-sizing: border-box; 133 133 } 134 . col-sm-3, .col-sm-4, .col-sm-6, .col-sm-8,135 . col-md-3, .col-md-4, .col-md-9 {134 .smct-col-sm-3, .smct-col-sm-4, .smct-col-sm-6, .smct-col-sm-8, 135 .smct-col-md-3, .smct-col-md-4, .smct-col-md-9 { 136 136 position: relative; 137 137 min-height: 1px; … … 139 139 padding-left: 15px; 140 140 } 141 . col-xs-12 {141 .smct-col-xs-12 { 142 142 width:100%; 143 143 } … … 145 145 /* Small devices (tablets, 768px and up) */ 146 146 @media (min-width: 768px) { 147 . col-sm-3, .col-sm-4, .col-sm-6, .col-sm-8,148 . col-md-3, .col-md-4, .col-md-9 {147 .smct-col-sm-3, .smct-col-sm-4, .smct-col-sm-6, .smct-col-sm-8, 148 .smct-col-md-3, .smct-col-md-4, .smct-col-md-9 { 149 149 float:left; 150 150 } 151 . col-sm-3 {151 .smct-col-sm-3 { 152 152 width: 25%; 153 153 } 154 . col-sm-4 {154 .smct-col-sm-4 { 155 155 width:33.33333333%; 156 156 } 157 . col-sm-6 {157 .smct-col-sm-6 { 158 158 width:50%; 159 159 } 160 . col-sm-8 {160 .smct-col-sm-8 { 161 161 width:66.66666667%; 162 162 } … … 170 170 /* Medium devices (desktops, 992px and up) */ 171 171 @media (min-width: 992px) { 172 . col-md-3 {172 .smct-col-md-3 { 173 173 width: 25%; 174 174 } 175 . col-md-4 {175 .smct-col-md-4 { 176 176 width: 33.33333333%; 177 177 } 178 . col-md-9 {178 .smct-col-md-9 { 179 179 width: 75%; 180 180 } -
socius-marketing-page-taxonomy/trunk/inc/archive-pages.php
r1533930 r1534568 61 61 wp_reset_postdata(); 62 62 63 $content .= '<div id="smct-' . $term->slug . '" class=" col-md-4col-sm-6 smct-category">';63 $content .= '<div id="smct-' . $term->slug . '" class="smct-col-md-4 smct-col-sm-6 smct-category">'; 64 64 $content .= '<h3><a href="' . esc_url( get_term_link( $term ) ) . '"><span class="smct-image-wrap" style="background-image:url(' . $first_image . ')"></span>' . $term->name . '</a></h3>'; 65 65 $content .= '</div>'; … … 98 98 $content .= '<h1>Areas Served</h1>'; 99 99 } 100 $content .= '<div class=" row">';100 $content .= '<div class="smct-row">'; 101 101 foreach ( $terms as $term ) { 102 102 … … 125 125 wp_reset_postdata(); 126 126 if(get_option('smct_width_of_pages')[0] == 'full-width') { 127 $width = ' col-md-3 col-sm-6col-xs-12';127 $width = 'smct-col-md-3 smct-col-sm-6 smct-col-xs-12'; 128 128 } else { 129 $width = ' col-md-4 col-sm-6col-xs-12';129 $width = 'smct-col-md-4 smct-col-sm-6 smct-col-xs-12'; 130 130 } 131 131 $content .= '<div id="smct-' . $term->slug . '" class="' . $width . ' smct-state">'; -
socius-marketing-page-taxonomy/trunk/inc/template-archive.php
r1533930 r1534568 87 87 88 88 echo '<div id="smct-cities-listing">'; 89 echo '<div class=" row">';90 echo '<div class=" col-sm-4col-xs-12"><p><span class="stateface cities">' . smct_determine_stateface($current_page->name) . '</span></p></div>';91 echo '<div class=" col-sm-8col-xs-12">';89 echo '<div class="smct-row">'; 90 echo '<div class="smct-col-sm-4 smct-col-xs-12"><p><span class="stateface cities">' . smct_determine_stateface($current_page->name) . '</span></p></div>'; 91 echo '<div class="smct-col-sm-8 smct-col-xs-12">'; 92 92 echo '<ul>'; 93 93 foreach ( $termchildren as $child ) { 94 94 $term = get_term_by( 'id', $child, $taxonomy ); 95 echo '<li class=" col-sm-6"><a href="' . get_term_link( $child, $taxonomy ) . '">' . $term->name . '</a></li>';95 echo '<li class="smct-col-sm-6"><a href="' . get_term_link( $child, $taxonomy ) . '">' . $term->name . '</a></li>'; 96 96 } 97 97 echo '</ul>'; … … 108 108 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 109 109 110 <div class="smct-archive-summary row">111 <div class=" col-md-3 col-sm-4col-xs-12 smct-image">110 <div class="smct-archive-summary smct-row"> 111 <div class="smct-col-md-3 smct-col-sm-4 smct-col-xs-12 smct-image"> 112 112 <a href="<?php the_permalink(); ?>"><span class="smct-image-wrap" style="background-image:url(<?php echo smct_grab_first_image(); ?>)"></span></a> 113 113 <?php /* <img src="<?php echo smct_grab_first_image(); ?>" alt="<?php echo get_the_title();?>" />*/ ?> 114 114 </div> 115 <div class=" col-md-9 col-sm-8col-xs-12 smct-text">115 <div class="smct-col-md-9 smct-col-sm-8 smct-col-xs-12 smct-text"> 116 116 <h3 class="smct-archive-title"><a href="<?php the_permalink(); ?>" title="<?php printf( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> 117 117 <?php //Use Custom Page Title meta, if there is one -
socius-marketing-page-taxonomy/trunk/readme.txt
r1533930 r1534568 62 62 == Changelog == 63 63 64 = 1.0.1 = 65 * Updated CSS to not conflict with Bootstrap. 66 64 67 = 1.0.0 = 65 68 * Custom Taxonomies.
Note: See TracChangeset
for help on using the changeset viewer.