CVS edit link for atrasatti
I have created a new theme for mobile devices based on official Nokia templates that will work for basic devices and high-end devices with different styles and enhancement.
The theme has been designed to integrate with an existing module called Mobile Plugin, already hosted on drupal.org ( http://drupal.org/node/458912 ). While it was designed specifically for that plugin with minor changes will work with any simple Drupal install.
The plan is of course to continue working on it and making it more and more powerful.
The theme will work with Drupal 6 including integrations with color module and other simple tweaks for site owners to customise the appearance of their site.
Comments
Comment #1
atrasatti commentedSee attached a preview version of the theme that I am working on.
Comment #2
avpadernoI don't know what you mean by preview, but Apply for contributions CVS access reports that
Comment #3
atrasatti commentedBy preview I mean that this is 99% done. Call it beta, if you want. It's feature complete, it works and there are no print_r or stuff like that.
What I want to do is put it up on CVS, link it to people, show it, seek for feedback and fix any issues that are found. That's what I mean by "preview".
Comment #4
atrasatti commentedOne minor fix to the load of a CSS file and filled in the README.txt for install instructions.
Comment #5
avpadernoThere is the function
drupal_add_js(), but in this case you can declare the JavaScript files used by the theme into its .info file.It is better to always include JavaScript code from a file, when the code is more than 1 line of code.
Always use the line terminator; the line should be written as
<?php print $head_title; ?>.Comment #6
atrasatti commentedThe reason for 1 is that the javascript actually checks the User-Agent string and loads ONLY the js that is appropriate for the requesting client.
I fixed 2 and 4.
I don't understand what you refer to in point 3.
See the new file attached, I should have covered all points except for 3, of course.
Comment #7
avpadernoI think that file can be downloaded from http://forumnokia.com; the file then doesn't report the license, which could be not compatible with the license applied to all the files committed in CVS.
The code is not respecting the settings for the logo set for the theme.
What is the difference between executing the code inline as it is, and including the JavaScript code with
? I guess it would do the same thing in both the cases. Drupal output is XHTML, which means a script cannot be added using the HTML tag you used. If you notice how Drupal includes inline JavaScript, you will notice that the XHTML code is a little different.Comment #8
atrasatti commented1. The project is sponsored by Nokia and one of their requirements is that the final product would be open source. They are more than happy with GPL if that is what is required to be available on drupal.org. In any case, if you check the templates ( http://www.forum.nokia.com/Technology_Topics/Web_Technologies/Browsing/W... ) you will see that the licence file says:
The reason why I have to include the file is that on Forum Nokia they are provided as a zip file that contains many sample files. My javascript will be changed over time and eventually might not be the same thing as the original template provided.
2. changed the checks on the logo and verified that the preferences are respected.
3. changed the inline script to use drupal_add_js().
4. at line 37, WAY before your code snippet there is a check if the module is installed:
5. My theme only has 4 constants, defined at the top of template.php and they seem to respect the coding standard, i.e. NOKIAMOBILE_THEME_HIGHEND_GROUP. I changed all tabs to two spaces.
Comment #9
avpadernoWhat I reported about files available from third-party sites is still valid.
On the coding standards,
TRUE, FALSE, andNULLare considered constants, and they should be written in upper case letter, independently from the fact PHP is not case sensitive.Comment #10
atrasatti commentedFair enough, I thought you meant the constants that I defined in my module.
So your requirement about the javascript is that I completely remove it from the package and provide a link to the Forum Nokia site for download. Users will have to download the package, extract the javascript and place it in the right directory.
I can try and do this, but in my opinion, 95% of the users if not more will not be able to complete the process, not even with a step-by-step guide. This means killing any possibility of success of this theme. Or, make it available on a different site from Drupal which means diminishing the visibility. It seems to be counterproductive in either case.
Should I re-write the javascript in order to be able to provide it as part of the package? This doesn't seem to be the most productive way, but if it's the only way, I will consider it.
Comment #11
avpadernoConsidering that there are projects in CVS as jQuery UI, which doesn't commit in CVS files taken from another project, I would think that avoiding to commit in CVS files available from third-party site is possible.
Comment #12
atrasatti commentedHere comes a new version. All true and false strings are now uppercase, I removed the incriminated javascript and added instructions on how to download it and put it in the right place.
Is it now OK to go on CVS?
Comment #13
atrasatti commentedA live example is also visible here: http://dtest.dreamhosters.com
Comment #14
atrasatti commentedWhat do I have to do to get this approved?
Comment #15
avpadernoComment #16
avpadernoRemember that the default values for the theme settings are written in the .info file.
Comment #18
avpaderno