<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments for Return True	</title>
	<atom:link href="https://return-true.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://return-true.com/</link>
	<description>WordPress Maintenance, Coding Services and providing do-it-yourself tutorials on PHP, Javascript and more.</description>
	<lastBuildDate>Fri, 08 May 2020 12:43:35 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		Comment on Image Uploads Using Laravel 5.4 With VueJS by Sajid Javed		</title>
		<link>https://return-true.com/image-uploads-laravel-5-4-vuejs/comment-page-1/#comment-330491</link>

		<dc:creator><![CDATA[Sajid Javed]]></dc:creator>
		<pubDate>Fri, 08 May 2020 12:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=4464#comment-330491</guid>

					<description><![CDATA[Thanks, Amazing Article.

For Laravel 5 &#038; 6, I suggest this video to all https://youtu.be/KPYpVdTPUeI

Very informative Article.]]></description>
			<content:encoded><![CDATA[<p>Thanks, Amazing Article.</p>
<p>For Laravel 5 &amp; 6, I suggest this video to all <a href="https://youtu.be/KPYpVdTPUeI" rel="nofollow ugc">https://youtu.be/KPYpVdTPUeI</a></p>
<p>Very informative Article.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Creating A Custom Page With WordPress Endpoints by Charan		</title>
		<link>https://return-true.com/creating-a-custom-page-with-wordpress-endpoints/comment-page-1/#comment-330487</link>

		<dc:creator><![CDATA[Charan]]></dc:creator>
		<pubDate>Tue, 11 Feb 2020 13:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=4244#comment-330487</guid>

					<description><![CDATA[How can i create Custome endpoints to the  pages]]></description>
			<content:encoded><![CDATA[<p>How can i create Custome endpoints to the  pages</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Creating A Custom Page With WordPress Endpoints by Paul Robinson		</title>
		<link>https://return-true.com/creating-a-custom-page-with-wordpress-endpoints/comment-page-1/#comment-330485</link>

		<dc:creator><![CDATA[Paul Robinson]]></dc:creator>
		<pubDate>Mon, 20 Jan 2020 10:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=4244#comment-330485</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://return-true.com/creating-a-custom-page-with-wordpress-endpoints/comment-page-1/#comment-330481&quot;&gt;Xaib Aslam&lt;/a&gt;.

Hi Xaib,

Apologies for not replying to you the Holiday season was extremely busy for me and to top it off there was an issue with the service I use for email delivery (to get comment notifications) and I didn&#039;t find out until the New Year.

Just in case you still need an answer, and to help others with the same problem, you would add a custom title by using WordPress&#039; &lt;code&gt;wp_title&lt;/code&gt; filter. Since you&#039;d need to detect the same template in multiple functions it might be a good idea to have a property on your class that holds the template data such as filenames and other data (like the title).

You can then access that variable from both the &lt;code&gt;change_template&lt;/code&gt; function and the function hooked to &lt;code&gt;wp_title&lt;/code&gt;.

Hope that helps.]]></description>
			<content:encoded><![CDATA[<p>Hi Xaib,</p>
<p>Apologies for not replying to you the Holiday season was extremely busy for me and to top it off there was an issue with the service I use for email delivery (to get comment notifications) and I didn&#8217;t find out until the New Year.</p>
<p>Just in case you still need an answer, and to help others with the same problem, you would add a custom title by using WordPress&#8217; <code>wp_title</code> filter. Since you&#8217;d need to detect the same template in multiple functions it might be a good idea to have a property on your class that holds the template data such as filenames and other data (like the title).</p>
<p>You can then access that variable from both the <code>change_template</code> function and the function hooked to <code>wp_title</code>.</p>
<p>Hope that helps.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Creating A Custom Page With WordPress Endpoints by Xaib Aslam		</title>
		<link>https://return-true.com/creating-a-custom-page-with-wordpress-endpoints/comment-page-1/#comment-330482</link>

		<dc:creator><![CDATA[Xaib Aslam]]></dc:creator>
		<pubDate>Wed, 27 Nov 2019 10:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=4244#comment-330482</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://return-true.com/creating-a-custom-page-with-wordpress-endpoints/comment-page-1/#comment-330481&quot;&gt;Xaib Aslam&lt;/a&gt;.

I got your code but I want to know how I can give title for the custom template, its using parent post title. How I can use my own title for the template?]]></description>
			<content:encoded><![CDATA[<p>I got your code but I want to know how I can give title for the custom template, its using parent post title. How I can use my own title for the template?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Creating A Custom Page With WordPress Endpoints by Xaib Aslam		</title>
		<link>https://return-true.com/creating-a-custom-page-with-wordpress-endpoints/comment-page-1/#comment-330481</link>

		<dc:creator><![CDATA[Xaib Aslam]]></dc:creator>
		<pubDate>Wed, 27 Nov 2019 09:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=4244#comment-330481</guid>

					<description><![CDATA[Finally, I found it and its really awesome. Can you help me with this, If I have more than 1 template then what to do?]]></description>
			<content:encoded><![CDATA[<p>Finally, I found it and its really awesome. Can you help me with this, If I have more than 1 template then what to do?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Using RaphaelJS To Create A Map by Paul Robinson		</title>
		<link>https://return-true.com/using-raphaeljs-to-create-a-map/comment-page-3/#comment-330466</link>

		<dc:creator><![CDATA[Paul Robinson]]></dc:creator>
		<pubDate>Tue, 15 Oct 2019 15:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=2685#comment-330466</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://return-true.com/using-raphaeljs-to-create-a-map/comment-page-3/#comment-330465&quot;&gt;Ravindra Gaikwad&lt;/a&gt;.

Hi,

That&#039;s a complex question, but the general steps would be the same. The trickiest part would be to find the map. If there isn&#039;t a map available that is already split up in the way you&#039;d like you&#039;d need to grab a map of the USA and then use an vector editing program like Inkscape (or Illustrator) to add in the regions manually.

The rest of the code should be similar if not the same since the paths your take from the SVG determine what is drawn.

Hope that helps a little.]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>That&#8217;s a complex question, but the general steps would be the same. The trickiest part would be to find the map. If there isn&#8217;t a map available that is already split up in the way you&#8217;d like you&#8217;d need to grab a map of the USA and then use an vector editing program like Inkscape (or Illustrator) to add in the regions manually.</p>
<p>The rest of the code should be similar if not the same since the paths your take from the SVG determine what is drawn.</p>
<p>Hope that helps a little.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Using RaphaelJS To Create A Map by Ravindra Gaikwad		</title>
		<link>https://return-true.com/using-raphaeljs-to-create-a-map/comment-page-3/#comment-330465</link>

		<dc:creator><![CDATA[Ravindra Gaikwad]]></dc:creator>
		<pubDate>Tue, 15 Oct 2019 14:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=2685#comment-330465</guid>

					<description><![CDATA[Hi Paul,

I am trying to implement a USA map showing regions like - north east, south east, middle atlantic, moutain, pacific etc instead of individual states. Can you please let me know how can this be achieved? Appreciate your help. Thanks.]]></description>
			<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>I am trying to implement a USA map showing regions like &#8211; north east, south east, middle atlantic, moutain, pacific etc instead of individual states. Can you please let me know how can this be achieved? Appreciate your help. Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Using Nginx FastCGI Cache With WordPress by Kyriakos		</title>
		<link>https://return-true.com/using-nginx-fastcgi-cache-with-wordpress/comment-page-1/#comment-330463</link>

		<dc:creator><![CDATA[Kyriakos]]></dc:creator>
		<pubDate>Tue, 01 Oct 2019 13:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=4656#comment-330463</guid>

					<description><![CDATA[I enabled your setup at a huge WooCommerce store. Before that, it was using Varnish with Apache, and it was too slow! Esp, the product listing and the checkout process.

Thanks a lot!]]></description>
			<content:encoded><![CDATA[<p>I enabled your setup at a huge WooCommerce store. Before that, it was using Varnish with Apache, and it was too slow! Esp, the product listing and the checkout process.</p>
<p>Thanks a lot!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Adding Content To Yoast SEO Analysis Using YoastSEOJS by Paul Robinson		</title>
		<link>https://return-true.com/adding-content-to-yoast-seo-analysis-using-yoastseojs/comment-page-1/#comment-330452</link>

		<dc:creator><![CDATA[Paul Robinson]]></dc:creator>
		<pubDate>Thu, 18 Jul 2019 23:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=4375#comment-330452</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://return-true.com/adding-content-to-yoast-seo-analysis-using-yoastseojs/comment-page-1/#comment-330451&quot;&gt;kallym&lt;/a&gt;.

Hi KallyM,

I&#039;m afraid I can&#039;t see any issues there. As you&#039;ve said this is quite old and I&#039;m afraid my work hasn&#039;t required me to do any extending to Yoast recently so I&#039;m not 100% up-to-date on if anything has changed.

I will take a look as soon as I can and get back to you, but unfortunately I&#039;m on vacation next week so I may not be as quick as might be needed.]]></description>
			<content:encoded><![CDATA[<p>Hi KallyM,</p>
<p>I&#8217;m afraid I can&#8217;t see any issues there. As you&#8217;ve said this is quite old and I&#8217;m afraid my work hasn&#8217;t required me to do any extending to Yoast recently so I&#8217;m not 100% up-to-date on if anything has changed.</p>
<p>I will take a look as soon as I can and get back to you, but unfortunately I&#8217;m on vacation next week so I may not be as quick as might be needed.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Adding Content To Yoast SEO Analysis Using YoastSEOJS by kallym		</title>
		<link>https://return-true.com/adding-content-to-yoast-seo-analysis-using-yoastseojs/comment-page-1/#comment-330451</link>

		<dc:creator><![CDATA[kallym]]></dc:creator>
		<pubDate>Thu, 18 Jul 2019 20:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://46.101.31.193/?p=4375#comment-330451</guid>

					<description><![CDATA[I am so glad to read that this code still works for othersin 2019. I am trying to get Yoast Readability to see my CPT fields, and have modified your code using the code in the comments as well so came up with the following, but it is not working - Yoast still sees 0 text.

I used your first bit of code to load the .js file only on the admin page for that post type. The file is loading fine on my:
&lt;pre class=&quot;lang:php decode:true&quot;&gt;function my_yoast_enqueue_scripts() {
    if ( is_admin() ) {
	$current_screen = get_current_screen();	
	if( $current_screen -&#062;post_type === &quot;sites&quot; ) {	
	wp_enqueue_script(&#039;yoastseoscript&#039;, get_stylesheet_directory_uri() . &#039;/js/sites-yoastSeo.js&#039;, array(&#039;yoast-seo-admin-script&#039;)); }
}
}
add_action(&#039;admin_enqueue_scripts&#039;, &#039;my_yoast_enqueue_scripts&#039;);&lt;/pre&gt;

But, I don&#039;t seem to have the code in the .JS file right. I am weak on JS /jquery, so have a hard time troubleshooting.  I have had problems in the past with (function ($) so I changed that, but still not working. I don&#039;t have any text fields so left that line in, but empty.

Do you see any obvious problems with this code? Thank You!

&lt;pre class=&quot;lang:php decode:true&quot;&gt;
jQuery(document).ready(function( $ ) {
 
    var MyYoastPlugin = function()  {
       YoastSEO.app.registerPlugin(&#039;myYoastPlugin&#039;, {status: &#039;loading&#039;}); 
        this.getData();
    };
 
    MyYoastPlugin.prototype.getData = function()
    { 
        var _self = this,       
 		$text = &#039;&#039;;
        _self.custom_content = $text.val();
 
        YoastSEO.app.pluginReady(&#039;myYoastPlugin&#039;); 
        YoastSEO.app.registerModification(&#039;content&#039;, $.proxy(_self.getCustomContent, _self), &#039;myYoastPlugin&#039;, 5); 
    };
 
    MyYoastPlugin.prototype.getCustomContent = function (content)
    {      
	var mycontent =&#039;&#039;;
	mycontent = tinymce.editors[&#039;ecpt_about&#039;].getContent() 
  + tinymce.editors[&#039;ecpt_howtogetthere&#039;].getContent() 
 + tinymce.editors[&#039;ecpt_wheretostay&#039;].getContent()
  +  tinymce.editors[&#039;ecpt_bottomcontent&#039;].getContent()
  + content;  
  return mycontent;
};  
    $(window).on(&#039;YoastSEO:ready&#039;, function ()
    {
      new MyYoastPlugin();
    });
});
&lt;/pre&gt;

&lt;strong&gt;Admin Note:&lt;/strong&gt; Adjusted code blocks to use Crayon Syntax Highlighting.]]></description>
			<content:encoded><![CDATA[<p>I am so glad to read that this code still works for othersin 2019. I am trying to get Yoast Readability to see my CPT fields, and have modified your code using the code in the comments as well so came up with the following, but it is not working &#8211; Yoast still sees 0 text.</p>
<p>I used your first bit of code to load the .js file only on the admin page for that post type. The file is loading fine on my:</p><!-- Urvanov Syntax Highlighter v2.9.1 -->

		<div id="urvanov-syntax-highlighter-6a1ba28b8119e142376304" class="urvanov-syntax-highlighter-syntax crayon-theme-classic urvanov-syntax-highlighter-font-monaco urvanov-syntax-highlighter-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
		
			<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><span class="crayon-title"></span>
			<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button urvanov-syntax-highlighter-nums-button" title="Toggle Line Numbers"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-plain-button" title="Toggle Plain Code"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-wrap-button" title="Toggle Line Wrap"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-expand-button" title="Expand Code"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-copy-button" title="Copy"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-popup-button" title="Open Code In New Window"><div class="urvanov-syntax-highlighter-button-icon"></div></div><span class="crayon-language">PHP</span></div></div>
			<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
			<div class="urvanov-syntax-highlighter-plain-wrap"><textarea wrap="soft" class="urvanov-syntax-highlighter-plain print-no" data-settings="dblclick" readonly style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;">
function my_yoast_enqueue_scripts() {
    if ( is_admin() ) {
	$current_screen = get_current_screen();	
	if( $current_screen -&gt;post_type === "sites" ) {	
	wp_enqueue_script('yoastseoscript', get_stylesheet_directory_uri() . '/js/sites-yoastSeo.js', array('yoast-seo-admin-script')); }
}
}
add_action('admin_enqueue_scripts', 'my_yoast_enqueue_scripts');</textarea></div>
			<div class="urvanov-syntax-highlighter-main" style="">
				<table class="crayon-table">
					<tr class="urvanov-syntax-highlighter-row">
				<td class="crayon-nums " data-settings="show">
					<div class="urvanov-syntax-highlighter-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-1">1</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-2">2</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-3">3</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-4">4</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-5">5</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-6">6</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-7">7</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b8119e142376304-8">8</div></div>
				</td>
						<td class="urvanov-syntax-highlighter-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-1"><span class="crayon-t">function</span><span class="crayon-h"> </span><span class="crayon-e">my_yoast_enqueue_scripts</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">{</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-2"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-st">if</span><span class="crayon-h"> </span><span class="crayon-sy">(</span><span class="crayon-h"> </span><span class="crayon-e">is_admin</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">{</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-3"><span class="crayon-h">	</span><span class="crayon-v">$current_screen</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-e">get_current_screen</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span><span class="crayon-h">	</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-4"><span class="crayon-h">	</span><span class="crayon-st">if</span><span class="crayon-sy">(</span><span class="crayon-h"> </span><span class="crayon-v">$current_screen</span><span class="crayon-h"> </span><span class="crayon-o">-&gt;</span><span class="crayon-i">post_type</span><span class="crayon-h"> </span><span class="crayon-o">===</span><span class="crayon-h"> </span><span class="crayon-s">"sites"</span><span class="crayon-h"> </span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">{</span><span class="crayon-h">	</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-5"><span class="crayon-h">	</span><span class="crayon-e">wp_enqueue_script</span><span class="crayon-sy">(</span><span class="crayon-s">'yoastseoscript'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-e">get_stylesheet_directory_uri</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">.</span><span class="crayon-h"> </span><span class="crayon-s">'/js/sites-yoastSeo.js'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-t">array</span><span class="crayon-sy">(</span><span class="crayon-s">'yoast-seo-admin-script'</span><span class="crayon-sy">)</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span><span class="crayon-h"> </span><span class="crayon-sy">}</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-6"><span class="crayon-sy">}</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-7"><span class="crayon-sy">}</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b8119e142376304-8"><span class="crayon-e">add_action</span><span class="crayon-sy">(</span><span class="crayon-s">'admin_enqueue_scripts'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-s">'my_yoast_enqueue_scripts'</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div></div></td>
					</tr>
				</table>
			</div>
		</div>
<!-- [Format Time: 0.0007 seconds] -->
<p></p>
<p>But, I don&#8217;t seem to have the code in the .JS file right. I am weak on JS /jquery, so have a hard time troubleshooting.  I have had problems in the past with (function ($) so I changed that, but still not working. I don&#8217;t have any text fields so left that line in, but empty.</p>
<p>Do you see any obvious problems with this code? Thank You!</p>
<p></p><!-- Urvanov Syntax Highlighter v2.9.1 -->

		<div id="urvanov-syntax-highlighter-6a1ba28b811a2954924369" class="urvanov-syntax-highlighter-syntax crayon-theme-classic urvanov-syntax-highlighter-font-monaco urvanov-syntax-highlighter-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
		
			<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><span class="crayon-title"></span>
			<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button urvanov-syntax-highlighter-nums-button" title="Toggle Line Numbers"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-plain-button" title="Toggle Plain Code"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-wrap-button" title="Toggle Line Wrap"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-expand-button" title="Expand Code"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-copy-button" title="Copy"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-popup-button" title="Open Code In New Window"><div class="urvanov-syntax-highlighter-button-icon"></div></div><span class="crayon-language">PHP</span></div></div>
			<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
			<div class="urvanov-syntax-highlighter-plain-wrap"><textarea wrap="soft" class="urvanov-syntax-highlighter-plain print-no" data-settings="dblclick" readonly style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;">
jQuery(document).ready(function( $ ) {
 
    var MyYoastPlugin = function()  {
       YoastSEO.app.registerPlugin('myYoastPlugin', {status: 'loading'}); 
        this.getData();
    };
 
    MyYoastPlugin.prototype.getData = function()
    { 
        var _self = this,       
 		$text = '';
        _self.custom_content = $text.val();
 
        YoastSEO.app.pluginReady('myYoastPlugin'); 
        YoastSEO.app.registerModification('content', $.proxy(_self.getCustomContent, _self), 'myYoastPlugin', 5); 
    };
 
    MyYoastPlugin.prototype.getCustomContent = function (content)
    {      
	var mycontent ='';
	mycontent = tinymce.editors['ecpt_about'].getContent() 
  + tinymce.editors['ecpt_howtogetthere'].getContent() 
 + tinymce.editors['ecpt_wheretostay'].getContent()
  +  tinymce.editors['ecpt_bottomcontent'].getContent()
  + content;  
  return mycontent;
};  
    $(window).on('YoastSEO:ready', function ()
    {
      new MyYoastPlugin();
    });
});</textarea></div>
			<div class="urvanov-syntax-highlighter-main" style="">
				<table class="crayon-table">
					<tr class="urvanov-syntax-highlighter-row">
				<td class="crayon-nums " data-settings="show">
					<div class="urvanov-syntax-highlighter-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-1">1</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-2">2</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-3">3</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-4">4</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-5">5</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-6">6</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-7">7</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-8">8</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-9">9</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-10">10</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-11">11</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-12">12</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-13">13</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-14">14</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-15">15</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-16">16</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-17">17</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-18">18</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-19">19</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-20">20</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-21">21</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-22">22</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-23">23</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-24">24</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-25">25</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-26">26</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-27">27</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-28">28</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-29">29</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-30">30</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-31">31</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-6a1ba28b811a2954924369-32">32</div></div>
				</td>
						<td class="urvanov-syntax-highlighter-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-1"><span class="crayon-e">jQuery</span><span class="crayon-sy">(</span><span class="crayon-i">document</span><span class="crayon-sy">)</span><span class="crayon-sy">.</span><span class="crayon-e">ready</span><span class="crayon-sy">(</span><span class="crayon-t">function</span><span class="crayon-sy">(</span><span class="crayon-h"> </span><span class="crayon-sy">$</span><span class="crayon-h"> </span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">{</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-2"><span class="crayon-h"> </span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-3"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-t">var</span><span class="crayon-h"> </span><span class="crayon-i">MyYoastPlugin</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-t">function</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h">&nbsp;&nbsp;</span><span class="crayon-sy">{</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-4"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="crayon-i">YoastSEO</span><span class="crayon-sy">.</span><span class="crayon-i">app</span><span class="crayon-sy">.</span><span class="crayon-e">registerPlugin</span><span class="crayon-sy">(</span><span class="crayon-s">'myYoastPlugin'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-sy">{</span><span class="crayon-i">status</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-s">'loading'</span><span class="crayon-sy">}</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span><span class="crayon-h"> </span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-5"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-r">this</span><span class="crayon-sy">.</span><span class="crayon-e">getData</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-6"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-sy">}</span><span class="crayon-sy">;</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-7"><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-8"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-i">MyYoastPlugin</span><span class="crayon-sy">.</span><span class="crayon-i">prototype</span><span class="crayon-sy">.</span><span class="crayon-i">getData</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-t">function</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-9"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-sy">{</span><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-10"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-t">var</span><span class="crayon-h"> </span><span class="crayon-i">_self</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-r">this</span><span class="crayon-sy">,</span><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-11"><span class="crayon-h"> 		</span><span class="crayon-v">$text</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-s">''</span><span class="crayon-sy">;</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-12"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-i">_self</span><span class="crayon-sy">.</span><span class="crayon-i">custom_content</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-v">$text</span><span class="crayon-sy">.</span><span class="crayon-e">val</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-13"><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-14"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-i">YoastSEO</span><span class="crayon-sy">.</span><span class="crayon-i">app</span><span class="crayon-sy">.</span><span class="crayon-e">pluginReady</span><span class="crayon-sy">(</span><span class="crayon-s">'myYoastPlugin'</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span><span class="crayon-h"> </span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-15"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-i">YoastSEO</span><span class="crayon-sy">.</span><span class="crayon-i">app</span><span class="crayon-sy">.</span><span class="crayon-e">registerModification</span><span class="crayon-sy">(</span><span class="crayon-s">'content'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-sy">$</span><span class="crayon-sy">.</span><span class="crayon-e">proxy</span><span class="crayon-sy">(</span><span class="crayon-i">_self</span><span class="crayon-sy">.</span><span class="crayon-i">getCustomContent</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-i">_self</span><span class="crayon-sy">)</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-s">'myYoastPlugin'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-cn">5</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-16"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-sy">}</span><span class="crayon-sy">;</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-17"><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-18"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-i">MyYoastPlugin</span><span class="crayon-sy">.</span><span class="crayon-i">prototype</span><span class="crayon-sy">.</span><span class="crayon-i">getCustomContent</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-t">function</span><span class="crayon-h"> </span><span class="crayon-sy">(</span><span class="crayon-i">content</span><span class="crayon-sy">)</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-19"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-sy">{</span><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-20"><span class="crayon-h">	</span><span class="crayon-t">var</span><span class="crayon-h"> </span><span class="crayon-i">mycontent</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-s">''</span><span class="crayon-sy">;</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-21"><span class="crayon-h">	</span><span class="crayon-i">mycontent</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-i">tinymce</span><span class="crayon-sy">.</span><span class="crayon-i">editors</span><span class="crayon-sy">[</span><span class="crayon-s">'ecpt_about'</span><span class="crayon-sy">]</span><span class="crayon-sy">.</span><span class="crayon-e">getContent</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-22"><span class="crayon-h">&nbsp;&nbsp;</span><span class="crayon-o">+</span><span class="crayon-h"> </span><span class="crayon-i">tinymce</span><span class="crayon-sy">.</span><span class="crayon-i">editors</span><span class="crayon-sy">[</span><span class="crayon-s">'ecpt_howtogetthere'</span><span class="crayon-sy">]</span><span class="crayon-sy">.</span><span class="crayon-e">getContent</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-23"><span class="crayon-h"> </span><span class="crayon-o">+</span><span class="crayon-h"> </span><span class="crayon-i">tinymce</span><span class="crayon-sy">.</span><span class="crayon-i">editors</span><span class="crayon-sy">[</span><span class="crayon-s">'ecpt_wheretostay'</span><span class="crayon-sy">]</span><span class="crayon-sy">.</span><span class="crayon-e">getContent</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-24"><span class="crayon-h">&nbsp;&nbsp;</span><span class="crayon-o">+</span><span class="crayon-h">&nbsp;&nbsp;</span><span class="crayon-i">tinymce</span><span class="crayon-sy">.</span><span class="crayon-i">editors</span><span class="crayon-sy">[</span><span class="crayon-s">'ecpt_bottomcontent'</span><span class="crayon-sy">]</span><span class="crayon-sy">.</span><span class="crayon-e">getContent</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-25"><span class="crayon-h">&nbsp;&nbsp;</span><span class="crayon-o">+</span><span class="crayon-h"> </span><span class="crayon-i">content</span><span class="crayon-sy">;</span><span class="crayon-h">&nbsp;&nbsp;</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-26"><span class="crayon-h">&nbsp;&nbsp;</span><span class="crayon-k ">return</span><span class="crayon-h"> </span><span class="crayon-i">mycontent</span><span class="crayon-sy">;</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-27"><span class="crayon-sy">}</span><span class="crayon-sy">;</span><span class="crayon-h">&nbsp;&nbsp;</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-28"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-sy">$</span><span class="crayon-sy">(</span><span class="crayon-i">window</span><span class="crayon-sy">)</span><span class="crayon-sy">.</span><span class="crayon-e">on</span><span class="crayon-sy">(</span><span class="crayon-s">'YoastSEO:ready'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-t">function</span><span class="crayon-h"> </span><span class="crayon-sy">(</span><span class="crayon-sy">)</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-29"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-sy">{</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-30"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-r">new</span><span class="crayon-h"> </span><span class="crayon-e">MyYoastPlugin</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-31"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-sy">}</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-6a1ba28b811a2954924369-32"><span class="crayon-sy">}</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div></div></td>
					</tr>
				</table>
			</div>
		</div>
<!-- [Format Time: 0.0031 seconds] -->
<p></p>
<p><strong>Admin Note:</strong> Adjusted code blocks to use Crayon Syntax Highlighting.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
