<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>株式会社アルバステラ &#187; albastella</title>
	<atom:link href="http://albastella.co.jp/author/albastella/feed/" rel="self" type="application/rss+xml" />
	<link>http://albastella.co.jp</link>
	<description>WEBサイト製作・販売・サポート</description>
	<lastBuildDate>Wed, 03 Oct 2018 07:11:11 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>fullcalendarに複数のgoogleカレンダーを表示する</title>
		<link>http://albastella.co.jp/2016/01/05/fullcalendar%e3%81%ab%e8%a4%87%e6%95%b0%e3%81%aegoogle%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/</link>
		<comments>http://albastella.co.jp/2016/01/05/fullcalendar%e3%81%ab%e8%a4%87%e6%95%b0%e3%81%aegoogle%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Tue, 05 Jan 2016 08:24:07 +0000</pubDate>
		<dc:creator><![CDATA[albastella]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://albastella.co.jp/?p=209</guid>
		<description><![CDATA[あけましておめでとうございます。 本年もよろしくお願い申し上げます。 サイト内にカレンダーを表示させる方法はいくつかあると思いますが、 fullcalender.jsがデザイン変更も簡単で、よく利用しております。 http://fullcalendar.io/ googleカレンダーの内容をそのまま表示させたりできるので非常に便利です。 今回、複数のgoogoleカレンダーをこのfullcalenderに表示させたかったのですが、 Google API v3を使用して複数とりこむ方法がわからず苦戦。。 本家サイトの解説を参考に設定できました。 まずは基本設定 【heder内】 【body内】 カレンダーを表示させたい位置に書く 【オプション設定】 Google APIの取得方法は割愛します。 googleカレンダーを複数読み込むための設定をここでします。 （html内に設置） カレンダーIDは、表示させたいgoogleカレンダー（共有で一般公開設定必須）の「カレンダー設定」→「カレンダーのアドレス」で確認できます。 「 className:」でclass指定することで、cssでのデザイン設定もできます。]]></description>
				<content:encoded><![CDATA[<p>あけましておめでとうございます。<br />
本年もよろしくお願い申し上げます。</p>
<p>サイト内にカレンダーを表示させる方法はいくつかあると思いますが、<br />
fullcalender.jsがデザイン変更も簡単で、よく利用しております。<br />
<a href="http://fullcalendar.io/">http://fullcalendar.io/</a><br />
googleカレンダーの内容をそのまま表示させたりできるので非常に便利です。</p>
<p>今回、複数のgoogoleカレンダーをこのfullcalenderに表示させたかったのですが、<br />
Google API v3を使用して複数とりこむ方法がわからず苦戦。。<br />
本家サイトの解説を参考に設定できました。</p>
<p>まずは基本設定<br />
【heder内】</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel='stylesheet' href='css/fullcalendar.css' type='text/css' media='all' /&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type='text/javascript' src='js/moment.min.js'&gt;&lt;/script&gt;
&lt;script type='text/javascript' src='js/fullcalendar.min.js'&gt;&lt;/script&gt;
&lt;script type='text/javascript' src='js/gcal.js'&gt;&lt;/script&gt;
</pre>
<p>【body内】<br />
カレンダーを表示させたい位置に書く</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;calendar1&quot;&gt;&lt;/div&gt;
</pre>
<p>【オプション設定】<br />
Google APIの取得方法は割愛します。<br />
googleカレンダーを複数読み込むための設定をここでします。<br />
（html内に設置）</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script&gt;
$(document).ready(function() {
	
　　　　　$('.calendar1').fullCalendar(
		{

			// API キーを設定する
			googleCalendarApiKey: 'ここに取得したAPIキー',
		
			 eventSources: [
            {
				//スケジュール1
                googleCalendarId: 'カレンダーID１',
		className: 'calendar_1'
				
            },
            {
				//スケジュール２
                googleCalendarId: 'カレンダーID２',
                className: 'calendar_2'
            }
        ],
			},
		});
		
	});
	
&lt;/script&gt;
</pre>
<p>カレンダーIDは、表示させたいgoogleカレンダー（共有で一般公開設定必須）の「カレンダー設定」→「カレンダーのアドレス」で確認できます。<br />
「 className:」でclass指定することで、cssでのデザイン設定もできます。</p>
]]></content:encoded>
			<wfw:commentRss>http://albastella.co.jp/2016/01/05/fullcalendar%e3%81%ab%e8%a4%87%e6%95%b0%e3%81%aegoogle%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascriptからphpへフォームデータを渡す</title>
		<link>http://albastella.co.jp/2015/12/14/javascript%e3%81%8b%e3%82%89php%e3%81%b8%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e6%b8%a1%e3%81%99/</link>
		<comments>http://albastella.co.jp/2015/12/14/javascript%e3%81%8b%e3%82%89php%e3%81%b8%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e6%b8%a1%e3%81%99/#comments</comments>
		<pubDate>Mon, 14 Dec 2015 07:06:37 +0000</pubDate>
		<dc:creator><![CDATA[albastella]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://albastella.co.jp/?p=203</guid>
		<description><![CDATA[ページ遷移なしのメールフォームを設置する案件で、 javascriptからphpへフォームデータを渡す必要があり、そのときの覚書。 結局これは使わなかったのやけど。。 html php ざっくり言うと、javascriptからpost値をphpに渡して、エラーがなければ送信して、結果をjavascriptに返すってことをしています。 phpのエラーチェックとかは適当に書いてますが、send.phpに直接アクセスされて空メールが送信されるのを防止する意味合いぐらいで設定してます。 今回は未完成のままになってしまいますが。 javascriptでフォームの未入力などをチェック。→入力に誤りがない状態でphpに値を送信。→送信完了後フォームをリセットというのが最終予定でした。]]></description>
				<content:encoded><![CDATA[<p>ページ遷移なしのメールフォームを設置する案件で、<br />
javascriptからphpへフォームデータを渡す必要があり、そのときの覚書。<br />
結局これは使わなかったのやけど。。</p>
<h4>html</h4>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;ja&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;title&gt;example&lt;/title&gt;
    
    &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;script&gt;
    $(document).ready(function()
    {
		
        $('#send').click(function()
        {
            //postメソッドで送るデータを定義 var data = {パラメータ名 : 値};
           var data = {
		namae : $('#namae').val(),
		email : $('#email').val(),
		ask : $('#ask').val()
	};

            $.ajax({
                type: &quot;post&quot;,
                url: &quot;send.php&quot;,
                data: data,
                //Ajax通信が成功した場合
                success: function(data, dataType)
                {
                //PHPから返ってきたデータの表示
                alert(data);
			    //送信完了後フォームの内容をリセット
				document.forms[0].elements[0].value=&quot;&quot;;
				document.forms[0].elements[1].value=&quot;&quot;;
			    document.forms[0].elements[2].value=&quot;&quot;;
                },
               //Ajax通信が失敗した場合のメッセージ
                error: function()
                {
                alert('メールの送信が失敗しました。');
                }
            });
            return false;
        });
    });
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;contactForm&quot; name=&quot;contactForm&quot; method=&quot;post&quot; &gt;
&lt;ul&gt;
&lt;li&gt;&lt;input type=&quot;text&quot; id=&quot;namae&quot; name=&quot;namae&quot; placeholder=&quot;名前&quot;&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type=&quot;email&quot; id=&quot;email&quot; name=&quot;email&quot; placeholder=&quot;E-mail&quot; &gt;&lt;/li&gt;
&lt;li&gt;&lt;textarea name=&quot;ask&quot; id=&quot;ask&quot; placeholder=&quot;お問い合わせ内容&quot; &gt;&lt;/textarea&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;more&quot;&gt;&lt;input id=&quot;send&quot; type=&quot;submit&quot; value=&quot;送る&quot;&gt;&lt;/p&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h4>php</h4>
<pre class="brush: php; title: ; notranslate">
&lt;?php
header(&quot;Content-type: text/plain; charset=UTF-8&quot;);
$sender_name = $_POST['namae'];
$sender_mail_address = $_POST['email'];
$contact_body = $_POST['ask'];

//空白チェック
    $errorflag = 0;
	if ($sender_name == null) {
		$error_name = &quot;お名前が未入力です&quot;;
		$errorflag = 1;
	}else{$error_name = &quot;&quot;;}
	if ($sender_mail_address == null) {
		$error_mail = &quot;メールアドレスが未入力です&quot;;
		$errorflag = 1;
	}else{$error_mail = &quot;&quot;;}
	if ($contact_body == null) {
		$error_ask = &quot;お問い合わせ内容が未入力です&quot;;
		$errorflag = 1;
	}else{$error_ask = &quot;&quot;;}
	
if ($errorflag == 1)
{
    if($error_name != &quot;&quot;){ echo $error_name.&quot;\n&quot;;}
	if($error_mail != &quot;&quot;){ echo $error_mail.&quot;\n&quot;;}
	if($error_ask != &quot;&quot;){ echo $error_ask.&quot;\n&quot;;}
    
}
else
{
   //ここにメール送信の設定
   
   echo &quot;送信が完了しました&quot;;
}
?&gt;
</pre>
<p>ざっくり言うと、javascriptからpost値をphpに渡して、エラーがなければ送信して、結果をjavascriptに返すってことをしています。</p>
<p>phpのエラーチェックとかは適当に書いてますが、send.phpに直接アクセスされて空メールが送信されるのを防止する意味合いぐらいで設定してます。<br />
今回は未完成のままになってしまいますが。<br />
javascriptでフォームの未入力などをチェック。→入力に誤りがない状態でphpに値を送信。→送信完了後フォームをリセットというのが最終予定でした。</p>
]]></content:encoded>
			<wfw:commentRss>http://albastella.co.jp/2015/12/14/javascript%e3%81%8b%e3%82%89php%e3%81%b8%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e6%b8%a1%e3%81%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPの記事内でphpを使う[ショートコード]</title>
		<link>http://albastella.co.jp/2015/12/14/wp%e3%81%ae%e8%a8%98%e4%ba%8b%e5%86%85%e3%81%ab%e3%81%a7php%e3%82%92%e4%bd%bf%e3%81%86%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89/</link>
		<comments>http://albastella.co.jp/2015/12/14/wp%e3%81%ae%e8%a8%98%e4%ba%8b%e5%86%85%e3%81%ab%e3%81%a7php%e3%82%92%e4%bd%bf%e3%81%86%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89/#comments</comments>
		<pubDate>Mon, 14 Dec 2015 05:07:01 +0000</pubDate>
		<dc:creator><![CDATA[albastella]]></dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://albastella.co.jp/?p=197</guid>
		<description><![CDATA[wordpressの記事内でphpを使いたいってことはよくあるのだけれど、プラグイン「Exec-PHP」を使うのはセキュリティー上よくないってことがよく言われていたし、phpを記事内で使用するのはあきらめていました。 ただ、今回どうしても必要な状況でどうしようかと思案していたところ、ショートコードで読み込む方法を発見！ 今後も役立ちそうなのでメモ残しておかなければ。 まず、ワードプレスのテーマ内、 fanctions.php内にショートコードの設定を記述 今回はテーマフォルダーの中にshortcodeというフォルダーを作ってそこに読み込むphpを配置。 shortcode/exeample.php というファイルを読み込んでくれたら成功！ ちなみに、子テーマで使用する場合は の部分を に置き換えます。 記事内でのショートコードの記述は。 でOK。 これでexample.phpの内容が表示されます。]]></description>
				<content:encoded><![CDATA[<p>wordpressの記事内でphpを使いたいってことはよくあるのだけれど、プラグイン「Exec-PHP」を使うのはセキュリティー上よくないってことがよく言われていたし、phpを記事内で使用するのはあきらめていました。</p>
<p>ただ、今回どうしても必要な状況でどうしようかと思案していたところ、ショートコードで読み込む方法を発見！<br />
今後も役立ちそうなのでメモ残しておかなければ。</p>
<p>まず、ワードプレスのテーマ内、<br />
fanctions.php内にショートコードの設定を記述</p>
<pre class="brush: php; title: ; notranslate">
function Include_my_php($params = array()) {
    extract(shortcode_atts(array(
        'file' =&gt; 'default'
    ), $params));
    ob_start();
   include(get_theme_root() . '/' . get_template() . &quot;/shortcode/$file.php&quot;);
    return ob_get_clean();
}
add_shortcode('onphp', 'Include_my_php');

</pre>
<p>今回はテーマフォルダーの中にshortcodeというフォルダーを作ってそこに読み込むphpを配置。<br />
shortcode/exeample.php<br />
というファイルを読み込んでくれたら成功！</p>
<p>ちなみに、子テーマで使用する場合は</p>
<pre class="brush: php; title: ; notranslate">
include(get_theme_root() . '/' . get_template() . &quot;/shortcode/$file.php&quot;);
</pre>
<p>の部分を</p>
<pre class="brush: php; title: ; notranslate">
include(STYLESHEETPATH . &quot;/shortcode/$file.php&quot;);
</pre>
<p>に置き換えます。</p>
<p>記事内でのショートコードの記述は。</p>
<pre class="brush: php; title: ; notranslate">
[onphp file='example']
</pre>
<p>でOK。<br />
これでexample.phpの内容が表示されます。</p>
]]></content:encoded>
			<wfw:commentRss>http://albastella.co.jp/2015/12/14/wp%e3%81%ae%e8%a8%98%e4%ba%8b%e5%86%85%e3%81%ab%e3%81%a7php%e3%82%92%e4%bd%bf%e3%81%86%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>記事内にソースコードを表示させるプラグイン</title>
		<link>http://albastella.co.jp/2014/05/01/%e8%a8%98%e4%ba%8b%e5%86%85%e3%81%ab%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/</link>
		<comments>http://albastella.co.jp/2014/05/01/%e8%a8%98%e4%ba%8b%e5%86%85%e3%81%ab%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/#comments</comments>
		<pubDate>Thu, 01 May 2014 04:23:03 +0000</pubDate>
		<dc:creator><![CDATA[albastella]]></dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://albastella.co.jp/?p=182</guid>
		<description><![CDATA[今まで、製作するにあたって調べたこととかよく使うけど忘れがちなことを残しておきたいと思いながらずるずる今まできていたのですが、今日から始めることにしました。（中途半端に終わる予感もするが。。。） さて第一弾、ブログ記事内にソースコードを書き込んでいるのをよく目にするのだけど、「あれは皆さんどうしているのだろうか？」と思い調べてみたら、wordpressのプラグインがありました。 参考プラグイン SyntaxHighlighter Evolvedというプラグインが使えそう。 ダウンロード先はこちら。 プラグインを有効にして、設定のSyntaxHighlighter Evolvedで細かい設定ができる。 現在バージョン3.x と 2.x　から選べるようになってるみたいだけど、3.xは長い行の折り返しができないらしいので、2.xのほうが今のとこ使いやすそう。 使い方は、記事投稿画面でhtmlの時は&#091;html&#093;～&#091;/html&#093;、cssは&#091;css&#093;～&#091;/css&#093;、phpは&#091;php&#093;～&#091;/php&#093;、javascriptは&#091;JavaScript&#093;～&#091;/JavaScript&#093;でそれぞれ囲うだけ。　]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">&lt;?php
 echo 'hello world!'; 
?&gt;</pre>
<p>今まで、製作するにあたって調べたこととかよく使うけど忘れがちなことを残しておきたいと思いながらずるずる今まできていたのですが、今日から始めることにしました。（中途半端に終わる予感もするが。。。）</p>
<p>さて第一弾、ブログ記事内にソースコードを書き込んでいるのをよく目にするのだけど、「あれは皆さんどうしているのだろうか？」と思い調べてみたら、wordpressのプラグインがありました。</p>
<h4>参考プラグイン</h4>
<p>SyntaxHighlighter Evolvedというプラグインが使えそう。<br />
ダウンロード先は<a href="http://wordpress.org/plugins/syntaxhighlighter/" target="_blank">こちら</a>。<br />
プラグインを有効にして、設定のSyntaxHighlighter Evolvedで細かい設定ができる。<br />
現在バージョン3.x と 2.x　から選べるようになってるみたいだけど、3.xは長い行の折り返しができないらしいので、2.xのほうが今のとこ使いやすそう。</p>
<p>使い方は、記事投稿画面でhtmlの時は&#91;html&#93;～&#91;/html&#93;、cssは&#91;css&#93;～&#91;/css&#93;、phpは&#91;php&#93;～&#91;/php&#93;、javascriptは&#91;JavaScript&#93;～&#91;/JavaScript&#93;でそれぞれ囲うだけ。　</p>
]]></content:encoded>
			<wfw:commentRss>http://albastella.co.jp/2014/05/01/%e8%a8%98%e4%ba%8b%e5%86%85%e3%81%ab%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>行く年</title>
		<link>http://albastella.co.jp/2013/12/28/%e8%a1%8c%e3%81%8f%e5%b9%b4/</link>
		<comments>http://albastella.co.jp/2013/12/28/%e8%a1%8c%e3%81%8f%e5%b9%b4/#comments</comments>
		<pubDate>Sat, 28 Dec 2013 02:47:51 +0000</pubDate>
		<dc:creator><![CDATA[albastella]]></dc:creator>
				<category><![CDATA[ブログ]]></category>

		<guid isPermaLink="false">http://sakusei.heteml.jp/afnet/?p=174</guid>
		<description><![CDATA[１２月は、バタバタしておりましたが、何とか仕事納め。 今年一年振り返って、いろいろありました。 いいことも、悪いことも。。。 まぁ、気持ち切り替えて新年からスタートを楽しみにします。 来年は、いい年でありますように]]></description>
				<content:encoded><![CDATA[<div class="post-content">
<p>１２月は、バタバタしておりましたが、何とか仕事納め。</p>
<p>今年一年振り返って、いろいろありました。<br />
いいことも、悪いことも。。。</p>
<p>まぁ、気持ち切り替えて新年からスタートを楽しみにします。</p>
<p>来年は、いい年でありますように</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://albastella.co.jp/2013/12/28/%e8%a1%8c%e3%81%8f%e5%b9%b4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>年末年始お休みのお知らせ</title>
		<link>http://albastella.co.jp/2013/12/27/176/</link>
		<comments>http://albastella.co.jp/2013/12/27/176/#comments</comments>
		<pubDate>Fri, 27 Dec 2013 02:51:50 +0000</pubDate>
		<dc:creator><![CDATA[albastella]]></dc:creator>
				<category><![CDATA[ニュース]]></category>

		<guid isPermaLink="false">http://sakusei.heteml.jp/afnet/?p=176</guid>
		<description><![CDATA[下記の期間お休みをいただきます。 2013/12/28～2014/1/6 ご了承いただけますようよろしくお願いいたします。]]></description>
				<content:encoded><![CDATA[<p>下記の期間お休みをいただきます。<br />
2013/12/28～2014/1/6<br />
ご了承いただけますようよろしくお願いいたします。</p>
]]></content:encoded>
			<wfw:commentRss>http://albastella.co.jp/2013/12/27/176/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
