First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
| <img class="check" src="images/check-img.png" onerror="this.onerror=null;this.src='https://domain.com/wp-content/themes/mytheme/assets/check-img.png';" alt="Check Image" style="margin-right: 7px; display: inline-block; vertical-align: middle; border: 0px;" /> |
| /** | |
| * Enable vCard Upload | |
| * | |
| */ | |
| function be_enable_vcard_upload( $mime_types ){ | |
| $mime_types['vcf'] = 'text/x-vcard'; | |
| return $mime_types; | |
| } | |
| add_filter('upload_mimes', 'be_enable_vcard_upload' ); |
| var downloadTrigger = getUrlParameter('download'); | |
| if ( downloadTrigger == 'true' ) { | |
| function download_file(fileURL, fileName) { | |
| // for non-IE | |
| if (!window.ActiveXObject) { | |
| var save = document.createElement('a'); | |
| save.href = fileURL; | |
| save.target = '_blank'; | |
| var filename = fileURL.substring(fileURL.lastIndexOf('/')+1); | |
| save.download = fileName || filename; |
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
| <?php | |
| // Use AdvancedCustomFields for the content | |
| $word_count = str_word_count( strip_tags( get_field('content') ) ); | |
| if ($word_count > 39) { | |
| echo '<p><a href="'.get_permalink().'">Read More</a></p>'; | |
| } | |
| ?> |
| <?php | |
| $temp = $wp_query; | |
| $wp_query = null; | |
| $wp_query = new WP_Query(); | |
| $wp_query->query('showposts=6&post_type=news'.'&paged='.$paged); | |
| while ($wp_query->have_posts()) : $wp_query->the_post(); | |
| ?> | |
| <!-- LOOP: Usual Post Template Stuff Here--> |
| //########## Glossary | |
| @nas-brand: #90C43D; | |
| @nas-info: #AD9D90; | |
| .flex ( @direction : row; @wrap : no-wrap; @justify : flex-start; @content : flex-start; @items : flex-start; ) { | |
| display: flex; | |
| flex-direction: @direction; | |
| flex-wrap: @wrap; | |
| justify-content: @justify; |
| { | |
| "color_scheme": "Packages/Theme - One Dark/One Dark.tmTheme", | |
| "font_face": "Fira Code Light", | |
| "font_options": | |
| [ | |
| "no_italic", | |
| "gray_antialias" | |
| ], | |
| "font_size": 9, | |
| "highlight_line": true, |
| /** | |
| * For developers: WordPress debugging mode. | |
| * | |
| * Change this to true to enable the display of notices during development. | |
| * It is strongly recommended that plugin and theme developers use WP_DEBUG | |
| * in their development environments. | |
| * | |
| * For information on other constants that can be used for debugging, | |
| * visit the Codex. | |
| * |