wordpress-starter 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +13 -0
- data/README.md +47 -4
- data/lib/wordpress-starter.rb +3 -2
- data/stylesheets/wordpress/_defaults.scss +267 -20
- data/stylesheets/wordpress/_page.scss +0 -363
- data/stylesheets/wordpress/_responsive.scss +0 -115
- data/stylesheets/wordpress/_theme.scss +0 -82
- data/stylesheets/wordpress/_typography.scss +0 -134
- data/templates/foundation/404.php +24 -0
- data/templates/{starter → foundation}/admin/README.txt +0 -0
- data/templates/{starter → foundation}/admin/assets/css/admin-style.css +0 -0
- data/templates/{starter → foundation}/admin/assets/css/colorpicker.css +0 -0
- data/templates/{starter → foundation}/admin/assets/images/1col.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/2-col-portfolio.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/2cl.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/2cr.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/3-col-portfolio.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/3cm.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/3cr.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/4-col-portfolio.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/accept.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/button_check.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/blank.gif +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/colorpicker/select.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/dropdown-arrow.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/favicon.ico +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-add.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-backup.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-delete.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-docs.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-edit.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-home.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-info.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-notice.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-paint.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-settings.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-slider.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon-warn.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/icon_option.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/loading-bottom.gif +0 -0
- data/templates/{starter → foundation}/admin/assets/images/select.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/sign_warning.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/stop.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/toggle_tabs.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/warning.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/wrench.png +0 -0
- data/templates/{starter → foundation}/admin/assets/images/wrench16.png +0 -0
- data/templates/{starter → foundation}/admin/assets/js/ajaxupload.js +0 -0
- data/templates/{starter → foundation}/admin/assets/js/colorpicker.js +0 -0
- data/templates/{starter → foundation}/admin/assets/js/cookie.js +0 -0
- data/templates/{starter → foundation}/admin/assets/js/jquery.maskedinput-1.2.2.js +0 -0
- data/templates/{starter → foundation}/admin/assets/js/jquery.tipsy.js +0 -0
- data/templates/{starter → foundation}/admin/assets/js/of-medialibrary-uploader.js +0 -0
- data/templates/{starter → foundation}/admin/assets/js/smof.js +0 -0
- data/templates/foundation/admin/classes/class.options-machine.php +627 -0
- data/templates/{starter → foundation}/admin/front-end/options.php +0 -0
- data/templates/{starter → foundation}/admin/functions/functions.admin.php +0 -0
- data/templates/{starter → foundation}/admin/functions/functions.interface.php +0 -0
- data/templates/{starter → foundation}/admin/functions/functions.load.php +0 -0
- data/templates/foundation/admin/functions/functions.mediauploader.php +194 -0
- data/templates/foundation/admin/functions/functions.options.php +508 -0
- data/templates/{starter → foundation}/admin/functions/functions.php +0 -0
- data/templates/{starter → foundation}/admin/index.php +88 -86
- data/templates/{starter → foundation}/admin/layouts/default.css +0 -0
- data/templates/{starter → foundation}/admin/layouts/placebo.css +0 -0
- data/templates/foundation/archive.php +57 -0
- data/templates/foundation/category.php +40 -0
- data/templates/foundation/comments.php +65 -0
- data/templates/foundation/content-aside.php +26 -0
- data/templates/foundation/content-image.php +29 -0
- data/templates/foundation/content-link.php +27 -0
- data/templates/foundation/content-none.php +21 -0
- data/templates/foundation/content-page.php +24 -0
- data/templates/foundation/content-quote.php +26 -0
- data/templates/foundation/content-status.php +33 -0
- data/templates/foundation/content.php +67 -0
- data/templates/foundation/editor-style.scss +359 -0
- data/templates/foundation/footer.php +29 -0
- data/templates/foundation/functions.php +1425 -0
- data/templates/foundation/header.php +63 -0
- data/templates/foundation/ie.scss +1 -0
- data/templates/{starter → foundation}/images/bg/bg0.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg1.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg10.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg11.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg2.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg3.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg4.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg5.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg6.jpg +0 -0
- data/templates/{starter → foundation}/images/bg/bg7.jpg +0 -0
- data/templates/{starter → foundation}/images/bg/bg8.png +0 -0
- data/templates/{starter → foundation}/images/bg/bg9.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-behance-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-behance-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-behance.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-behance.svg +48 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud.svg +48 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble.svg +28 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox.svg +73 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-evernote-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-evernote-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-evernote.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-evernote.svg +62 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-facebook-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-facebook-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-facebook.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-facebook.svg +15 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-flickr-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-flickr-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-flickr.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-flickr.svg +14 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-github-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-github-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-github.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-github.svg +38 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus.svg +52 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-icloud-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-icloud-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-icloud.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-icloud.svg +26 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin.svg +28 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-mail-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-mail-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-mail.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-mail.svg +27 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-msn-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-msn-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-msn.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-msn.svg +44 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest.svg +42 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rdio-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rdio-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rdio.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rdio.svg +18 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rss-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rss-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rss.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-rss.svg +18 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skitch-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skitch-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skitch.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skitch.svg +24 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skype-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skype-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skype.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-skype.svg +25 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-spotify-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-spotify-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-spotify.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-spotify.svg +38 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon.svg +22 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr.svg +16 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-twitter-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-twitter-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-twitter.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-twitter.svg +24 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo.svg +20 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youtube-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youtube-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youtube.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youtube.svg +106 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youversion-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youversion-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youversion.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-youversion.svg +54 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-zerply-m.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-zerply-s.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-zerply.png +0 -0
- data/templates/foundation/images/fairhead-icons/fc-webicon-zerply.svg +20 -0
- data/templates/foundation/images/foundation/orbit/bullets.jpg +0 -0
- data/templates/foundation/images/foundation/orbit/left-arrow-small.png +0 -0
- data/templates/foundation/images/foundation/orbit/left-arrow.png +0 -0
- data/templates/foundation/images/foundation/orbit/loading.gif +0 -0
- data/templates/foundation/images/foundation/orbit/mask-black.png +0 -0
- data/templates/foundation/images/foundation/orbit/pause-black.png +0 -0
- data/templates/foundation/images/foundation/orbit/right-arrow-small.png +0 -0
- data/templates/foundation/images/foundation/orbit/right-arrow.png +0 -0
- data/templates/foundation/images/foundation/orbit/rotator-black.png +0 -0
- data/templates/foundation/images/foundation/orbit/timer-black.png +0 -0
- data/templates/foundation/index.php +19 -0
- data/templates/foundation/javascripts/app.js +38 -0
- data/templates/foundation/javascripts/foundation.min.js +77 -0
- data/templates/foundation/javascripts/jquery.foundation.accordion.js +39 -0
- data/templates/foundation/javascripts/jquery.foundation.alerts.js +20 -0
- data/templates/foundation/javascripts/jquery.foundation.buttons.js +79 -0
- data/templates/foundation/javascripts/jquery.foundation.clearing.js +480 -0
- data/templates/foundation/javascripts/jquery.foundation.forms.js +494 -0
- data/templates/foundation/javascripts/jquery.foundation.joyride.js +639 -0
- data/templates/foundation/javascripts/jquery.foundation.magellan.js +86 -0
- data/templates/foundation/javascripts/jquery.foundation.mediaQueryToggle.js +27 -0
- data/templates/foundation/javascripts/jquery.foundation.navigation.js +55 -0
- data/templates/foundation/javascripts/jquery.foundation.orbit.js +897 -0
- data/templates/foundation/javascripts/jquery.foundation.reveal.js +794 -0
- data/templates/foundation/javascripts/jquery.foundation.tabs.js +56 -0
- data/templates/foundation/javascripts/jquery.foundation.tooltips.js +193 -0
- data/templates/foundation/javascripts/jquery.foundation.topbar.js +156 -0
- data/templates/foundation/javascripts/modernizr.foundation.js +4 -0
- data/templates/foundation/languages/readme.txt +6 -0
- data/templates/foundation/license.txt +281 -0
- data/templates/foundation/loop.php +30 -0
- data/templates/foundation/manifest.rb +285 -0
- data/templates/foundation/options.php +43 -0
- data/templates/foundation/page.php +29 -0
- data/templates/foundation/print.css +1 -0
- data/templates/foundation/print.scss +1 -0
- data/templates/foundation/readme.txt +6 -0
- data/templates/foundation/sass/_app.scss +50 -0
- data/templates/foundation/sass/_settings.scss +243 -0
- data/templates/foundation/screen.scss +1 -0
- data/templates/foundation/screenshot.png +0 -0
- data/templates/foundation/search.php +31 -0
- data/templates/{starter → foundation}/search.png +0 -0
- data/templates/foundation/searchform.php +14 -0
- data/templates/foundation/sidebar.php +15 -0
- data/templates/foundation/single.php +31 -0
- data/templates/foundation/style.css +17 -0
- data/templates/foundation/stylesheets/fc-webicons.css +156 -0
- data/templates/foundation/tag.php +41 -0
- data/templates/project/404.php +24 -0
- data/templates/project/admin/README.txt +25 -0
- data/templates/project/admin/assets/css/admin-style.css +838 -0
- data/templates/project/admin/assets/css/colorpicker.css +177 -0
- data/templates/project/admin/assets/images/1col.png +0 -0
- data/templates/project/admin/assets/images/2-col-portfolio.png +0 -0
- data/templates/project/admin/assets/images/2cl.png +0 -0
- data/templates/project/admin/assets/images/2cr.png +0 -0
- data/templates/project/admin/assets/images/3-col-portfolio.png +0 -0
- data/templates/project/admin/assets/images/3cm.png +0 -0
- data/templates/project/admin/assets/images/3cr.png +0 -0
- data/templates/project/admin/assets/images/4-col-portfolio.png +0 -0
- data/templates/project/admin/assets/images/accept.png +0 -0
- data/templates/project/admin/assets/images/button_check.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/blank.gif +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/project/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/project/admin/assets/images/colorpicker/select.png +0 -0
- data/templates/project/admin/assets/images/dropdown-arrow.png +0 -0
- data/templates/project/admin/assets/images/favicon.ico +0 -0
- data/templates/project/admin/assets/images/icon-add.png +0 -0
- data/templates/project/admin/assets/images/icon-backup.png +0 -0
- data/templates/project/admin/assets/images/icon-delete.png +0 -0
- data/templates/project/admin/assets/images/icon-docs.png +0 -0
- data/templates/project/admin/assets/images/icon-edit.png +0 -0
- data/templates/project/admin/assets/images/icon-home.png +0 -0
- data/templates/project/admin/assets/images/icon-info.png +0 -0
- data/templates/project/admin/assets/images/icon-notice.png +0 -0
- data/templates/project/admin/assets/images/icon-paint.png +0 -0
- data/templates/project/admin/assets/images/icon-settings.png +0 -0
- data/templates/project/admin/assets/images/icon-slider.png +0 -0
- data/templates/project/admin/assets/images/icon-warn.png +0 -0
- data/templates/project/admin/assets/images/icon_option.png +0 -0
- data/templates/project/admin/assets/images/loading-bottom.gif +0 -0
- data/templates/project/admin/assets/images/select.png +0 -0
- data/templates/project/admin/assets/images/sign_warning.png +0 -0
- data/templates/project/admin/assets/images/stop.png +0 -0
- data/templates/project/admin/assets/images/toggle_tabs.png +0 -0
- data/templates/project/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/project/admin/assets/images/warning.png +0 -0
- data/templates/project/admin/assets/images/wrench.png +0 -0
- data/templates/project/admin/assets/images/wrench16.png +0 -0
- data/templates/project/admin/assets/js/ajaxupload.js +606 -0
- data/templates/project/admin/assets/js/colorpicker.js +455 -0
- data/templates/project/admin/assets/js/cookie.js +1 -0
- data/templates/project/admin/assets/js/jquery.maskedinput-1.2.2.js +252 -0
- data/templates/project/admin/assets/js/jquery.tipsy.js +241 -0
- data/templates/project/admin/assets/js/of-medialibrary-uploader.js +168 -0
- data/templates/project/admin/assets/js/smof.js +623 -0
- data/templates/{starter → project}/admin/classes/class.options-machine.php +0 -0
- data/templates/project/admin/front-end/options.php +77 -0
- data/templates/project/admin/functions/functions.admin.php +76 -0
- data/templates/project/admin/functions/functions.interface.php +232 -0
- data/templates/project/admin/functions/functions.load.php +14 -0
- data/templates/{starter → project}/admin/functions/functions.mediauploader.php +0 -0
- data/templates/project/admin/functions/functions.options.php +508 -0
- data/templates/project/admin/functions/functions.php +0 -0
- data/templates/project/admin/index.php +87 -0
- data/templates/project/admin/layouts/default.css +0 -0
- data/templates/project/admin/layouts/placebo.css +0 -0
- data/templates/project/archive.php +57 -0
- data/templates/{starter → project}/category.php +0 -0
- data/templates/project/comments.php +65 -0
- data/templates/{starter → project}/content-aside.php +0 -0
- data/templates/{starter → project}/content-image.php +0 -0
- data/templates/{starter → project}/content-link.php +0 -0
- data/templates/{starter → project}/content-none.php +0 -0
- data/templates/project/content-page.php +24 -0
- data/templates/{starter → project}/content-quote.php +0 -0
- data/templates/{starter → project}/content-status.php +0 -0
- data/templates/project/content.php +67 -0
- data/templates/{starter → project}/editor-style.scss +0 -0
- data/templates/project/footer.php +29 -0
- data/templates/project/functions.php +1233 -0
- data/templates/project/header.php +63 -0
- data/templates/project/images/bg/bg0.png +0 -0
- data/templates/project/images/bg/bg1.png +0 -0
- data/templates/project/images/bg/bg10.png +0 -0
- data/templates/project/images/bg/bg11.png +0 -0
- data/templates/project/images/bg/bg2.png +0 -0
- data/templates/project/images/bg/bg3.png +0 -0
- data/templates/project/images/bg/bg4.png +0 -0
- data/templates/project/images/bg/bg5.png +0 -0
- data/templates/project/images/bg/bg6.jpg +0 -0
- data/templates/project/images/bg/bg7.jpg +0 -0
- data/templates/project/images/bg/bg8.png +0 -0
- data/templates/project/images/bg/bg9.png +0 -0
- data/templates/project/index.php +19 -0
- data/templates/project/javascripts/app.js +6 -0
- data/templates/{starter → project/javascripts}/moderninzr.min.js +0 -0
- data/templates/project/languages/readme.txt +6 -0
- data/templates/project/license.txt +281 -0
- data/templates/{starter → project}/loop.php +0 -0
- data/templates/project/manifest.rb +131 -4
- data/templates/project/options.php +42 -0
- data/templates/project/page.php +29 -0
- data/templates/project/readme.txt +6 -1
- data/templates/project/screenshot.png +0 -0
- data/templates/project/search.php +31 -0
- data/templates/project/searchform.php +14 -0
- data/templates/project/sidebar.php +15 -0
- data/templates/project/single.php +31 -0
- data/templates/project/style.css +5 -0
- data/templates/{starter → project}/tag.php +0 -0
- data/templates/starter/404.php +42 -19
- data/templates/starter/README.md +41 -0
- data/templates/starter/archive.php +89 -49
- data/templates/starter/comments.php +43 -32
- data/templates/starter/content-page.php +12 -16
- data/templates/starter/content-single.php +59 -0
- data/templates/starter/content.php +52 -58
- data/templates/starter/footer.php +20 -22
- data/templates/starter/functions.php +60 -1156
- data/templates/starter/header.php +31 -52
- data/templates/starter/image.php +111 -0
- data/templates/starter/inc/custom-header.php +184 -0
- data/templates/starter/inc/extras.php +79 -0
- data/templates/starter/inc/template-tags.php +175 -0
- data/templates/starter/inc/theme-options/theme-options.php +306 -0
- data/templates/starter/index.php +41 -11
- data/templates/starter/javascripts/html5.js +6 -0
- data/templates/starter/javascripts/keyboard-image-navigation.js +14 -0
- data/templates/starter/javascripts/small-menu.js +39 -0
- data/templates/starter/languages/readme.txt +6 -0
- data/templates/starter/layouts/content-sidebar-sidebar.css +27 -0
- data/templates/starter/layouts/content-sidebar.css +25 -0
- data/templates/starter/layouts/sidebar-content-sidebar.css +27 -0
- data/templates/starter/layouts/sidebar-content.css +25 -0
- data/templates/starter/layouts/sidebar-sidebar-content.css +22 -0
- data/templates/starter/license.txt +281 -0
- data/templates/starter/manifest.rb +22 -110
- data/templates/starter/no-results.php +34 -0
- data/templates/starter/page.php +16 -14
- data/templates/starter/print.scss +1 -104
- data/templates/starter/rtl.css +17 -0
- data/templates/starter/screen.scss +653 -1
- data/templates/starter/screenshot.png +0 -0
- data/templates/starter/search.php +31 -21
- data/templates/starter/searchform.php +8 -9
- data/templates/starter/sidebar.php +29 -10
- data/templates/starter/single.php +24 -21
- data/templates/starter/style.css +10 -6
- metadata +401 -100
- data/templates/project/print.css +0 -4
- data/templates/starter/admin/functions/functions.options.php +0 -507
- data/templates/starter/app.js +0 -97
- data/templates/starter/options.php +0 -407
- data/templates/starter/readme.txt +0 -1
@@ -2,62 +2,41 @@
|
|
2
2
|
/**
|
3
3
|
* The Header for our theme.
|
4
4
|
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* @
|
8
|
-
* @
|
5
|
+
* Displays all of the <head> section and everything up till <div id="main">
|
6
|
+
*
|
7
|
+
* @package starter
|
8
|
+
* @since starter 1.0
|
9
9
|
*/
|
10
10
|
?><!DOCTYPE html>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
/*
|
22
|
-
* Print the <title> tag based on what is being viewed.
|
23
|
-
* We filter the output of wp_title() a bit -- see
|
24
|
-
* starter_filter_wp_title() in functions.php.
|
25
|
-
*/
|
26
|
-
wp_title( '|', true, 'right' );
|
11
|
+
<html <?php language_attributes(); ?>>
|
12
|
+
<head>
|
13
|
+
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
14
|
+
<meta name="viewport" content="width=device-width" />
|
15
|
+
<title><?php wp_title( '|', true, 'right' ); ?></title>
|
16
|
+
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
17
|
+
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
18
|
+
<!--[if lt IE 9]>
|
19
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/html5.js" type="text/javascript"></script>
|
20
|
+
<![endif]-->
|
27
21
|
|
28
|
-
|
22
|
+
<?php wp_head(); ?>
|
23
|
+
</head>
|
29
24
|
|
30
|
-
|
31
|
-
|
25
|
+
<body <?php body_class(); ?>>
|
26
|
+
<div id="page" class="hfeed site">
|
27
|
+
<?php do_action( 'before' ); ?>
|
28
|
+
<header id="masthead" class="site-header" role="banner">
|
29
|
+
<hgroup>
|
30
|
+
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
31
|
+
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
|
32
|
+
</hgroup>
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
* generally use this hook to add elements to <head> such
|
37
|
-
* as styles, scripts, and meta tags.
|
38
|
-
*/
|
39
|
-
wp_head();
|
40
|
-
?>
|
34
|
+
<nav role="navigation" class="site-navigation main-navigation">
|
35
|
+
<h1 class="assistive-text"><?php _e( 'Menu', 'starter' ); ?></h1>
|
36
|
+
<div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'starter' ); ?>"><?php _e( 'Skip to content', 'starter' ); ?></a></div>
|
41
37
|
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
|
39
|
+
</nav><!-- .site-navigation .main-navigation -->
|
40
|
+
</header><!-- #masthead .site-header -->
|
45
41
|
|
46
|
-
|
47
|
-
<link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo( 'name' ); ?> Feed" href="<?php echo home_url(); ?>/feed/">
|
48
|
-
<?php endif; ?>
|
49
|
-
</head>
|
50
|
-
<body <?php body_class(); ?>>
|
51
|
-
<div class="page">
|
52
|
-
<header class="header" role="banner">
|
53
|
-
<hgroup>
|
54
|
-
<h1>
|
55
|
-
<a href="<?php echo site_url();?>"><span class="assistive-text"><?php bloginfo( 'name' );?></span></a>
|
56
|
-
</h1>
|
57
|
-
<h2 class="assistive-text"><?php bloginfo( 'description' );?></h2>
|
58
|
-
</hgroup>
|
59
|
-
</header>
|
60
|
-
<div class="container">
|
61
|
-
<?php wp_nav_menu( array( 'container' => 'nav', 'container_class' => 'nav-menu', 'theme_location' => 'primary', 'fallback_cb' => 'starter_page_menu' ) ); ?>
|
62
|
-
<section class="content" role="document">
|
63
|
-
<div class="main" role="main">
|
42
|
+
<div id="main" class="site-main">
|
@@ -0,0 +1,111 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* The template for displaying image attachments.
|
4
|
+
*
|
5
|
+
* @package starter
|
6
|
+
* @since starter 1.0
|
7
|
+
*/
|
8
|
+
|
9
|
+
get_header();
|
10
|
+
?>
|
11
|
+
|
12
|
+
<div id="primary" class="content-area image-attachment">
|
13
|
+
<div id="content" class="site-content" role="main">
|
14
|
+
|
15
|
+
<?php while ( have_posts() ) : the_post(); ?>
|
16
|
+
|
17
|
+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
18
|
+
<header class="entry-header">
|
19
|
+
<h1 class="entry-title"><?php the_title(); ?></h1>
|
20
|
+
|
21
|
+
<div class="entry-meta">
|
22
|
+
<?php
|
23
|
+
$metadata = wp_get_attachment_metadata();
|
24
|
+
printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'starter' ),
|
25
|
+
esc_attr( get_the_date( 'c' ) ),
|
26
|
+
esc_html( get_the_date() ),
|
27
|
+
wp_get_attachment_url(),
|
28
|
+
$metadata['width'],
|
29
|
+
$metadata['height'],
|
30
|
+
get_permalink( $post->post_parent ),
|
31
|
+
get_the_title( $post->post_parent )
|
32
|
+
);
|
33
|
+
?>
|
34
|
+
<?php edit_post_link( __( 'Edit', 'starter' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
|
35
|
+
</div><!-- .entry-meta -->
|
36
|
+
|
37
|
+
<nav id="image-navigation" class="site-navigation">
|
38
|
+
<span class="previous-image"><?php previous_image_link( false, __( '← Previous', 'starter' ) ); ?></span>
|
39
|
+
<span class="next-image"><?php next_image_link( false, __( 'Next →', 'starter' ) ); ?></span>
|
40
|
+
</nav><!-- #image-navigation -->
|
41
|
+
</header><!-- .entry-header -->
|
42
|
+
|
43
|
+
<div class="entry-content">
|
44
|
+
|
45
|
+
<div class="entry-attachment">
|
46
|
+
<div class="attachment">
|
47
|
+
<?php
|
48
|
+
/**
|
49
|
+
* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
|
50
|
+
* or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
|
51
|
+
*/
|
52
|
+
$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
|
53
|
+
foreach ( $attachments as $k => $attachment ) {
|
54
|
+
if ( $attachment->ID == $post->ID )
|
55
|
+
break;
|
56
|
+
}
|
57
|
+
$k++;
|
58
|
+
// If there is more than 1 attachment in a gallery
|
59
|
+
if ( count( $attachments ) > 1 ) {
|
60
|
+
if ( isset( $attachments[ $k ] ) )
|
61
|
+
// get the URL of the next image attachment
|
62
|
+
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
|
63
|
+
else
|
64
|
+
// or get the URL of the first image attachment
|
65
|
+
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
|
66
|
+
} else {
|
67
|
+
// or, if there's only 1 image, get the URL of the image
|
68
|
+
$next_attachment_url = wp_get_attachment_url();
|
69
|
+
}
|
70
|
+
?>
|
71
|
+
|
72
|
+
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
|
73
|
+
$attachment_size = apply_filters( 'starter_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
|
74
|
+
echo wp_get_attachment_image( $post->ID, $attachment_size );
|
75
|
+
?></a>
|
76
|
+
</div><!-- .attachment -->
|
77
|
+
|
78
|
+
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
|
79
|
+
<div class="entry-caption">
|
80
|
+
<?php the_excerpt(); ?>
|
81
|
+
</div><!-- .entry-caption -->
|
82
|
+
<?php endif; ?>
|
83
|
+
</div><!-- .entry-attachment -->
|
84
|
+
|
85
|
+
<?php the_content(); ?>
|
86
|
+
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'starter' ), 'after' => '</div>' ) ); ?>
|
87
|
+
|
88
|
+
</div><!-- .entry-content -->
|
89
|
+
|
90
|
+
<footer class="entry-meta">
|
91
|
+
<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
|
92
|
+
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'starter' ), get_trackback_url() ); ?>
|
93
|
+
<?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
|
94
|
+
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'starter' ), get_trackback_url() ); ?>
|
95
|
+
<?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
|
96
|
+
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'starter' ); ?>
|
97
|
+
<?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
|
98
|
+
<?php _e( 'Both comments and trackbacks are currently closed.', 'starter' ); ?>
|
99
|
+
<?php endif; ?>
|
100
|
+
<?php edit_post_link( __( 'Edit', 'starter' ), ' <span class="edit-link">', '</span>' ); ?>
|
101
|
+
</footer><!-- .entry-meta -->
|
102
|
+
</article><!-- #post-<?php the_ID(); ?> -->
|
103
|
+
|
104
|
+
<?php comments_template(); ?>
|
105
|
+
|
106
|
+
<?php endwhile; // end of the loop. ?>
|
107
|
+
|
108
|
+
</div><!-- #content .site-content -->
|
109
|
+
</div><!-- #primary .content-area .image-attachment -->
|
110
|
+
|
111
|
+
<?php get_footer(); ?>
|
@@ -0,0 +1,184 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* Sample implementation of the Custom Header feature
|
4
|
+
* http://codex.wordpress.org/Custom_Headers
|
5
|
+
*
|
6
|
+
* You can add an optional custom header image to header.php like so ...
|
7
|
+
|
8
|
+
<?php $header_image = get_header_image();
|
9
|
+
if ( ! empty( $header_image ) ) { ?>
|
10
|
+
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
|
11
|
+
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
|
12
|
+
</a>
|
13
|
+
<?php } // if ( ! empty( $header_image ) ) ?>
|
14
|
+
|
15
|
+
*
|
16
|
+
* @package starter
|
17
|
+
* @since starter 1.0
|
18
|
+
*/
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Setup the WordPress core custom header feature.
|
22
|
+
*
|
23
|
+
* Use add_theme_support to register support for WordPress 3.4+
|
24
|
+
* as well as provide backward compatibility for previous versions.
|
25
|
+
* Use feature detection of wp_get_theme() which was introduced
|
26
|
+
* in WordPress 3.4.
|
27
|
+
*
|
28
|
+
* @todo Rework this function to remove WordPress 3.4 support when WordPress 3.6 is released.
|
29
|
+
*
|
30
|
+
* @uses starter_header_style()
|
31
|
+
* @uses starter_admin_header_style()
|
32
|
+
* @uses starter_admin_header_image()
|
33
|
+
*
|
34
|
+
* @package starter
|
35
|
+
*/
|
36
|
+
function starter_custom_header_setup() {
|
37
|
+
$args = array(
|
38
|
+
'default-image' => '',
|
39
|
+
'default-text-color' => '000',
|
40
|
+
'width' => 1000,
|
41
|
+
'height' => 250,
|
42
|
+
'flex-height' => true,
|
43
|
+
'wp-head-callback' => 'starter_header_style',
|
44
|
+
'admin-head-callback' => 'starter_admin_header_style',
|
45
|
+
'admin-preview-callback' => 'starter_admin_header_image',
|
46
|
+
);
|
47
|
+
|
48
|
+
$args = apply_filters( 'starter_custom_header_args', $args );
|
49
|
+
|
50
|
+
if ( function_exists( 'wp_get_theme' ) ) {
|
51
|
+
add_theme_support( 'custom-header', $args );
|
52
|
+
} else {
|
53
|
+
// Compat: Versions of WordPress prior to 3.4.
|
54
|
+
define( 'HEADER_TEXTCOLOR', $args['default-text-color'] );
|
55
|
+
define( 'HEADER_IMAGE', $args['default-image'] );
|
56
|
+
define( 'HEADER_IMAGE_WIDTH', $args['width'] );
|
57
|
+
define( 'HEADER_IMAGE_HEIGHT', $args['height'] );
|
58
|
+
add_custom_image_header( $args['wp-head-callback'], $args['admin-head-callback'], $args['admin-preview-callback'] );
|
59
|
+
}
|
60
|
+
}
|
61
|
+
add_action( 'after_setup_theme', 'starter_custom_header_setup' );
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Shiv for get_custom_header().
|
65
|
+
*
|
66
|
+
* get_custom_header() was introduced to WordPress
|
67
|
+
* in version 3.4. To provide backward compatibility
|
68
|
+
* with previous versions, we will define our own version
|
69
|
+
* of this function.
|
70
|
+
*
|
71
|
+
* @todo Remove this function when WordPress 3.6 is released.
|
72
|
+
* @return stdClass All properties represent attributes of the curent header image.
|
73
|
+
*
|
74
|
+
* @package starter
|
75
|
+
* @since starter 1.1
|
76
|
+
*/
|
77
|
+
|
78
|
+
if ( ! function_exists( 'get_custom_header' ) ) {
|
79
|
+
function get_custom_header() {
|
80
|
+
return (object) array(
|
81
|
+
'url' => get_header_image(),
|
82
|
+
'thumbnail_url' => get_header_image(),
|
83
|
+
'width' => HEADER_IMAGE_WIDTH,
|
84
|
+
'height' => HEADER_IMAGE_HEIGHT,
|
85
|
+
);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
if ( ! function_exists( 'starter_header_style' ) ) :
|
90
|
+
/**
|
91
|
+
* Styles the header image and text displayed on the blog
|
92
|
+
*
|
93
|
+
* @see starter_custom_header_setup().
|
94
|
+
*
|
95
|
+
* @since starter 1.0
|
96
|
+
*/
|
97
|
+
function starter_header_style() {
|
98
|
+
|
99
|
+
// If no custom options for text are set, let's bail
|
100
|
+
// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value
|
101
|
+
if ( HEADER_TEXTCOLOR == get_header_textcolor() )
|
102
|
+
return;
|
103
|
+
// If we get this far, we have custom styles. Let's do this.
|
104
|
+
?>
|
105
|
+
<style type="text/css">
|
106
|
+
<?php
|
107
|
+
// Has the text been hidden?
|
108
|
+
if ( 'blank' == get_header_textcolor() ) :
|
109
|
+
?>
|
110
|
+
.site-title,
|
111
|
+
.site-description {
|
112
|
+
position: absolute !important;
|
113
|
+
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
|
114
|
+
clip: rect(1px, 1px, 1px, 1px);
|
115
|
+
}
|
116
|
+
<?php
|
117
|
+
// If the user has set a custom color for the text use that
|
118
|
+
else :
|
119
|
+
?>
|
120
|
+
.site-title a,
|
121
|
+
.site-description {
|
122
|
+
color: #<?php echo get_header_textcolor(); ?> !important;
|
123
|
+
}
|
124
|
+
<?php endif; ?>
|
125
|
+
</style>
|
126
|
+
<?php
|
127
|
+
}
|
128
|
+
endif; // starter_header_style
|
129
|
+
|
130
|
+
if ( ! function_exists( 'starter_admin_header_style' ) ) :
|
131
|
+
/**
|
132
|
+
* Styles the header image displayed on the Appearance > Header admin panel.
|
133
|
+
*
|
134
|
+
* @see starter_custom_header_setup().
|
135
|
+
*
|
136
|
+
* @since starter 1.0
|
137
|
+
*/
|
138
|
+
function starter_admin_header_style() {
|
139
|
+
?>
|
140
|
+
<style type="text/css">
|
141
|
+
.appearance_page_custom-header #headimg {
|
142
|
+
border: none;
|
143
|
+
}
|
144
|
+
#headimg h1,
|
145
|
+
#desc {
|
146
|
+
}
|
147
|
+
#headimg h1 {
|
148
|
+
}
|
149
|
+
#headimg h1 a {
|
150
|
+
}
|
151
|
+
#desc {
|
152
|
+
}
|
153
|
+
#headimg img {
|
154
|
+
}
|
155
|
+
</style>
|
156
|
+
<?php
|
157
|
+
}
|
158
|
+
endif; // starter_admin_header_style
|
159
|
+
|
160
|
+
if ( ! function_exists( 'starter_admin_header_image' ) ) :
|
161
|
+
/**
|
162
|
+
* Custom header image markup displayed on the Appearance > Header admin panel.
|
163
|
+
*
|
164
|
+
* @see starter_custom_header_setup().
|
165
|
+
*
|
166
|
+
* @since starter 1.0
|
167
|
+
*/
|
168
|
+
function starter_admin_header_image() { ?>
|
169
|
+
<div id="headimg">
|
170
|
+
<?php
|
171
|
+
if ( 'blank' == get_header_textcolor() || '' == get_header_textcolor() )
|
172
|
+
$style = ' style="display:none;"';
|
173
|
+
else
|
174
|
+
$style = ' style="color:#' . get_header_textcolor() . ';"';
|
175
|
+
?>
|
176
|
+
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
177
|
+
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
178
|
+
<?php $header_image = get_header_image();
|
179
|
+
if ( ! empty( $header_image ) ) : ?>
|
180
|
+
<img src="<?php echo esc_url( $header_image ); ?>" alt="" />
|
181
|
+
<?php endif; ?>
|
182
|
+
</div>
|
183
|
+
<?php }
|
184
|
+
endif; // starter_admin_header_image
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* Custom functions that act independently of the theme templates
|
4
|
+
*
|
5
|
+
* Eventually, some of the functionality here could be replaced by core features
|
6
|
+
*
|
7
|
+
* @package starter
|
8
|
+
* @since starter 1.0
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
|
13
|
+
*
|
14
|
+
* @since starter 1.0
|
15
|
+
*/
|
16
|
+
function starter_page_menu_args( $args ) {
|
17
|
+
$args['show_home'] = true;
|
18
|
+
return $args;
|
19
|
+
}
|
20
|
+
add_filter( 'wp_page_menu_args', 'starter_page_menu_args' );
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Adds custom classes to the array of body classes.
|
24
|
+
*
|
25
|
+
* @since starter 1.0
|
26
|
+
*/
|
27
|
+
function starter_body_classes( $classes ) {
|
28
|
+
// Adds a class of group-blog to blogs with more than 1 published author
|
29
|
+
if ( is_multi_author() ) {
|
30
|
+
$classes[] = 'group-blog';
|
31
|
+
}
|
32
|
+
|
33
|
+
return $classes;
|
34
|
+
}
|
35
|
+
add_filter( 'body_class', 'starter_body_classes' );
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Filter in a link to a content ID attribute for the next/previous image links on image attachment pages
|
39
|
+
*
|
40
|
+
* @since starter 1.0
|
41
|
+
*/
|
42
|
+
function starter_enhanced_image_navigation( $url, $id ) {
|
43
|
+
if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )
|
44
|
+
return $url;
|
45
|
+
|
46
|
+
$image = get_post( $id );
|
47
|
+
if ( ! empty( $image->post_parent ) && $image->post_parent != $id )
|
48
|
+
$url .= '#main';
|
49
|
+
|
50
|
+
return $url;
|
51
|
+
}
|
52
|
+
add_filter( 'attachment_link', 'starter_enhanced_image_navigation', 10, 2 );
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Filters wp_title to print a neat <title> tag based on what is being viewed.
|
56
|
+
*
|
57
|
+
* @since starter 1.1
|
58
|
+
*/
|
59
|
+
function starter_wp_title( $title, $sep ) {
|
60
|
+
global $page, $paged;
|
61
|
+
|
62
|
+
if ( is_feed() )
|
63
|
+
return $title;
|
64
|
+
|
65
|
+
// Add the blog name
|
66
|
+
$title .= get_bloginfo( 'name' );
|
67
|
+
|
68
|
+
// Add the blog description for the home/front page.
|
69
|
+
$site_description = get_bloginfo( 'description', 'display' );
|
70
|
+
if ( $site_description && ( is_home() || is_front_page() ) )
|
71
|
+
$title .= " $sep $site_description";
|
72
|
+
|
73
|
+
// Add a page number if necessary:
|
74
|
+
if ( $paged >= 2 || $page >= 2 )
|
75
|
+
$title .= " $sep " . sprintf( __( 'Page %s', 'starter' ), max( $paged, $page ) );
|
76
|
+
|
77
|
+
return $title;
|
78
|
+
}
|
79
|
+
add_filter( 'wp_title', 'starter_wp_title', 10, 2 );
|