This file contains hidden or 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 | |
| /** | |
| * Simple helper to fetch the bounding boxes | |
| * for a point on the map (lat,lng) by radius. | |
| * | |
| * @param double $lat Latitude | |
| * @param double $lng Longitude | |
| * @param int $radius Radius in km | |
| * @return array |
This file contains hidden or 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 | |
| return array( | |
| 'title' => 'Widget Title', | |
| 'html' => function() { | |
| // any data for the template | |
| $data = array(); | |
| return tpl::load(__DIR__ . DS . 'template.php', $data); | |
| } | |
| ); |
This file contains hidden or 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
| <div class="drop">Drop it like it's hot.</div> | |
| <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> | |
| <script src="build/jquery.dropload.min.js"></script> | |
| <script> | |
| $('.drop').drop({ | |
| dragover: function() { | |
| $(this).addClass('over'); | |
| }, |
This file contains hidden or 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 $thumb = thumb($cover, array('width' => 300)) ?> | |
| <img src="<?php echo $thumb->url() ?>" width="<?php echo $thumb->width() ?>" width="<?php echo $thumb->height() ?>" alt=""> |
This file contains hidden or 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 if ($mainimg = $post->image((string)$post->mainimage())): ?> | |
| <img class="mainImg" src="<?php echo thumb($mainimg, array('width' => 300))->url(); ?>" alt=""> | |
| <?php endif ?> |
This file contains hidden or 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 if($imagename = param('bild') and $image = $page->image($imagename)): ?> | |
| <!-- put the image template code here --> | |
| <?php else: ?> | |
| <!-- show the regular template here --> | |
| <?php endif ?> |
This file contains hidden or 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 | |
| c::set('thumbs.destination', function($thumb) { | |
| $page = $thumb->source->page(); | |
| $filename = $thumb->source->name() . '-' . $thumb->settingsIdentifier() . '.' . $thumb->source->extension(); | |
| $root = $thumb->options['root'] . DS . str_replace('/', DS, $page->uri()) . DS . $filename; | |
| $url = $thumb->options['url'] . '/' . $page->uri() . '/' . $filename; | |
| // create the directory |
This file contains hidden or 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 | |
| // /ldap/ldap.php | |
| class Page extends PageAbstract {} | |
| class Pages extends PagesAbstract {} | |
| class Children extends ChildrenAbstract {} | |
| class Content extends ContentAbstract {} | |
| class Field extends FieldAbstract {} | |
| class File extends FileAbstract {} |
This file contains hidden or 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
| # content pipeline | |
| RewriteRule ^content/(.*) content.php |
This file contains hidden or 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
| git submodule add https://github.com/getkirby/kirby.git | |
| git submodule add https://github.com/getkirby/panel.git | |
| git submodule update --init --recursive |