} else {
        $order = $index + 1;
    }
    $urlImageForView = $slide->getUrlImageThumb();
    $slideTitle = $slide->getParam("title", "Slide");
    $title = $slideTitle;
    $filename = $slide->getImageFilename();
    $imageAlt = stripslashes($slideTitle);
    if (empty($imageAlt)) {
        $imageAlt = "slide";
    }
    if ($bgType == "image" && !empty($filename)) {
        $title .= " ({$filename})";
    }
    $postID = $slide->getID();
    $urlEditSlide = UniteFunctionsWPBiz::getUrlEditPost($postID);
    $linkEdit = UniteFunctionsBiz::getHtmlLink($urlEditSlide, $title, "", "", true);
    $state = $slide->getParam("state", "published");
    ?>
					<li id="slidelist_item_<?php 
    echo $postID;
    ?>
" class="ui-state-default">
					
						<span class="slide-col col-order">
							<span class="order-text"><?php 
    echo $order;
    ?>
</span>
							<div class="state_loader" style="display:none;"></div>
							<?php