Instantly share code, notes, and snippets.

View blog_article.php
<!-- Include the header file -->
<div ng-include="app.app.base_url + 'partials/header.html'"></div>
<!-- Include the header file -->
<div class="page-has-header page-has-footer">
<h2 ng-bind="data.blog_posts[params.pid].post_title"></h2>
<p class="uk-text-meta">Posted <span ng-bind="data.blog_posts[params.pid].post_date"></span></p>
<p ng-bind="data.blog_posts[params.pid].post_content"></p>
View blog_posts.php
<!-- Include the header file -->
<div ng-include="app.app.base_url + 'partials/header.html'"></div>
<!-- Include the header file -->
<div class="page-has-header page-has-footer">
<div uk-slider="center: true">
<div class="uk-position-relative uk-visible-toggle uk-light">
<ul class="uk-slider-items uk-child-width-1-1 uk-grid">
View blog_article.php
<!-- Include the header file -->
<div ng-include="app.app.base_url + 'partials/header.html'"></div>
<!-- Include the header file -->
<div class="page-has-header page-has-footer">
<h2>You are reading article <span ng-bind="params.pid"></span></h2>
</div>
View script.js
(function() {
if (typeof $appuccino !== 'undefined') {
/*
* application/controller
* @info Fired when the application controller is ready.
*
* Read more about hooks in App Docs.
* @link https://dashboard.myappuccino.com/documentation/app/
View blog_posts.php
<!-- Include the header file -->
<div ng-include="app.app.base_url + 'partials/header.html'"></div>
<!-- Include the header file -->
<div class="page-has-header page-has-footer">
<div uk-slider="center: true">
<div class="uk-position-relative uk-visible-toggle uk-light">
<ul class="uk-slider-items uk-child-width-1-1 uk-grid">
View functions.php
<?php
function mya_response_blog_posts($response) {
/*
* Get 10 posts with the type 'post'
* that are set as published.
*/
$posts = get_posts(array(
'post_type' => 'post',
'post_status' => 'publish',
View uikit-queries.js
/*
* UIkit Queries
* Requires jQuery.
* Built by @jakebown1
* -------------------------------
* UIkit.component('hello', __caller(<min-width>, <max-width>);
* -------------------------------
* <div uk-hello="my_class"></div>
*/
View example.html
<input type="text" name="query" required required="required" placeholder="Search..">
View example.html
<input name="query" required required="required">
View example.html
<input name="query" required requiree="required">