Skip to content

Instantly share code, notes, and snippets.

View shinesoftware's full-sized avatar

Shine Software shinesoftware

View GitHub Profile
@shinesoftware
shinesoftware / footer
Last active December 28, 2015 07:09
CMS Block: Footer demo
@shinesoftware
shinesoftware / homepage
Last active December 28, 2015 07:09
Homepage demo
<div class="section">
<div class="container">
<div class="row">
<div class="col-lg-4 col-sm-4 col-md-4 col-xs-12">
<img class="hidden-xs img-responsive img-thumbnail" src="http://placehold.it/250x150&text=banner">
<h4>Client Login</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <a href="/customer/login">Client Login</a>
</p>
</div>
@shinesoftware
shinesoftware / slideshow
Last active December 28, 2015 07:18
CMS Block: Slideshow
<div class="carousel slide" id="myCarousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li class="active" data-slide-to="0" data-target="#myCarousel"></li>
<li data-slide-to="1" data-target="#myCarousel" class=""></li>
<li data-slide-to="2" data-target="#myCarousel" class=""></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
@shinesoftware
shinesoftware / end-footer
Last active December 28, 2015 07:19
CMS Block: End Block
@shinesoftware
shinesoftware / homepage-xml-block
Created November 14, 2013 08:02
XML Block: Homepage
<?xml version="1.0"?>
<blocks>
<block side="beforecontent">slideshow</block>
<block side="contentend">end-footer</block>
</blocks>
@shinesoftware
shinesoftware / footer
Last active December 28, 2015 07:29
CMS Block: Footer
@shinesoftware
shinesoftware / jsontest
Created November 23, 2013 13:30
Json test array
[{
customer_id: 'user1',
firstname: 'Jane',
lastname: 'Doe',
company: 'Apple'
}, {
customer_id: 'user2',
firstname: 'John',
lastname: 'Roberts',
company: 'Apple'
@shinesoftware
shinesoftware / Contacts
Last active December 30, 2015 00:09
CMS Block: Contacts
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
Contact Us
</div>
<div class="panel-body">
<p>Our developers are available from Monday to Friday. [09.00 am - 06:00 pm]<br/>Send your enquiry by contact form. Click here to show the contact form: <a href=\"/contacts\"><i class="fa fa-phone"></i> Contacts Now</a></p>
</div>
<!-- List group -->
<ul class="list-group">
@shinesoftware
shinesoftware / gist:9736775
Created March 24, 2014 09:06
BjyAuthorize Module Fixed -Wrong Rule issue #233
<?php
/**
* BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
*
* @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace BjyAuthorize\Provider\Role;
@shinesoftware
shinesoftware / Search method
Created June 17, 2014 09:22
This is a sample of the search method to be created in the service module in order to use the search engine of the project.
/**
* @inheritDoc
*/
public function search($search, $locale="en_US")
{
$result = array();
$i = 0;
$records = $this->tableGateway->select(function (\Zend\Db\Sql\Select $select) use ($search, $locale){