├── .gitignore ├── 404.php ├── README.md ├── archive.php ├── author.php ├── bower.json ├── codesniffer.ruleset.xml ├── comments.php ├── composer.json ├── css ├── custom-editor-style.css ├── theme.css ├── theme.min.css └── theme.min.css.map ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.svg ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff ├── fontawesome-webfont.woff2 ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── footer.php ├── functions.php ├── global-templates ├── left-sidebar-check.php └── pagination.php ├── gulpfile.js ├── header-front-page.php ├── header.php ├── img ├── header.jpg ├── placeholder.png └── src │ └── header.jpg ├── inc ├── bootstrap-wp-navwalker.php ├── custom-comments.php ├── custom-header.php ├── custom-tags.php ├── customizer.php ├── editor.php ├── enqueue.php ├── extras.php ├── jetpack.php ├── pagination.php ├── related-posts.php ├── security.php ├── setup.php ├── style-wpcom.css ├── template-tags.php ├── theme-settings.php ├── untitled.html ├── widgets.php ├── woocommerce.php └── wpcom.php ├── index.php ├── js ├── core.js ├── jquery.js ├── jquery.min.js ├── jquery.slim.js ├── jquery.slim.min.js ├── main.js ├── popper.js ├── popper.min.js ├── theme.js └── theme.min.js ├── languages ├── de_DE.mo ├── de_DE.po ├── el_GR.mo ├── el_GR.po ├── es_ES.mo ├── es_ES.po ├── fr_FR.mo ├── fr_FR.po ├── it_IT.mo ├── it_IT.po ├── ko_KR.mo ├── ko_KR.po ├── nb_NO.mo ├── nb_NO.po ├── nl_NL.mo ├── nl_NL.po ├── nn_NO.mo ├── nn_NO.po ├── pt_BR.mo ├── pt_BR.po ├── pt_PT.mo ├── pt_PT.po ├── ru_RU.mo ├── ru_RU.po ├── sv_SE.mo ├── sv_SE.po ├── understrap.pot ├── zh_CN.mo └── zh_CN.po ├── loop-templates ├── content-aside.php ├── content-blank.php ├── content-empty.php ├── content-gallery.php ├── content-group.php ├── content-none.php ├── content-page.php ├── content-search.php ├── content-single.php ├── content-status.php ├── content.php └── widgets-posts │ ├── posts-style1.php │ ├── posts-style2.php │ └── posts-style3.php ├── package.json ├── page-templates ├── blank.php ├── both-sidebarspage.php ├── empty.php ├── fullwidthpage.php ├── left-sidebarpage.php └── right-sidebarpage.php ├── page.php ├── sass ├── assets │ ├── bootstrap4.scss │ ├── font-awesome.scss │ └── underscores.scss ├── theme.scss ├── theme │ ├── _contact-form7.scss │ ├── _theme.scss │ └── _theme_variables.scss └── understrap │ └── understrap.scss ├── screenshot.png ├── search.php ├── searchform.php ├── sidebar-left.php ├── sidebar-right.php ├── sidebar.php ├── single.php ├── src ├── js │ ├── bootstrap4 │ │ ├── bootstrap.bundle.js │ │ ├── bootstrap.bundle.min.js │ │ ├── bootstrap.js │ │ └── bootstrap.min.js │ ├── customizer.js │ ├── navigation.js │ └── skip-link-focus-fix.js └── sass │ ├── bootstrap4 │ ├── _alert.scss │ ├── _badge.scss │ ├── _breadcrumb.scss │ ├── _button-group.scss │ ├── _buttons.scss │ ├── _card.scss │ ├── _carousel.scss │ ├── _close.scss │ ├── _code.scss │ ├── _custom-forms.scss │ ├── _dropdown.scss │ ├── _forms.scss │ ├── _functions.scss │ ├── _grid.scss │ ├── _images.scss │ ├── _input-group.scss │ ├── _jumbotron.scss │ ├── _list-group.scss │ ├── _media.scss │ ├── _mixins.scss │ ├── _modal.scss │ ├── _nav.scss │ ├── _navbar.scss │ ├── _pagination.scss │ ├── _popover.scss │ ├── _print.scss │ ├── _progress.scss │ ├── _reboot.scss │ ├── _root.scss │ ├── _tables.scss │ ├── _tooltip.scss │ ├── _transitions.scss │ ├── _type.scss │ ├── _utilities.scss │ ├── _variables.scss │ ├── bootstrap-grid.scss │ ├── bootstrap-reboot.scss │ ├── bootstrap.scss │ ├── mixins │ │ ├── _alert.scss │ │ ├── _background-variant.scss │ │ ├── _badge.scss │ │ ├── _border-radius.scss │ │ ├── _box-shadow.scss │ │ ├── _breakpoints.scss │ │ ├── _buttons.scss │ │ ├── _caret.scss │ │ ├── _clearfix.scss │ │ ├── _float.scss │ │ ├── _forms.scss │ │ ├── _gradients.scss │ │ ├── _grid-framework.scss │ │ ├── _grid.scss │ │ ├── _hover.scss │ │ ├── _image.scss │ │ ├── _list-group.scss │ │ ├── _lists.scss │ │ ├── _nav-divider.scss │ │ ├── _navbar-align.scss │ │ ├── _pagination.scss │ │ ├── _reset-text.scss │ │ ├── _resize.scss │ │ ├── _screen-reader.scss │ │ ├── _size.scss │ │ ├── _table-row.scss │ │ ├── _text-emphasis.scss │ │ ├── _text-hide.scss │ │ ├── _text-truncate.scss │ │ ├── _transition.scss │ │ └── _visibility.scss │ └── utilities │ │ ├── _align.scss │ │ ├── _background.scss │ │ ├── _borders.scss │ │ ├── _clearfix.scss │ │ ├── _display.scss │ │ ├── _embed.scss │ │ ├── _flex.scss │ │ ├── _float.scss │ │ ├── _position.scss │ │ ├── _screenreaders.scss │ │ ├── _sizing.scss │ │ ├── _spacing.scss │ │ ├── _text.scss │ │ └── _visibility.scss │ ├── fontawesome │ ├── _animated.scss │ ├── _bordered-pulled.scss │ ├── _core.scss │ ├── _fixed-width.scss │ ├── _icons.scss │ ├── _larger.scss │ ├── _list.scss │ ├── _mixins.scss │ ├── _path.scss │ ├── _rotated-flipped.scss │ ├── _screen-reader.scss │ ├── _stacked.scss │ ├── _variables.scss │ └── font-awesome.scss │ └── underscores │ ├── _normalize.scss │ ├── elements │ ├── _elements.scss │ ├── _lists.scss │ └── _tables.scss │ ├── forms │ ├── _buttons.scss │ ├── _fields.scss │ └── _forms.scss │ ├── layout │ ├── _content-sidebar.scss │ └── _sidebar-content.scss │ ├── media │ ├── _captions.scss │ ├── _galleries.scss │ └── _media.scss │ ├── mixins │ └── _mixins-master.scss │ ├── modules │ ├── _accessibility.scss │ ├── _alignments.scss │ ├── _clearings.scss │ └── _infinite-scroll.scss │ ├── navigation │ ├── _links.scss │ ├── _menus.scss │ └── _navigation.scss │ ├── site │ ├── _site.scss │ ├── primary │ │ ├── _comments.scss │ │ └── _posts-and-pages.scss │ └── secondary │ │ └── _widgets.scss │ ├── style.scss │ ├── typography │ ├── _copy.scss │ ├── _headings.scss │ └── _typography.scss │ └── variables-site │ ├── _colors.scss │ ├── _structure.scss │ ├── _typography.scss │ └── _variables-site.scss ├── style.css ├── woocommerce.php └── woocommerce ├── cart ├── cart-empty.php ├── cart.php ├── mini-cart.php └── proceed-to-checkout-button.php ├── checkout ├── form-checkout.php ├── form-coupon.php ├── form-pay.php └── payment.php ├── global ├── form-login.php ├── quantity-input.php ├── wrapper-end.php └── wrapper-start.php ├── loop ├── add-to-cart.php └── orderby.php ├── myaccount ├── downloads.php ├── form-edit-account.php ├── form-edit-address.php ├── form-login.php ├── form-lost-password.php ├── form-reset-password.php ├── my-address.php ├── my-orders.php ├── navigation.php └── orders.php ├── product-searchform.php └── single-product ├── add-to-cart ├── simple.php └── variation-add-to-cart-button.php ├── product-thumbnails.php ├── rating.php ├── review-rating.php └── short-description.php /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | *.scssc 3 | *.sass-cache 4 | node_modules 5 | .idea/modules.xml 6 | .idea/vcs.xml 7 | .idea/workspace.xml 8 | .idea/writing.iml 9 | .idea/inspectionProfiles/profiles_settings.xml 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WordPress主题:Writing 2 | 这是一个简洁的WordPress博客主题,为专注写作而设计。 3 | 4 | ## 主要特色 5 | - Bootstrap4; 6 | - 自适应,支持PC、Pad、手机端; 7 | - 支持八种主题配色:白、浅灰、蓝、浅蓝、黑、绿、橙、红; 8 | - 支持设置背景色和背景图片; 9 | - 两栏设计; 10 | - 定制的标签云小工具:可设置显示标签数量; 11 | - 定制高级文章小工具; 12 | - 标签云页面模板、全宽页面模板; 13 | - 支持文章形式:标准、图像、日志、状态、链接、引语、相册; 14 | - 除了文章形式自带不同样式,列表支持有图、无图、大图(对应文章形式:图像)等多种样式; 15 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 17 | 18 |
19 |
20 | ', '' ); 22 | the_archive_description( '
', '
' ); 23 | ?> 24 |
25 |
26 | 27 |
28 | 29 |
30 | 31 |
32 | 33 | 34 | 35 | 36 |
37 | 38 | 39 | 40 | 41 | 42 | 43 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
62 | 63 | 64 | 65 | 66 |
67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 |
76 | 77 |
78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "understrap", 3 | "version": "0.6.2", 4 | "homepage": "http://understrap.com", 5 | "authors": [ 6 | "Holger Koenemann " 7 | ], 8 | "description": "UnderStrap is a Bootstrap and underscores based WordPress theme framework.", 9 | "moduleType": "globals", 10 | "main": [ 11 | "sass/theme.scss" 12 | ], 13 | "keywords": [ 14 | "bootstrap", 15 | "underscores", 16 | "wordpress", 17 | "_s", 18 | "sass" 19 | ], 20 | "license": "GPL-2.0", 21 | "ignore": [ 22 | "**/.*", 23 | "test", 24 | "tests" 25 | ], 26 | "dependencies": { 27 | }, 28 | "_source": "https://github.com/holger1411/understrap.git", 29 | "_target": "~0.6.2", 30 | "_originalSource": "understrap" 31 | } 32 | -------------------------------------------------------------------------------- /codesniffer.ruleset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | A custom set of code standard rules to check for WordPress themes. 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 0 27 | 28 | 29 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "holger1411/understrap", 3 | "description": "Combines Automattic´s Underscores Starter Theme and Bootstrap 4", 4 | "type": "library", 5 | "license": "GPL-2.0", 6 | "minimum-stability": "stable", 7 | "require": {}, 8 | "keywords": ["wordpress","theme","bootstrap"], 9 | "homepage": "https://github.com/holger1411/understrap" 10 | } 11 | -------------------------------------------------------------------------------- /fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 48 | 49 | 50 | 51 | 52 | 53 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | '; 24 | } else { 25 | $html .= 'col-md-12 content-area" id="primary">'; 26 | } 27 | echo $html; // WPCS: XSS OK. 28 | } elseif ( is_active_sidebar( 'right-sidebar' ) && is_active_sidebar( 'left-sidebar' ) ) { 29 | $html = '
'; 32 | } else { 33 | $html .= 'col-md-12 content-area" id="primary">'; 34 | } 35 | echo $html; // WPCS: XSS OK. 36 | } else { 37 | echo '
'; 38 | } 39 | 40 | -------------------------------------------------------------------------------- /img/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/img/header.jpg -------------------------------------------------------------------------------- /img/placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/img/placeholder.png -------------------------------------------------------------------------------- /img/src/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/img/src/header.jpg -------------------------------------------------------------------------------- /inc/custom-header.php: -------------------------------------------------------------------------------- 1 | get_parent_theme_file_uri( '/img/header.jpg' ), 29 | 'width' => 2000, 30 | 'height' => 1200, 31 | 'flex-height' => true, 32 | ) ) ); 33 | 34 | register_default_headers( array( 35 | 'default-image' => array( 36 | 'url' => '%s/img/header.jpg', 37 | 'thumbnail_url' => '%s/img/header.jpg', 38 | 'description' => __( 'Default Header Image', 'understrap' ), 39 | ), 40 | ) ); 41 | } 42 | add_action( 'after_setup_theme', 'understrap_custom_header_setup' ); 43 | -------------------------------------------------------------------------------- /inc/custom-tags.php: -------------------------------------------------------------------------------- 1 | 'Lead Paragraph', 32 | 'selector' => 'p', 33 | 'classes' => 'lead', 34 | 'wrapper' => true 35 | ), 36 | array( 37 | 'title' => 'Small', 38 | 'inline' => 'small' 39 | ), 40 | array( 41 | 'title' => 'Blockquote', 42 | 'block' => 'blockquote', 43 | 'classes' => 'blockquote', 44 | 'wrapper' => true 45 | ), 46 | array( 47 | 'title' => 'Blockquote Footer', 48 | 'block' => 'footer', 49 | 'classes' => 'blockquote-footer', 50 | 'wrapper' => true 51 | ), 52 | array( 53 | 'title' => 'Cite', 54 | 'inline' => 'cite' 55 | ) 56 | ); 57 | 58 | if ( isset( $settings['style_formats'] ) ) { 59 | $orig_style_formats = json_decode($settings['style_formats'],true); 60 | $style_formats = array_merge($orig_style_formats,$style_formats); 61 | } 62 | 63 | $settings['style_formats'] = json_encode( $style_formats ); 64 | return $settings; 65 | } 66 | -------------------------------------------------------------------------------- /inc/enqueue.php: -------------------------------------------------------------------------------- 1 | get( 'Version' ), false ); 16 | wp_register_script('jquery-slim', (get_template_directory_uri() . '/js/jquery.slim.min.js'), true, '3.2.1'); 17 | wp_enqueue_script( 'jquery-slim' ); 18 | wp_enqueue_script( 'popper-scripts', get_template_directory_uri() . '/js/popper.min.js', array(), true); 19 | wp_enqueue_script( 'main-scripts', get_template_directory_uri() . '/js/main.js', array(), true); 20 | wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $the_theme->get( 'Version' ), true ); 21 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 22 | wp_enqueue_script( 'comment-reply' ); 23 | } 24 | } 25 | } // endif function_exists( 'understrap_scripts' ). 26 | 27 | add_action( 'wp_enqueue_scripts', 'understrap_scripts' ); 28 | -------------------------------------------------------------------------------- /inc/jetpack.php: -------------------------------------------------------------------------------- 1 | 'main', 20 | 'render' => 'components_infinite_scroll_render', 21 | 'footer' => 'page', 22 | ) ); 23 | 24 | // Add theme support for Responsive Videos. 25 | add_theme_support( 'jetpack-responsive-videos' ); 26 | 27 | // Add theme support for Social Menus 28 | add_theme_support( 'jetpack-social-menu' ); 29 | 30 | } 31 | add_action( 'after_setup_theme', 'components_jetpack_setup' ); 32 | 33 | /** 34 | * Custom render function for Infinite Scroll. 35 | */ 36 | function components_infinite_scroll_render() { 37 | while ( have_posts() ) { 38 | the_post(); 39 | if ( is_search() ) : 40 | get_template_part( 'loop-templates/content', 'search' ); 41 | else : 42 | get_template_part( 'loop-templates/content', get_post_format() ); 43 | endif; 44 | } 45 | } 46 | 47 | function components_social_menu() { 48 | if ( ! function_exists( 'jetpack_social_menu' ) ) { 49 | return; 50 | } else { 51 | jetpack_social_menu(); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /inc/security.php: -------------------------------------------------------------------------------- 1 | ERROR: Stop guessing!'; 41 | } 42 | } // endif function_exists( 'show_less_login_info' ). 43 | 44 | add_filter( 'login_errors', 'show_less_login_info' ); 45 | -------------------------------------------------------------------------------- /inc/style-wpcom.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Theme Name: Components 3 | * 4 | * Add any WordPress.com-specific CSS here 5 | * 6 | * This file is enqueued in /inc/wpcom.php 7 | */ -------------------------------------------------------------------------------- /inc/theme-settings.php: -------------------------------------------------------------------------------- 1 | 6 ) : 27 | // Four widgets per row if there are exactly four or more than six 28 | $widget_classes .= ' col-md-3'; 29 | elseif ( 6 == $widget_count ) : 30 | // If two widgets are published 31 | $widget_classes .= ' col-md-2'; 32 | elseif ( $widget_count >= 3 ) : 33 | // Three widgets per row if there's three or more widgets 34 | $widget_classes .= ' col-md-4'; 35 | elseif ( 2 == $widget_count ) : 36 | // If two widgets are published 37 | $widget_classes .= ' col-md-6'; 38 | elseif ( 1 == $widget_count ) : 39 | // If just on widget is active 40 | $widget_classes .= ' col-md-12'; 41 | endif; 42 | return $widget_classes; 43 | endif; 44 | } 45 | } 46 | 47 | if ( ! function_exists( 'understrap_widgets_init' ) ) { 48 | /** 49 | * Initializes themes widgets. 50 | */ 51 | function understrap_widgets_init() { 52 | register_sidebar( array( 53 | 'name' => __( 'Right Sidebar', 'understrap' ), 54 | 'id' => 'right-sidebar', 55 | 'description' => 'Right sidebar widget area', 56 | 'before_widget' => '', 58 | 'before_title' => '

', 59 | 'after_title' => '

', 60 | ) ); 61 | 62 | register_sidebar( array( 63 | 'name' => __( 'Left Sidebar', 'understrap' ), 64 | 'id' => 'left-sidebar', 65 | 'description' => 'Left sidebar widget area', 66 | 'before_widget' => '', 68 | 'before_title' => '

', 69 | 'after_title' => '

', 70 | ) ); 71 | } 72 | } // endif function_exists( 'understrap_widgets_init' ). 73 | add_action( 'widgets_init', 'understrap_widgets_init' ); 74 | -------------------------------------------------------------------------------- /inc/wpcom.php: -------------------------------------------------------------------------------- 1 | '', 22 | 'border' => '', 23 | 'text' => '', 24 | 'link' => '', 25 | 'url' => '', 26 | ); 27 | } 28 | 29 | /* Add WP.com print styles */ 30 | add_theme_support( 'print-styles' ); 31 | } 32 | add_action( 'after_setup_theme', 'understrap_wpcom_setup' ); 33 | 34 | /* 35 | * WordPress.com-specific styles 36 | */ 37 | function understrap_wpcom_styles() { 38 | wp_enqueue_style( 'understrap-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20160411' ); 39 | } 40 | add_action( 'wp_enqueue_scripts', 'understrap_wpcom_styles' ); 41 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 19 | 20 |
21 |
22 | ', '' ); 24 | the_archive_description( '
', '
' ); 25 | ?> 26 |
27 |
28 | 29 |
30 | 31 |
32 | 33 |
34 | 35 | 36 | 37 | 38 |
39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 |
65 | 66 | 67 | 68 | 69 |
70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
79 | 80 |
81 | 82 |
83 | 84 | 85 | -------------------------------------------------------------------------------- /js/main.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $(window).scroll(function() { 3 | var scrollHeight = $(document).scrollTop(); 4 | if (scrollHeight > 60) { 5 | $('.change-nav').removeClass('navbar-dark bg-transparent'); 6 | $('.change-nav').addClass('navbar-light bg-light'); 7 | } else { 8 | $('.change-nav').removeClass('navbar-light bg-light'); 9 | $('.change-nav').addClass('navbar-dark bg-transparent'); 10 | } 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /languages/de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/de_DE.mo -------------------------------------------------------------------------------- /languages/el_GR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/el_GR.mo -------------------------------------------------------------------------------- /languages/es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/es_ES.mo -------------------------------------------------------------------------------- /languages/fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/fr_FR.mo -------------------------------------------------------------------------------- /languages/it_IT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/it_IT.mo -------------------------------------------------------------------------------- /languages/ko_KR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/ko_KR.mo -------------------------------------------------------------------------------- /languages/nb_NO.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/nb_NO.mo -------------------------------------------------------------------------------- /languages/nl_NL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/nl_NL.mo -------------------------------------------------------------------------------- /languages/nn_NO.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/nn_NO.mo -------------------------------------------------------------------------------- /languages/pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/pt_BR.mo -------------------------------------------------------------------------------- /languages/pt_PT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/pt_PT.mo -------------------------------------------------------------------------------- /languages/ru_RU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/ru_RU.mo -------------------------------------------------------------------------------- /languages/sv_SE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/sv_SE.mo -------------------------------------------------------------------------------- /languages/zh_CN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/languages/zh_CN.mo -------------------------------------------------------------------------------- /loop-templates/content-aside.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
id="post-"> 11 | 12 |
13 | 14 | 17 | 18 |
19 | 20 | 21 | 22 | 25 | 26 | 27 | 28 |
29 | -------------------------------------------------------------------------------- /loop-templates/content-blank.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 55 | -------------------------------------------------------------------------------- /loop-templates/content-group.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
id="post-"> 11 | 12 | 13 |
14 | 15 | 24 | 25 |
26 | 27 |
28 | 29 | ', esc_url( get_permalink() ) ), 30 | '' ); ?> 31 | 32 | 33 | 34 | 37 | 38 | 39 | 40 |
41 | 42 |
43 | 44 | 45 | 46 | '', 50 | ) ); 51 | ?> 52 | 53 |
54 | 55 | 60 | 61 |
62 | 63 |
64 | 65 | 66 | 67 |
68 | 69 | 70 | 71 |
72 | 73 | ', esc_url( get_permalink() ) ), 74 | '' ); ?> 75 | 76 | 77 | 78 | 81 | 82 | 83 | 84 |
85 | 86 |
87 | 88 | 89 | 90 | '', 94 | ) ); 95 | ?> 96 | 97 |
98 | 99 |
100 | 101 | 102 | 103 |
104 | -------------------------------------------------------------------------------- /loop-templates/content-none.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 | 19 | 20 |
21 | 22 | 24 | 25 |

Get started here.', 'understrap' ), array( 26 | 'a' => array( 27 | 'href' => array(), 28 | ), 29 | ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?>

30 | 31 | 32 | 33 |

34 | 37 | 38 |

39 | 42 |
43 | 44 |
45 | -------------------------------------------------------------------------------- /loop-templates/content-page.php: -------------------------------------------------------------------------------- 1 | 9 |
id="post-"> 10 | 11 |
12 | 13 | 14 | 15 | '', 19 | ) ); 20 | ?> 21 | 22 |
23 | 24 |
25 | 26 | ', '' ); ?> 27 | 28 |
29 | 30 |
31 | -------------------------------------------------------------------------------- /loop-templates/content-search.php: -------------------------------------------------------------------------------- 1 | 9 |
id="post-"> 10 | 11 |
12 | 13 | ', esc_url( get_permalink() ) ), 14 | '' ); ?> 15 | 16 | 17 | 18 | 23 | 24 | 25 | 26 |
27 | 28 |
29 | 30 | 31 | 32 |
33 | 34 |
35 | 36 | 37 | 38 |
39 | 40 |
41 | -------------------------------------------------------------------------------- /loop-templates/content-single.php: -------------------------------------------------------------------------------- 1 | 9 |
id="post-"> 10 | 11 |
12 | 13 | ', '' ); ?> 14 | 15 | 20 | 21 |
22 | 23 |
24 | 25 | 26 | 27 | '', 31 | ) ); 32 | ?> 33 | 34 |
35 | 36 |
37 | 38 | 39 | 40 |
41 | 42 |
43 | -------------------------------------------------------------------------------- /loop-templates/content-status.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
id="post-"> 12 | 13 |
14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 24 | 25 | 26 | 27 |
28 | -------------------------------------------------------------------------------- /loop-templates/content.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 |
id="post-"> 13 | 14 | 15 |
16 | 17 | 26 | 27 |
28 | 29 |
30 | 31 | ', esc_url( get_permalink() ) ), 32 | '' ); ?> 33 | 34 |
35 | 36 |
37 | 38 | 39 | 40 | '', 44 | ) ); 45 | ?> 46 | 47 |
48 | 49 | 50 | 51 | 54 | 55 | 56 | 57 |
58 | 59 |
60 | 61 | 62 | 63 |
64 | 65 | ', esc_url( get_permalink() ) ), 66 | '' ); ?> 67 | 68 |
69 | 70 |
71 | 72 | 73 | 74 | '', 78 | ) ); 79 | ?> 80 | 81 |
82 | 83 | 84 | 85 | 88 | 89 | 90 | 91 | 92 | 93 |
94 | -------------------------------------------------------------------------------- /loop-templates/widgets-posts/posts-style1.php: -------------------------------------------------------------------------------- 1 | 38 | -------------------------------------------------------------------------------- /loop-templates/widgets-posts/posts-style2.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
id="post-"> 11 | 12 | 13 |
14 | 15 |
16 | 17 | 18 | ''] ); ?> 19 | 20 | 21 |
22 | 23 |
24 | 25 |
26 | 27 | ', esc_url( get_permalink() ) ), 28 | '' ); ?> 29 | 30 | 31 | 32 | 35 | 36 | 37 | 38 |
39 | 40 |
41 | 42 | 43 | 44 | '', 48 | ) ); 49 | ?> 50 | 51 |
52 | 53 |
54 | 55 |
56 | 57 | 58 | 59 |
60 | 61 | ', esc_url( get_permalink() ) ), 62 | '' ); ?> 63 | 64 | 65 | 66 | 69 | 70 | 71 | 72 |
73 | 74 |
75 | 76 | 77 | 78 | '', 82 | ) ); 83 | ?> 84 | 85 |
86 | 87 | 88 | 89 |
90 | -------------------------------------------------------------------------------- /loop-templates/widgets-posts/posts-style3.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 39 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "understrap", 3 | "version": "0.6.6", 4 | "description": "WordPress Theme framework", 5 | "main": "index.js", 6 | "scripts": { 7 | "postinstall": "gulp copy-assets" 8 | }, 9 | "engines": { 10 | "npm": ">=2.1.8" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/holger1411/understrap.git" 15 | }, 16 | "keywords": [ 17 | "wordpress", 18 | "theme", 19 | "framework", 20 | "bootstrap", 21 | "underscores" 22 | ], 23 | "author": "Holger Koenemann", 24 | "license": "GPL-2.0", 25 | "bugs": { 26 | "url": "https://github.com/holger1411/understrap/issues" 27 | }, 28 | "homepage": "https://understrap.com", 29 | "dependencies": { 30 | "bootstrap": "4.0.0-beta.2", 31 | "browser-sync": "^2.18.13", 32 | "del": "^3.0.0", 33 | "font-awesome": "^4.7.0", 34 | "gulp": "^3.9.1", 35 | "gulp-clean-css": "^3.9.0", 36 | "gulp-clone": "^1.0.0", 37 | "gulp-concat": "^2.6.1", 38 | "gulp-cssnano": "^2.1.2", 39 | "gulp-ignore": "^2.0.2", 40 | "gulp-imagemin": "^3.4.0", 41 | "gulp-merge": "^0.1.1", 42 | "gulp-plumber": "^1.1.0", 43 | "gulp-rename": "^1.2.2", 44 | "gulp-rimraf": "^0.2.1", 45 | "gulp-sass": "^3.1.0", 46 | "gulp-sequence": "^0.4.6", 47 | "gulp-sourcemaps": "2.6.1", 48 | "gulp-uglify": "^3.0.0", 49 | "gulp-watch": "^4.3.11", 50 | "jquery": "3.2.1", 51 | "merge2": "^1.2.0", 52 | "popper.js": "^1.12.6", 53 | "run-sequence": "^2.2.0", 54 | "undescores-for-npm": "^1.0.0" 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /page-templates/blank.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | > 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /page-templates/both-sidebarspage.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 |
17 |
18 |

19 |
20 |
21 | 22 |
23 | 24 |
25 | 26 |
27 | 28 | 29 | 30 |
37 | 38 |
39 | 40 | 41 | 42 | 48 | 49 | 50 | 51 |
52 | 53 |
54 | 55 | 56 | 57 |
58 | 59 |
60 | 61 |
62 | 63 | 64 | -------------------------------------------------------------------------------- /page-templates/empty.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 |
17 |
18 |

19 |
20 |
21 | 22 |
23 | 24 |
25 | 26 |
27 | 28 |
29 | 30 |
31 | 32 | 33 | 34 | 35 | 36 | 44 | 45 | 46 | 47 |
48 | 49 |
50 | 51 |
52 | 53 |
54 | 55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /page-templates/left-sidebarpage.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 |
17 |
18 |

19 |
20 |
21 | 22 |
23 | 24 |
25 | 26 |
27 | 28 | 29 | 30 |
33 | 34 |
35 | 36 | 37 | 38 | 44 | 45 | 46 | 47 |
48 | 49 |
50 | 51 |
52 | 53 |
54 | 55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /page-templates/right-sidebarpage.php: -------------------------------------------------------------------------------- 1 | 13 | 14 |
15 | 16 |
17 | 18 |
19 | 20 |
23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 36 | 37 | 38 | 39 |
40 | 41 |
42 | 43 | 44 | 45 |
46 | 47 |
48 | 49 |
50 | 51 | 52 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 19 | 20 |
21 |
22 |

23 |
24 |
25 | 26 |
27 | 28 |
29 | 30 |
31 | 32 | 33 | 34 | 35 |
36 | 37 | 38 | 39 | 45 | 46 | 47 | 48 |
49 | 50 |
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
60 | 61 |
62 | 63 |
64 | 65 | 66 | -------------------------------------------------------------------------------- /sass/assets/bootstrap4.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v4.0.0-beta (https://getbootstrap.com) 3 | * Copyright 2011-2017 The Bootstrap Authors 4 | * Copyright 2011-2017 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | */ 7 | 8 | @import "../../src/sass/bootstrap4/functions"; 9 | @import "../../src/sass/bootstrap4/variables"; 10 | @import "../../src/sass/bootstrap4/mixins"; 11 | @import "../../src/sass/bootstrap4/print"; 12 | @import "../../src/sass/bootstrap4/reboot"; 13 | @import "../../src/sass/bootstrap4/type"; 14 | @import "../../src/sass/bootstrap4/images"; 15 | @import "../../src/sass/bootstrap4/code"; 16 | @import "../../src/sass/bootstrap4/grid"; 17 | @import "../../src/sass/bootstrap4/tables"; 18 | @import "../../src/sass/bootstrap4/forms"; 19 | @import "../../src/sass/bootstrap4/buttons"; 20 | @import "../../src/sass/bootstrap4/transitions"; 21 | @import "../../src/sass/bootstrap4/dropdown"; 22 | @import "../../src/sass/bootstrap4/button-group"; 23 | @import "../../src/sass/bootstrap4/input-group"; 24 | @import "../../src/sass/bootstrap4/custom-forms"; 25 | @import "../../src/sass/bootstrap4/nav"; 26 | @import "../../src/sass/bootstrap4/navbar"; 27 | @import "../../src/sass/bootstrap4/card"; 28 | @import "../../src/sass/bootstrap4/breadcrumb"; 29 | @import "../../src/sass/bootstrap4/pagination"; 30 | @import "../../src/sass/bootstrap4/badge"; 31 | @import "../../src/sass/bootstrap4/jumbotron"; 32 | @import "../../src/sass/bootstrap4/alert"; 33 | @import "../../src/sass/bootstrap4/progress"; 34 | @import "../../src/sass/bootstrap4/media"; 35 | //@import "../../src/sass/bootstrap4/list-group"; 36 | @import "../../src/sass/bootstrap4/close"; 37 | @import "../../src/sass/bootstrap4/modal"; 38 | @import "../../src/sass/bootstrap4/tooltip"; 39 | @import "../../src/sass/bootstrap4/popover"; 40 | @import "../../src/sass/bootstrap4/carousel"; 41 | @import "../../src/sass/bootstrap4/utilities"; 42 | -------------------------------------------------------------------------------- /sass/assets/font-awesome.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "../../src/sass/fontawesome/variables"; 7 | @import "../../src/sass/fontawesome/mixins"; 8 | @import "../../src/sass/fontawesome/path"; 9 | @import "../../src/sass/fontawesome/core"; 10 | @import "../../src/sass/fontawesome/larger"; 11 | @import "../../src/sass/fontawesome/fixed-width"; 12 | @import "../../src/sass/fontawesome/list"; 13 | @import "../../src/sass/fontawesome/bordered-pulled"; 14 | @import "../../src/sass/fontawesome/animated"; 15 | @import "../../src/sass/fontawesome/rotated-flipped"; 16 | @import "../../src/sass/fontawesome/stacked"; 17 | @import "../../src/sass/fontawesome/icons"; 18 | @import "../../src/sass/fontawesome/screen-reader"; 19 | 20 | -------------------------------------------------------------------------------- /sass/assets/underscores.scss: -------------------------------------------------------------------------------- 1 | @import "../../src/sass/underscores/media/galleries"; 2 | -------------------------------------------------------------------------------- /sass/theme.scss: -------------------------------------------------------------------------------- 1 | @import "theme/theme_variables"; // <--------- Add your variables into this file. Also add variables to overwrite Bootstrap or UnderStrap variables here 2 | @import "assets/bootstrap4";// <--------- Loads Bootstrap3 or Bootstrap4. Change from /bootstrap3 to /bootstrap4 Watch out! just for testing in the moment! 3 | @import "understrap/understrap";// <-------- Loads the UnderStrap defaults. Just a few classes to incorporate BS in WP 4 | 5 | //Optional files - If you dont use the corresponding scripts/fonts comment em out 6 | @import "assets/font-awesome"; // <------- Font Awesome Icon font 7 | @import "assets/underscores"; // <------- Underscores media styles 8 | 9 | // Any additional imported files // 10 | @import "theme/theme"; // <--------- That's where you can add your own design. Thats your part! 11 | @import "theme/contact-form7"; // Contact Form 7 - Bootstrap 4 support 12 | -------------------------------------------------------------------------------- /sass/theme/_contact-form7.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Use existing Bootstrap 4 classes and 3 | * variables to extend - override CF7 style 4 | * 5 | * Useful CF7 classes: 6 | * .wpcf7 the wrapper element 7 | * .wpcf7-form 8 | * .wpcf7-form-control 9 | * .wpcf7-text 10 | * .wpcf7-email 11 | * .wpcf7-textarea 12 | * .wpcf7-submit 13 | */ 14 | 15 | // keep a max width in case it is just the form and nothing else 16 | // we do not want a form spanning whole page 17 | .wpcf7 { 18 | max-width: 600px; 19 | margin: 0 auto !important; 20 | 21 | // all inputs except radios and checkboxes inherit from form-control 22 | input[type=text], 23 | input[type=search], 24 | input[type=url], 25 | input[type=tel], 26 | input[type=number], 27 | input[type=range], 28 | input[type=date], 29 | input[type=month], 30 | input[type=week], 31 | input[type=time], 32 | input[type=datetime], 33 | input[type=datetime-local], 34 | input[type=color], 35 | input[type=email], 36 | input[type=file], 37 | input[type=submit], 38 | select, 39 | textarea { 40 | @extend .form-control; 41 | } 42 | 43 | // submit button, inherit .btn and .btn-outline-primary classes. 44 | input[type=submit] { 45 | @extend .btn; 46 | @extend .btn-outline-primary; 47 | } 48 | 49 | .wpcf7-form { 50 | 51 | // set paragraphs to behave like divs with class .form-group 52 | p { 53 | @extend .form-group; 54 | } 55 | 56 | // let labels be 100% 57 | label { 58 | width: 100%; 59 | } 60 | } 61 | 62 | // not valid tip for each control 63 | .wpcf7-not-valid-tip { 64 | color: theme-color("danger"); 65 | } 66 | 67 | // validation errors ourput bottom of form 68 | .wpcf7-validation-errors { 69 | @extend .form-control; 70 | color: theme-color("danger"); 71 | border: 1px solid $gray-200; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /sass/theme/_theme_variables.scss: -------------------------------------------------------------------------------- 1 | // Use this file to overwrite the basic Bootstrap variables and add your own variables 2 | // To overwrite a Bootstrap variable you don´t have to touch the Bootstrap folder. 3 | // Just copy a variable from /sass/bootstrap/_variables.scss, paste it here and edit the value. 4 | 5 | // html { 6 | // font-size: 14px; 7 | // } 8 | 9 | // stylelint-disable 10 | $white: #fff !default; 11 | $gray-100: #f8f9fa !default; 12 | $gray-200: #e9ecef !default; 13 | $gray-300: #dee2e6 !default; 14 | $gray-400: #ced4da !default; 15 | $gray-500: #adb5bd !default; 16 | $gray-600: #868e96 !default; 17 | $gray-700: #495057 !default; 18 | $gray-800: #343a40 !default; 19 | $gray-900: #212529 !default; 20 | $black: #000 !default; 21 | 22 | $list-group-border-color: rgba($black,.075) !default; 23 | $card-border-color: rgba($black,.075) !default; //.125 24 | 25 | // $line-height-base: 1.8 !default; 26 | // $line-height-lg: 1.8 !default; 27 | // $line-height-sm: 1.5 !default; 28 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sieon/writing/3fe3e29a361df6040340f74115c89f693390311c/screenshot.png -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | 13 | 14 |
15 | 16 |
17 | 18 |
19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 35 | 36 | 37 | 38 | 39 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
57 | 58 | 59 | 60 | 61 |
62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
71 | 72 |
73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /searchform.php: -------------------------------------------------------------------------------- 1 | 9 | 20 | -------------------------------------------------------------------------------- /sidebar-left.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /woocommerce/cart/cart-empty.php: -------------------------------------------------------------------------------- 1 | 0 ) : ?> 31 |

32 | 33 | 34 | 35 |

36 | 37 | -------------------------------------------------------------------------------- /woocommerce/cart/proceed-to-checkout-button.php: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /woocommerce/checkout/form-checkout.php: -------------------------------------------------------------------------------- 1 | enable_signup && ! $checkout->enable_guest_checkout && ! is_user_logged_in() ) { 29 | echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ) ); 30 | return; 31 | } 32 | 33 | ?> 34 | 35 |
36 | 37 | checkout_fields ) > 0 ) : ?> 38 | 39 | 40 | 41 |
42 |
43 | 44 |
45 | 46 |
47 | 48 |
49 |
50 | 51 | 52 | 53 | 54 | 55 |

56 | 57 | 58 | 59 |
60 | 61 |
62 | 63 | 64 | 65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /woocommerce/checkout/form-coupon.php: -------------------------------------------------------------------------------- 1 | cart->applied_coupons ) ) { 28 | $info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ) . ' ' . __( 'Click here to enter your code', 'woocommerce' ) . '' ); 29 | wc_print_notice( $info_message, 'notice' ); 30 | } 31 | ?> 32 | 33 | 45 | -------------------------------------------------------------------------------- /woocommerce/checkout/payment.php: -------------------------------------------------------------------------------- 1 | 26 |
27 | cart->needs_payment() ) : ?> 28 | 39 | 40 |
41 | 45 | 46 | 47 | 48 | 49 | 50 | ' ); ?> 51 | 52 | 53 | 54 | 55 |
56 |
57 | 28 |
> 29 | 30 | 31 | 32 | 33 | 34 |

35 | 36 | 37 |

38 |

39 | 40 | 41 |

42 |
43 | 44 | 45 | 46 |

47 | 48 | 49 | 50 | 53 |

54 |

55 | 56 |

57 | 58 |
59 | 60 | 61 | 62 |
63 | -------------------------------------------------------------------------------- /woocommerce/global/quantity-input.php: -------------------------------------------------------------------------------- 1 | 25 | 28 | 31 |
32 | 33 | 34 |
35 | 23 | 24 | -------------------------------------------------------------------------------- /woocommerce/global/wrapper-start.php: -------------------------------------------------------------------------------- 1 |
'; 29 | } else { 30 | echo '
'; 31 | } 32 | -------------------------------------------------------------------------------- /woocommerce/loop/add-to-cart.php: -------------------------------------------------------------------------------- 1 | %s
', 25 | esc_url( $product->add_to_cart_url() ), 26 | esc_attr( $product->get_id() ), 27 | esc_attr( $product->get_sku() ), 28 | esc_attr( isset( $quantity ) ? $quantity : 1 ), 29 | $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', 30 | esc_attr( $product->get_type() ), 31 | $product->get_type() == 'simple' ? 'ajax_add_to_cart' : '', 32 | esc_html( $product->add_to_cart_text() ) 33 | ), 34 | $product ); 35 | -------------------------------------------------------------------------------- /woocommerce/loop/orderby.php: -------------------------------------------------------------------------------- 1 | 24 |
25 | 30 | $val ) { 33 | if ( 'orderby' === $key || 'submit' === $key ) { 34 | continue; 35 | } 36 | if ( is_array( $val ) ) { 37 | foreach( $val as $innerVal ) { 38 | echo ''; 39 | } 40 | } else { 41 | echo ''; 42 | } 43 | } 44 | ?> 45 |
46 | -------------------------------------------------------------------------------- /woocommerce/myaccount/downloads.php: -------------------------------------------------------------------------------- 1 | customer->get_downloadable_products(); 26 | $has_downloads = (bool) $downloads; 27 | 28 | do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?> 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
40 | 41 | 42 | 43 | 44 |
45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /woocommerce/myaccount/form-edit-address.php: -------------------------------------------------------------------------------- 1 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 33 |

34 | 35 |
36 | 37 | 38 |
39 | $field ) { 41 | if ( isset( $field['country_field'], $address[ $field['country_field'] ] ) ) { 42 | $field['country'] = wc_get_post_data_by_key( $field['country_field'], $address[ $field['country_field'] ]['value'] ); 43 | } 44 | woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) ); 45 | } 46 | ?> 47 |
48 | 49 | 50 | 51 |

52 | 53 | 54 | 55 |

56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /woocommerce/myaccount/form-lost-password.php: -------------------------------------------------------------------------------- 1 | 24 | 25 |
26 | 27 |

28 | 29 |

30 | 31 | 32 |

33 | 34 |
35 | 36 | 37 | 38 |

39 | 40 | 41 |

42 | 43 | 44 | 45 |
46 | -------------------------------------------------------------------------------- /woocommerce/myaccount/form-reset-password.php: -------------------------------------------------------------------------------- 1 | 24 | 25 |
26 | 27 |

28 | 29 |

30 | 31 | 32 |

33 |

34 | 35 | 36 |

37 | 38 | 39 | 40 | 41 |
42 | 43 | 44 | 45 |

46 | 47 | 48 |

49 | 50 | 51 | 52 |
53 | -------------------------------------------------------------------------------- /woocommerce/myaccount/navigation.php: -------------------------------------------------------------------------------- 1 | 25 | 26 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /woocommerce/product-searchform.php: -------------------------------------------------------------------------------- 1 | 24 | 34 | -------------------------------------------------------------------------------- /woocommerce/single-product/add-to-cart/simple.php: -------------------------------------------------------------------------------- 1 | is_purchasable() ) { 25 | return; 26 | } 27 | 28 | echo wc_get_stock_html( $product ); 29 | 30 | if ( $product->is_in_stock() ) : ?> 31 | 32 | 33 | 34 |
35 | apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ), 48 | 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ), 49 | 'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( $_POST['quantity'] ) : $product->get_min_purchase_quantity(), 50 | ) ); 51 | 52 | /** 53 | * @since 3.0.0. 54 | */ 55 | do_action( 'woocommerce_after_add_to_cart_quantity' ); 56 | ?> 57 | 58 | 59 | 60 | 66 |
67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php: -------------------------------------------------------------------------------- 1 | 16 |
17 | apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ), 25 | 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ), 26 | 'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( $_POST['quantity'] ) : $product->get_min_purchase_quantity(), 27 | ) ); 28 | 29 | /** 30 | * @since 3.0.0. 31 | */ 32 | do_action( 'woocommerce_after_add_to_cart_quantity' ); 33 | ?> 34 | 35 | 36 | 37 | 38 |
39 | -------------------------------------------------------------------------------- /woocommerce/single-product/product-thumbnails.php: -------------------------------------------------------------------------------- 1 | get_gallery_image_ids(); 26 | 27 | if ( $attachment_ids && has_post_thumbnail() ) { 28 | foreach ( $attachment_ids as $attachment_id ) { 29 | $full_size_image = wp_get_attachment_image_src( $attachment_id, 'full' ); 30 | $thumbnail = wp_get_attachment_image_src( $attachment_id, 'shop_thumbnail' ); 31 | $attributes = array( 32 | 'title' => get_post_field( 'post_title', $attachment_id ), 33 | 'data-caption' => get_post_field( 'post_excerpt', $attachment_id ), 34 | 'data-src' => $full_size_image[0], 35 | 'data-large_image' => $full_size_image[0], 36 | 'data-large_image_width' => $full_size_image[1], 37 | 'data-large_image_height' => $full_size_image[2], 38 | ); 39 | 40 | $html = ''; 43 | 44 | echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, $attachment_id ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /woocommerce/single-product/rating.php: -------------------------------------------------------------------------------- 1 | get_rating_count(); 30 | $review_count = $product->get_review_count(); 31 | $average = $product->get_average_rating(); 32 | 33 | if ( $rating_count > 0 ) : ?> 34 | 35 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /woocommerce/single-product/review-rating.php: -------------------------------------------------------------------------------- 1 | comment_ID, 'rating', true ) ); 25 | 26 | if ( $rating && 'yes' === get_option( 'woocommerce_enable_review_rating' ) ) { 27 | echo wc_get_rating_html( $rating ); 28 | } 29 | -------------------------------------------------------------------------------- /woocommerce/single-product/short-description.php: -------------------------------------------------------------------------------- 1 | post_excerpt ) { 26 | return; 27 | } 28 | 29 | ?> 30 |
31 | post_excerpt ) ?> 32 |
33 | --------------------------------------------------------------------------------