- Inloggningsfunktion skall finnas.
- Man skall kunna bläddra mellan produkter som ligger i olika kategorier. Kategorierna kan vara statiska (admin behöver inte kunna redigera)
- Konton skall ha olika accessnivå beroende på om man är admin eller kund.
- Konton skall kunna skapas och tas bort av administratör, men nya kunder ska kunna skapa sina egna konton via hemsidan.
- Produkter skall kunna läggas till och tas bort av administratör. Egenskaper som skall finnas är Namn, beskrivning, pris, kategori.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
var pages = { | |
dashboard: "#dashboard/eChzdEEBTFKu_c0u-nsdTg", | |
visitors: "#report/visitors-overview", | |
location: "#report/visitors-geo/", | |
}; | |
var googleAnalytics = "a28736903w54575155p55522219"; | |
var theDate = new Date(); | |
var theYear = new String(theDate.getFullYear()); | |
var theMonth = new String(theDate.getMonth() + 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (student in students) { | |
// Loop through available students. | |
if (typeof student.question !== “undefined”) { | |
// If student has question, ask question. | |
student.askQuestion(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* =BEGIN: Add Class to first Paragraph in WordPress the_content(); | |
Source: http://webdevbits.com/wordpress/add-class-to-first-paragraph-in-wordpress-the_content/ | |
---------------------------------------------------------------------------------------------------- */ | |
function first_paragraph($content){ | |
// Testing to see if the content is a Page or Custom Post Type of school, if so, display the text normally (without the class = intro). | |
if ('course' == get_post_type()) { | |
return preg_replace('/<p([^>]+)?>/', '<p$1>', $content, 1); | |
} else { | |
return preg_replace('/<p([^>]+)?>/', '<p$1 class="introduction">', $content, 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Navigation Menus | |
register_nav_menus( array( | |
'main-menu-left' => 'Main Navigation - Left' | |
) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img-slider> | |
<img src="./sunset.jpg" alt="a dramatic sunset"> | |
<img src="./arch.jpg" alt="a rock arch"> | |
<img src="./grooves.jpg" alt="some neat grooves"> | |
<img src="./rock.jpg" alt="an interesting rock"> | |
</img-slider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var el=document.createElement('script');el.type='text/javascript';el.src='//zeman.github.io/perfmap/perfmap.js';document.getElementsByTagName('body')[0].appendChild(el);})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript:(function() {window.location="http://unvis.it/"+window.location.toString();})()">Unvisit</a> |
OlderNewer