Apis Sejny

Nauji komentarai

Kategorijos

Archyvai

Hey.lt - Interneto reitingai, lankomumo statistika, lankytojų skaitliukai
Paremkite svetainę SMS žinute
Arba rinkdamiesi serveriai.lt paslaugas , pasinaudoję žemiau esančia nuoroda. Padarysit gerą darbą ir dar nuolaidą gausit. hostingas su 10% nuolaida Dedikuoti.lt serveriai Domenai 20 % pigiau

svente








prefix;
$arrayvalue = array();
extract(shortcode_atts(array(
‘id’ => 0,
‘template’ => ”,
‘images’ => false
), $atts ));

$slug_page = $_SERVER['REQUEST_URI'];
$new_value = explode(”/”,$slug_page);
$new_value = array_reverse($new_value);
$full_url = get_bloginfo(’url’).”/”.$new_value[1].”/”;

/*if($new_value[2] == “”)
{
$full_url = get_bloginfo(’url’).”/”.$new_value[1].”/”;
}
else
{
//$full_url = get_bloginfo(’url’).”/”.$new_value[2].”/”.$new_value[1].”/”;
echo $full_url = get_bloginfo(’url’).”/”.$new_value[2].”/”;
}*/
/*$page = (int) (!isset($_GET["page"]) ? 1 : $_GET["page"]);
$page = ($page == 0 ? 1 : $page);*/
$page_value = get_option(’combo_front_end_data’);
$gallery_result = $wpdb->get_results(”SELECT * FROM `”.$table_prefix.”combo_gallery` WHERE gallery_id = “.$id);
$select_query = “”;
$select_query .= “SELECT * FROM `”.$table_prefix.”combo_image` WHERE gallery_id = ‘”.$id.”‘ “;
if($page_value['sort_thumbnails'] == ‘Date/Time’)
{
$select_query .= “ORDER BY date “;
}
else if($page_value['sort_thumbnails'] == ‘Image ID’)
{
$select_query .= “ORDER BY image_id “;
}
else
{
$select_query .= “ORDER BY original_name “;
}
if($page_value['sort_direction'] == ‘Ascending’)
{
$select_query .= “ASC “;
}
else
{
$select_query .= “DESC “;
}
/*if($page_value['img_per_page'] == 0)
{
$select_query .= “”;
}
else
{
$perpage = $page_value['img_per_page'];//limit in each page
$startpoint = ($page * $perpage) – $perpage;
$select_query .= “LIMIT $startpoint,$perpage”;
}*/

$result = $wpdb->get_results($select_query);
$combo_gallery_content = ”;
$combo_gallery_content .= ‘

‘;
$combo_gallery_content .= ‘

" href="'.WP_PLUGIN_URL.'/image-gallery-with-slideshow/uploads/original/'.$combo_gallery_name.'">'; 				if($combo_gallery_title != '') 				{ 					$combo_gallery_content .= strtolower($combo_gallery_title); 				} 				else 				{ 					$combo_gallery_content .= strtolower($combo_gallery_name); 				}  				 				$combo_gallery_content .='‘;

}
$combo_gallery_content .= ‘

‘;

return $combo_gallery_content;

}
/***** End to show gallery images with shortcode

*****/
/***** Start to show gallery slideshow with shortcode
1418820798_img_3939.jpg
1418820813_img_3939.jpg
1418821900_img_3939.jpg
1418820798_img_3939.jpg1418820813_img_3939.jpg1418821900_img_3939.jpg
*****/
function combo_slide_show($atts)
{
global $wpdb;
$table_prefix = $wpdb->prefix;
$arrayvalue = array();
extract(shortcode_atts(array(
‘id’ => 0,
‘template’ => ”,
‘images’ => false
), $atts ));
$option_slide_data = get_option(’combo_front_end_slide_data’);
$slider_result = $wpdb->get_results(”SELECT * FROM `”.$table_prefix.”combo_image` WHERE gallery_id = “.$id);
?>

$slideshow_content = ”;
$slideshow_content .=’

‘;
$slideshow_content .=’

‘;
$slideshow_content .=’

‘;
$slideshow_content .=’

‘;

$slider_count = 1;
foreach($slider_result as $value)
{
$slideshow_content .=’

‘;
$slideshow_content .=’

‘;
if($value->link_url != “”)
{
$slideshow_content .=’‘;
}
$slideshow_content .=’';<br /> 					if($value->image_title != '')<br /> 					{<br /> 						$slideshow_content .= strtolower($value->image_title);<br /> 					}<br /> 					else<br /> 					{<br /> 						$slideshow_content .= strtolower($value->image_name);<br /> 					}<br /> 						$slideshow_content .='‘;
if($value->link_url != “”)
{
$slideshow_content .= ‘
‘;
}
if($value->image_title != “” || $value->image_description !=”")
{
$slideshow_content .=’

‘;
}

$slideshow_content .= ‘

‘;
$slider_count++;
}

$slideshow_content .=’

‘;
$slideshow_content .=’

$slider_count = 1;
foreach($slider_result as $value)
{
$slideshow_content .= ‘';<br /> 		if($value->image_title != '')<br /> 		{<br /> 		$slideshow_content .= strtolower($value->image_title);<br /> 		}<br /> 		else<br /> 		{<br /> 		$slideshow_content .= strtolower($value->image_name);<br /> 		}<br /> 		$slideshow_content .='‘;
$slider_count++;
}

$slideshow_content .= ‘

‘;
/***** end of #page-wrap ******/
return $slideshow_content;
}
/***** End to show gallery slideshow with shortcode

1418820798_img_3939.jpg
1418820813_img_3939.jpg
1418821900_img_3939.jpg
1418820798_img_3939.jpg1418820813_img_3939.jpg1418821900_img_3939.jpg
*****/
?>

Komentuoti