Hi:
With this proposed patch the main modifications are:
* Correct indentation (using 2 characters and spaces)
* Remove trailing spaces
* Fix several comments
* The inline CSS is now generated in the litejazz_preprocess_html()
* Optimization of the inline CSS
* Introduce the use of drupal_add_css() to handle the insertion of the inline CSS
* The conditional JS is included using a renderable array and invoking some official functions like:
- drupal_pre_render_conditional_comments()
- theming thru theme_html_tag()
- file_create_url() instead of using $GLOBALS['base_url']
* Other minor details
After this set of patches (6), at least my Coder is only reporting 3 critical warnings (discarding 38 normal warnings related to the .info file). 2 related with the .js files (I guess this two files will have to be rewriten) and another related to the hook_block() in the template.php file that I'm not able to understand.
HTH
MyXelf
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | litejazz-1365526-template-php-1-d7.patch | 8.65 KB | myxelf |
Comments
Comment #1
myxelf commentedAttaching the patch and changing the status...
Comment #2
kisugiai commentedwhat does it you tell in the js files? bcause i don't see sowaht except the 10 lines in the pickstyle css
the message of info file you can ignore
btw i havent run coder because its does not raly runn on my demo pages and the themes newsflash, litejazz and tapestry are not runs throgh the coder only whitejazz and whitejazz was clean
Comment #3
myxelf commented3 critical warnings, 38 normal warnings, 0 warnings were flagged to be ignored
The other 38 can be discarded as I said before
Comment #4
kisugiai commentedokay java try to put the code of js files in this code tag
with the block there i will look on the weekend may by its is a simple names change of function
Comment #5
myxelf commentedI already tried that with
pickstyle.js, and it didn't work. I think you will have to write those 2 files using the "jQuery-way" making use of the Drupal's behaviors and attaching functions to the DOM elements thru the use of selectors, etc.BTW, the file ie6.css is orphan in the theme.
Comment #6
kisugiai commentedHm okay ie6.css ist at the moment orphan thats right.
May I should remove becaus who's using ie6?
If we remove ie6 then we can remove suckerfish.js to.
Ie6/7 I wont support because its very horible to make it compatible with it so i think i will remove this in the next release.
btw: If you want look the whitejazz in this I haven't get an error by coder for js and iam not so firm in js scripting.
Comment #7
myxelf commentedI would remove it since the day it was alive! :-D But maybe you should open a poll or do some research inside Drupal to see what is the policy about browsers' support. Quickly I found this
* http://groups.drupal.org/node/18456
* http://www.w3schools.com/browsers/browsers_stats.asp
* http://www.w3schools.com/browsers/browsers_explorer.asp
I think that 1% is a lot of people, but what we are removing is the suckerfish part which is considered into the B-graded level. The ie6.css would be the most determinant thing to remove and is already orphaned. OTOH ie.css is only talking about 1 padding-pixel. Taking all this into account, I would remove all the support from such a PITA-Browser.
I'll check the WhiteJazz theme at first chance.
Comment #8
kisugiai commentedso i have locked at the js and block messeages under coder
but dosent metter about this messages
the java messages i'm not sure but I think you can ignore it because we have not a module
the block message is a fault of coder because coder attaches modules information to the theme preprocesses
you can ignore it
little hint
dont swicht turn on the Converting 6.x modules to 7.x funktion this you dont need because we have a theme and the theme ist already D7.
eg if you check bartik with this filter you get some messages to of critical mesages
so now i will check somthing an look waht i use some things are good some ar unneccecary
Comment #9
kisugiai commentedThe templates.php is in the actual Dev in.
java won't fix