get_results($sql); foreach($persons as $person) { $html .= '
'; if($person->image != '') { $html .= '
'; $html .= ''; $html .= '
'; } $html .= '
'; if(get_locale() == 'fi') { $html .= '

' . $person->title . '

'; } else { $html .= '

' . $person->title_en . '

'; } $html .= '
' . $person->firstname . ' ' . $person->lastname . '
'; $html .= '
' . $person->phone . '
'; $html .= '
'; /* echo $person->id . '
'; echo $person->firstname . '
'; echo $person->lastname . '
'; echo $person->title . '
'; echo $person->phone . '
'; echo $person->image . '
'; */ $html .= '
'; } //print_r($person); // $db->query( $sql ); /* foreach( $db->result as $k => $v ) { print_r($k); print_r($v); } */ // return $html; //return 'test id: ' . $id; // } return $html; } return $html; } function henkilot_enqueued_assets() { // wp_enqueue_script( 'script-psoas-henkilot', plugin_dir_url( __FILE__ ) . 'js/psoas-henkilot.js', array( 'jquery' ), '1.0', true ); wp_enqueue_style('style-psoas-henkilot', plugin_dir_url( __FILE__ ) . 'css/psoas-henkilot.css'); } add_shortcode('henkilo', 'psoas_henkilo'); add_action( 'wp_enqueue_scripts', 'henkilot_enqueued_assets' ); ?> 'Alppila', // 2 => 'Dorms of exchange students', 3 => 'Höyhtyä', 4 => 'Kaijonharju', 5 => 'Keskusta', 6 => 'Linnanmaa', 7 => 'Peltola', 13 => 'Peltola, Kurkelantie 8', 8 => 'Rajakylä', 9 => 'Raksila - Välkkylä', 10 => 'Syynimaa', 11 => 'Toivoniemi', 12 => 'Toppila', 14 => 'Virkakatu 3', 15 => 'Virkakatu 5 & 8' ); // if(isset($_REQUEST['mode') && $_REQUEST['mode'] == 'test') { $html = '
'; if(ICL_LANGUAGE_CODE == 'en') { $html .= '

Check the recycling possibilities of your property here!

'; } else { $html .= '

Tarkista kiinteistösi kierrätysmahdollisuudet tästä!

'; } $html .= ''; $html .= file_get_contents(plugin_dir_path( __FILE__ ) . '/layouts/'. ICL_LANGUAGE_CODE . '-jatteet.html'); $html .= '
'; return $html; // } } function jatehuolto_lajittelu_info() { $info = file_get_contents(plugin_dir_path( __FILE__ ) . '/layouts/'. ICL_LANGUAGE_CODE . '-info.html'); $path = plugins_url() . '/psoas_lajittelu/'; $info = str_replace('{PATH}', $path, $info); return $info; } function my_enqueued_assets() { wp_enqueue_script( 'script-psoas-lajittelu', plugin_dir_url( __FILE__ ) . 'js/psoas-lajittelu.js', array( 'jquery' ), '1.0', true ); wp_enqueue_style('style-psoas-lajittelu', plugin_dir_url( __FILE__ ) . 'css/psoas-lajittelu.css'); } add_shortcode('jatehuolto_lajittelu_valikko', 'jatehuolto_lajittelu_valikko'); add_shortcode('jatehuolto_lajittelu_info', 'jatehuolto_lajittelu_info'); add_action( 'wp_enqueue_scripts', 'my_enqueued_assets' ); ?> 1.0PSOAShttp://ww2.psoas.fiPerttuhttp://ww2.psoas.fi/author/perttu/Etusivurich600338<blockquote class="wp-embedded-content"><a href="http://ww2.psoas.fi/">Etusivu</a></blockquote> <script type='text/javascript'> <!--//--><![CDATA[//><!-- !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,a,i,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c<n.length;c++)n[c].style.display="none";for(c=0;c<s.length;c++)if(r=s[c],e.source===r.contentWindow){if(r.removeAttribute("style"),"height"===t.message){if(1e3<(i=parseInt(t.value,10)))i=1e3;else if(~~i<200)i=200;r.height=i}if("link"===t.message)if(a=l.createElement("a"),i=l.createElement("a"),a.href=r.getAttribute("src"),i.href=t.value,o.test(i.protocol))if(i.host===a.host)if(l.activeElement===r)d.top.location.href=t.value}}},e)d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",t,!1),d.addEventListener("load",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf("MSIE 10"),a=!!navigator.userAgent.match(/Trident.*rv:11\./),i=l.querySelectorAll("iframe.wp-embedded-content"),s=0;s<i.length;s++){if(!(e=i[s]).getAttribute("data-secret"))t=Math.random().toString(36).substr(2,10),e.src+="#?secret="+t,e.setAttribute("data-secret",t);if(r||a)(t=e.cloneNode(!0)).removeAttribute("security"),e.parentNode.replaceChild(t,e)}}}}(window,document); //--><!]]> </script><iframe sandbox="allow-scripts" security="restricted" src="http://ww2.psoas.fi/embed/" width="600" height="338" title="”Etusivu” — PSOAS" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>http://ww2.psoas.fi/wp/wp-content/uploads/2013/05/banneri-tiesitko.jpg600218