Commit Graph

986 Commits

Author SHA1 Message Date
Josh Betz a792ded32c No need to rewind posts if nothing has been queued up yet 2012-08-24 12:29:41 -05:00
Michael Fields 90429bf5b0 Merge pull request #32 from kovshenin/patch-1
Stop passing global $post->ID to wp_attachment_is_image() in _s_scripts() - It is not needed. fixes #32. props @kovshenin.
2012-08-15 14:22:23 -07:00
Hugo Baeta 6f4192d9b0 updated the styles for the buttons, switching from using background css gradients to using box-shadow techniques 2012-08-15 13:45:04 -07:00
Konstantin Kovshenin 6465b5ae9f Don't print markup in _s_content_nav() when it is not needed. Fixes #28.
Added checks for previous (or parent) and next post in _s_content_nav() before printing any navigation-specific markup. Same approach for when using the function to print pagination links on a posts set for less than two pages.
2012-08-15 17:05:42 +04:00
Ian Stewart 31c5a39408 Merge pull request #35 from kovshenin/patch-4
Adding current search query to searchform.php
2012-08-14 08:58:47 -07:00
Ian Stewart c68e31f28b Merge pull request #34 from kovshenin/patch-3
Improve code readability in no-results.php: "It's difficult to get around php if () {} statements when mixed with markup, so using if () : endif; syntax instead."
2012-08-14 08:58:13 -07:00
Konstantin Kovshenin dec5c61928 No need for the_post and rewind_posts in author archives.
We can get all the information we need about the author by using get_queried_object within is_author.
2012-08-14 10:49:27 +04:00
Konstantin Kovshenin 6fe882a2df Adding current search query to searchform.php
It may be useful to display what the user searched for in the search input, especially on pages like no-results.php where the search query is not displayed anywhere.
2012-08-14 10:36:37 +04:00
Konstantin Kovshenin 5bf85736bc Improve code readability in no-results.php
It's difficult to get around php if () {} statements when mixed with markup, so using if () : endif; syntax instead.
2012-08-14 10:30:50 +04:00
Konstantin Kovshenin c5b01c3bac No need for the $post global in _s_scripts()
The wp_attachment_is_image() function will figure out the $post global internally, does not require one to be passed. Makes _s_scripts look cleaner.
2012-08-14 10:08:10 +04:00
Lance Willett 7a4aa04261 Merge pull request #16 from obenland/patch-1
Use get_header_textcolor() for forward compatibility, props obenland.
2012-08-06 16:21:19 -07:00
Lance Willett 098bacfe24 Merge pull request #26 from SimpliZine/patch-1
Add missing attribute assignment equals sign, props SimpliZine.
2012-08-06 16:19:17 -07:00
Lance Willett 473b835299 Merge pull request #25 from kwight/comments-php-comment
Corrected reference to location of _s_comment(). Props kwight.
2012-08-06 16:14:24 -07:00
Lance Willett 187ee2af87 Merge pull request #24 from LimeBlast/patch-1
Updated the comment to keep inline with the rest of the comments in the template. Props LimeBlast.
2012-08-06 16:13:03 -07:00
Lance Willett 587d0c2da1 Merge pull request #22 from jasongottschalk/incorrect-value-select-options-array
Fixed incorrect value in select options array. Props jasongottschalk.
2012-08-06 16:12:08 -07:00
Lance Willett 64f1d1a8bd Merge pull request #20 from obenland/master
Add missing 'class' comments, props obenland
2012-08-06 16:10:00 -07:00
Lance Willett 30518b894f Fix typo in closing comment, s/#entry-meta/.entry-meta/
See also http://core.trac.wordpress.org/ticket/21418
2012-07-31 08:21:53 -07:00
Lance Willett 077653d12e Update html5shiv.js to 3.6 stable version, props ocean90
Fixes #21
2012-07-30 10:07:35 -07:00
Lance Willett 1412ae5029 Merge branch 'master' of github.com:Automattic/_s 2012-07-24 12:47:05 -07:00
SimpliZine d56ae9234d Line #172: Added missing '=' in '<label for="sample-checkbox">'. 2012-07-02 17:38:46 +02:00
Michelle Langston dd8ca3eec6 _s: Adjust escaping for the title attribute.
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9865 d957f892-c61d-0410-b221-f235e6eecf30
2012-06-15 00:04:50 +00:00
Kirk Wight 603369e307 Corrected reference to location of _s_comment()
* _s_comment() is now located in inc/template-tags.php, rather than
functions.php as stated
2012-06-12 17:42:14 -04:00
Daniel Hollands 3fd3056326 Updated the comment to keep inline with the rest of the comments in the template. 2012-06-10 16:53:54 +02:00
Jason Gottschalk 5f44856a45 Fixed incorrect value in select options array. 2012-06-06 14:01:50 -03:00
Michael Fields 6a0c5d2d78 _s: WordPress coding standards. Cleanup whitespace. props @corvannoorloos
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9648 d957f892-c61d-0410-b221-f235e6eecf30
2012-05-26 23:43:53 +00:00
Michael Fields c4a02323c6 _s: Remove notice in Theme Options screen in WordPress 3.4. props @corvannoorloos
* Replace deprecated get_current_theme() with wp_get_theme()
 * Providing back-compat with prior versions of WordPress.


git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9647 d957f892-c61d-0410-b221-f235e6eecf30
2012-05-26 23:39:53 +00:00
Ian Stewart 7484b4cf6b _s: add styling for HTML5 email inputs; See #1286
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9628 d957f892-c61d-0410-b221-f235e6eecf30
2012-05-24 18:53:07 +00:00
kobenland b9fa5c0dd2 Add missing 'class' comments 2012-05-23 21:01:41 +02:00
Philip Arthur Moore 55ab0fa5d6 _s: In comments.php there's a line that reads "if comments are closed and no comments are...". Let's get rid of the "no" since comments must be present in order for the .nocomments text to be shown.
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9560 d957f892-c61d-0410-b221-f235e6eecf30
2012-05-15 16:51:49 -05:00
Philip Arthur Moore 2997c2c59e _s: In comments.php there's a line that reads "if comments are closed and no comments are...". Let's get rid of the "no" since comments must be present in order for the .nocomments text to be shown.
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9560 d957f892-c61d-0410-b221-f235e6eecf30
2012-05-15 01:08:33 +00:00
Ian Stewart 175ef5d5e7 _s: Bumping the version number to 1.1 to reflect the last round of updates
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9497 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Michael Fields 966679f25b _s: Update Custom Header Code. fixes #1212
* Use WordPress 3.4's registration method providing backward compatibility for previous versions.
* Implement shiv for get_custom_header(). props @obenland
* Allow all custom header args to be filtered via child theme/plugin.
* Update example code in DocBlock to use get_custom_header().



git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9484 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Michael Fields 2cd6317a4e _s: Only set theme options if necessary. fixes #1151
* Remove call to add_option() during admin_init.
* Rework _s_get_theme_options() so that it merges default values into the stored settings.
* Rework _s_theme_options_validate() to only return recognized values if they are present in the $_POST request - only store what is absolutely necessary.
* Updated the docs in a few places.
* Note: _s now requires PHP5. see L161 array_intersect_key().


git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9483 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Michael Fields 2a0b4e7bf8 _s: Do not load $locale.php fixes #1213
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9482 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Michael Fields bd4719e73f _s: Better image filtering for self-hosted users. fixes #1216
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9481 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Michael Fields c82269d831 _s: Remove password-protected message from comments.php. fixes #1217
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9480 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Ian Stewart 1b0b0d1794 _s: Hiding a comments link while a post is password-protected cleans things up; Props michaelfields; Closes #1215
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9452 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Takashi Irie 754f07dc7f _s: Fixed a typo
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9347 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 14:38:15 -05:00
Ian Stewart 98a9f3905c _s: Bumping the version number to 1.1 to reflect the last round of updates
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9497 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-24 19:14:21 +00:00
Ian Stewart df704f96af Merge branch 'master' of github.com:Automattic/_s 2012-04-24 13:54:57 -05:00
Michael Fields f705f1c5f9 _s: Update Custom Header Code. fixes #1212
* Use WordPress 3.4's registration method providing backward compatibility for previous versions.
* Implement shiv for get_custom_header(). props @obenland
* Allow all custom header args to be filtered via child theme/plugin.
* Update example code in DocBlock to use get_custom_header().



git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9484 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-23 22:52:48 +00:00
Michael Fields c30057cd92 _s: Only set theme options if necessary. fixes #1151
* Remove call to add_option() during admin_init.
* Rework _s_get_theme_options() so that it merges default values into the stored settings.
* Rework _s_theme_options_validate() to only return recognized values if they are present in the $_POST request - only store what is absolutely necessary.
* Updated the docs in a few places.
* Note: _s now requires PHP5. see L161 array_intersect_key().


git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9483 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-23 21:35:30 +00:00
Michael Fields 30e64f4cbc _s: Do not load $locale.php fixes #1213
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9482 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-23 21:17:48 +00:00
Michael Fields 8f40beb65f _s: Better image filtering for self-hosted users. fixes #1216
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9481 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-23 21:13:47 +00:00
Michael Fields edf08c67b5 _s: Remove password-protected message from comments.php. fixes #1217
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9480 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-23 21:08:58 +00:00
Ian Stewart a5e58b8ac5 _s: Hiding a comments link while a post is password-protected cleans things up; Props michaelfields; Closes #1215
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9452 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-19 19:26:13 +00:00
obenland 036f80fd9a Use get_header_textcolor() for forward compatibility 2012-04-05 22:56:13 +03:00
Takashi Irie 614dca2933 _s: Fixed a typo
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9347 d957f892-c61d-0410-b221-f235e6eecf30
2012-03-30 10:47:41 +00:00
Ian Stewart 47a64fcca5 Add .unbind() before .click()
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9343 d957f892-c61d-0410-b221-f235e6eecf30
2012-03-29 18:21:54 +00:00
Ian Stewart ace4518144 Add .unbind() before .click()
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9343 d957f892-c61d-0410-b221-f235e6eecf30
2012-03-29 18:21:54 +00:00