Skip to content

Instantly share code, notes, and snippets.

View AndriyShepitsen's full-sized avatar

Andriy Shepitsen AndriyShepitsen

View GitHub Profile
@AndriyShepitsen
AndriyShepitsen / form_newsAddition_php.php
Last active December 17, 2015 05:29
form_newsAddition_php
<div id="newsAddition">
<?php
echo form_open('admin/newsAddMethod');
echo form_fieldset('Add News', array('id'=>'addNewsFls'));
?>
<ul class="addNewsFormEl">
<li>
<?php
echo form_label('News Title', 'newsTitle', array(
'class'=>'formLabelsAdmin'));
@AndriyShepitsen
AndriyShepitsen / icon_background_image.scss
Last active December 17, 2015 05:38
icon_background_image
@include background(image-url("anyImg.jpg"));
background-repeat:no-repeat;
background-position:left center;
@AndriyShepitsen
AndriyShepitsen / foundation_style_links
Created May 15, 2013 21:36
foundation_style_links
@AndriyShepitsen
AndriyShepitsen / .htaccess
Created May 16, 2013 18:32
htaccess_file
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
<?php
foreach ($site_news as $row) {
echo '<h1>' . $row->title . '</h1>';
echo '<p>' . $row->body . '</p>';
}
?>
@AndriyShepitsen
AndriyShepitsen / ukr_village_site_color_palette_screen.scss
Last active December 17, 2015 11:29
ukr_village_site_color_palette
$colorTop-bar: #111111;
$colorHeader: #11171C;
$colorDivider: #F5B949;
$colorDividerTop: #226CDD;
$colorMainContent: #EDEEEF;
$colorleftSideBar: #D1D6DC;
$colorFontCintent: #525252;
$colorBody: #525C69;
$colorGray1: #161616;
$colorGray2: #0D0F13;
@AndriyShepitsen
AndriyShepitsen / my_scss_start.scss
Last active December 17, 2015 11:29
my_scss_start
@import "compass";
@import "app";
@import "foundation";
@import "settings";
* {
vertical-align: top;
font-weight: inherit;
font-family: inherit;
font-style: inherit;
@AndriyShepitsen
AndriyShepitsen / topNavPanel.php
Last active December 17, 2015 11:38
topNavPanel
<div class="dividerTop"></div>
<div class="navPanel">
<nav class="top-bar">
<section class="top-bar-section">
<ul class="right">
<li class="divider"></li>
<li>
<?php
echo anchor ('home', 'Home');
function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->model('');
$data['module'] = '';
$data['view'] = '';
$data['data2'] = array();
$this->load->module('template');
$this->template->index($data);