I have recreated the page, post and category structure/data as seen on http://wp-themes.com/.
And I have exported this into a WordPress export XML and made this available for download.
The file can be downloaded here
I have recreated the page, post and category structure/data as seen on http://wp-themes.com/.
And I have exported this into a WordPress export XML and made this available for download.
The file can be downloaded here
As I’m using my CMS in an ever increasing amount of projects it became more and more apparent that the current html structure isn’t that flexible for the various types of designs the projects have.
With this came the decision to redo the entire design both html and graphics wise. This decision was made a while ago but until a few days ago I hadn’t touched the idea.
So currently I’m rebuilding the html and css with compatibility and ease-of-use in mind, so without further ado see here the old and new design (Click them to enlarge).
Now let me know what you think about the new design and perhaps you have some suggestions, I’ll consider them
.
I might also publish the html once it’s finished, dunno yet.
I was working on my CMS (Just took a brake to write this), and I tried to figure out how to pass additional arguments to a javascript callback. After some searching I found what I was looking for, I told the people in the jQuery IRC channel and someone gave me shorter and cleaner code that does the same. So let me run you through the code (Note: This is jquery but the same method would also work with normal Javascript) .
In this example I will use an argument that defines where to load the data got from an AJAX request in.
//Custom function that's used instead of the long jQuery Syntax
function loadUrl(url, destination)
{
// Use a get request to get the page at URL
$.get(url, function(html, status) { loadedPage(html, status, destination) });
}
// The callback function
function loadedPage(html, status, destination)
{
// If the AJAX call failed stop the function
if(status != "success")
return;
// Set the html of destination (Which is in this case a jQuery Selector) to the jquery repsonse
$(destination).html(html);
}
If you haven’t figured out how to pass the additional arguments from the above example I’ll explain in detail, Let’s take a closer look at line 5(Formatted for readability).
$.get(url,
function(html, status)
{
loadedPage(html, status, destination)
}
);
As you can see we are using a custom defined function for the callback, What we do is make a function that has the arguments that get passed to the callback.
function(html, status)
{
}
And in that function we call our real callback function but with the additional arguments we passed to loadUrl()
function(html, status)
{
loadedPage(html, status, destination)
}
And that’s it, this can be done with as many additional parameters as you like just add them to the call of the real callback function.
Leave a comment if you have any questions or feedback.
Regards, Xeross
I’ve been working on the x3tech CMS for a while and wanted to get the status of the project (What’s finished, What still needs doing) on paper, So I created a word document containing this info. However I thought while I’m at it why not create a document template for x3tech too. So I created the document template and the project status list.
It took a few hours to get everything right (Especially on paper) but it’s finally finished. I’ve converted the word document to pdf and the pdf to flash so you only need flash to view it. To check it out, Click here.
Please leave some comments on the document style (Header/Footer) and maybe on the document itself.
Regards, Xeross
Recent Comments