Skip to content

Instantly share code, notes, and snippets.

View katzueno's full-sized avatar

Katz Ueno katzueno

View GitHub Profile
@katzueno
katzueno / gettexts_sample.php
Last active August 29, 2015 14:02
Gettext, t() format
<?php
// Simple String
echo t('STRING');
// String with one variable
$string = 'name';
echo t('STRING %s', $string);
@katzueno
katzueno / c5HelpdeskInt8.txt
Created June 20, 2014 05:22
concrete5: Helpdesk Addon: Internaitonalization
Well wrapped for t().
I suggest for the tiny adjustment
Found a couple minor stuff
/controllers/dashboard/helpdesk/search_article.php
On line 54
[code]$this->set('message', t('"'.$name.'" has been deleted'));
[/code]
@katzueno
katzueno / _settings.scss
Last active August 29, 2015 14:02
FoundationPress の日本語フォント対応 (http://ja.katzueno.com/2014/06/3155/)
// Foundation by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source
//
// FOUNDATION SETTINGS
//
// This is the default html and body font-size for the base rem value.
$rem-base: 16px;
@katzueno
katzueno / .htaccess
Last active August 29, 2015 14:03
さくら:スタンダード【旧】 concrete5 でプリティーURLを動かす方法
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?pathinfo=$1 [L,QSA]
</IfModule>
@katzueno
katzueno / page_list_pagination.html
Created June 30, 2014 07:34
concrete5: ページリストのページングのコーディング
<div id="pagination">
<div class="ccm-spacer"></div>
<div class="ccm-pagination">
<span class="ccm-page-left"><span class="ltgray">&laquo; 前</span></span>
<span class="currentPage active numbers"><strong>1</strong></span>
<span class=" numbers"><a href="/news/?ccm_paging_p_b322=2" >2</a></span>
<span class=" numbers"><a href="/news/?ccm_paging_p_b322=3" >3</a></span>
<span class=" numbers"><a href="/news/?ccm_paging_p_b322=4" >4</a></span>
@katzueno
katzueno / .htaccess
Created July 2, 2014 03:07
concrete5: Standard Pretty URL htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php');
$c = Page::getCurrentPage();
$th = Loader::helper('text');
$ih = Loader::helper('image');
$nh = Loader::helper('navigation');
// Case Detail
$title = $th->entities($c->getCollectionName());
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php');
$c = Page::getCurrentPage();
$th = Loader::helper('text');
$ih = Loader::helper('image'); //<--uncomment this line if displaying image attributes (see below)
//Note that $nh (navigation helper) is already loaded for us by the controller (for legacy reasons)
$title = $th->entities($c->getCollectionName());
$description = $c->getCollectionDescription();
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$rssUrl = $showRss ? $controller->getRssUrl($b) : '';
$th = Loader::helper('text');
$ih = Loader::helper('image'); //<--uncomment this line if displaying image attributes (see below)
//Note that $nh (navigation helper) is already loaded for us by the controller (for legacy reasons)
?>
<div class="partner-list">
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$rssUrl = $showRss ? $controller->getRssUrl($b) : '';
$th = Loader::helper('text');
$ih = Loader::helper('image'); //<--uncomment this line if displaying image attributes (see below)
//Note that $nh (navigation helper) is already loaded for us by the controller (for legacy reasons)
?>
<div class="partner-case-list">
<h2>事例詳細</h2>