What are the features a modern CMS should have?
- Multilingual but Localized
- Shouldn't mess with HTML / CSS / JS
- Built on modern foundations
- Allow for different post types
- Versioning of content
<section class="social"> | |
<?php if($title) : ?> | |
<h1><?php echo $title; ?></h1> | |
<?php endif; ?> | |
<?php if($description) : ?> | |
<p><?php echo $description; ?></p> | |
<?php endif; ?> | |
<ul> | |
<?php foreach($social_networks as $sn) : ?> | |
<li> |
<div class="slideshow"> | |
<a href="#" class="prev" title="Show Previous Image">Previous</a> | |
<ul> | |
<li> | |
<img src="image-1.jpg" alt="Image 1"/> | |
</li> | |
<li> | |
<img src="image-2.jpg" alt="Image 2"/> | |
</li> | |
<li> |
<div class="slideshow"> | |
<ul> | |
<li> | |
<img src="image-1.jpg" alt="Image 1"/> | |
</li> | |
<li> | |
<img src="image-2.jpg" alt="Image 2"/> | |
</li> | |
<li> | |
<img src="image-3.jpg" alt="Image 3"/> |
<div class="slideshow"> | |
<ul> | |
<li> | |
<img src="image-1.jpg" alt="Image 1"/> | |
</li> | |
</ul> | |
</div> |
.titlebar | |
{ | |
/* titlebar css rules go here */ | |
} | |
.titlebar .button | |
{ | |
/* button's titlebar context modified rules go here */ | |
} |
Hello World To You! |
<!-- in the body --> | |
<script src="path/to/jquery.js"></script> | |
<script src="path/to/baseline.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$('img').baseline(24); | |
}); | |
</script> | |
</body> | |
</html> |
<?php | |
class ProjectController extends BaseController implements ProjectCreatorDelegate | |
{ | |
public function store() | |
{ | |
$creator = new ProjectCreator($this); | |
return $creator->create(Input::all()); | |
} |
What are the features a modern CMS should have?
VAGRANTFILE_API_VERSION = "2" | |
path = "#{File.dirname(__FILE__)}" | |
require 'yaml' | |
require path + '/scripts/homestead.rb' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
Homestead.configure(config, YAML::load(File.read(path + '/Homestead.yaml')), Vagrant.has_plugin?('vagrant-hostsupdater')) | |
end |