function printitem($title, $link, $mediaimage, $style, $searchurl = "") { global $fontsize, $scriptfile, $defaultfanart; $output = "<item>\n"; $output .= "<title>{$title}</title>\n"; $output .= '<link>' . $link . "</link>\n"; $output .= getItemThumbnail($mediaimage); $output .= $style(); //$output.= submenu( "Original skin backup", $scriptfile.'?backup=true', 'photoView23' ); $output .= "\n</item>\n\n"; echo $output; }
function printitem($title, $link, $mediaimage, $searchurl = "") { global $fontsize, $scriptfile, $defaultfanart; $output = "<item>\n"; $output .= "<title>{$title}</title>\n"; $output .= '<link>' . $link . "</link>\n"; $output .= getItemThumbnail($mediaimage); $output .= $searchurl == "" ? '' : '<search url="' . $searchurl . '" />' . "\n"; $output .= '<mediaDisplay name="photoView" width="200" fontSize="' . $fontsize . '" rowCount="2" columnCount="7" menuBorderColor="20:20:20" menuOffsetYPC="8" menuOffsetXPC="8" menuWidthPC="100" rollItems="no" drawItemText="no" sideColorBottom="0:0:0" sideColorTop="0:0:0" sideColorLeft="0:0:0" sideColorRight="0:0:0" itemImageXPC="10" itemImageYPC="0" itemOffsetXPC="7" itemOffsetYPC="20" backgroundColor="0:0:0" itemBorderColor="0:255:180" ' . ' sliding="no" idleImageXPC="45" idleImageYPC="42" idleImageWidthPC="7" idleImageHeightPC="16" > <idleImage> image/POPUP_LOADING_01.jpg </idleImage> <idleImage> image/POPUP_LOADING_02.jpg </idleImage> <idleImage> image/POPUP_LOADING_03.jpg </idleImage> <idleImage> image/POPUP_LOADING_04.jpg </idleImage> <idleImage> image/POPUP_LOADING_05.jpg </idleImage> <idleImage> image/POPUP_LOADING_06.jpg </idleImage> </mediaDisplay> '; if ($searchurl == "" && $firstletter == "") { $output .= ' <submenu name="Main Menu" description="Go to Main Browser Menu" width="200"> <title>Movie Browser</title> <link>http://127.0.0.1/media/sda1/scripts/browse_movies.php</link> ' . getItemThumbnail("http://xtreamer-web-sdk.googlecode.com/svn/trunk/rss/scripts/image/moviewall.jpg") . ' <mediaDisplay name="photoView" rowCount="8" columnCount="4" itemBorderColor="0:255:180" drawItemText="yes" menuBorderColor="20:20:20" sideColorBottom="20:20:20" sideColorTop="20:20:20" itemImageXPC="10" itemOffsetXPC="7" backgroundColor="0:0:0" idleImageXPC="45" idleImageYPC="42" idleImageWidthPC="7" idleImageHeightPC="16" > <idleImage> image/POPUP_LOADING_01.jpg </idleImage> <idleImage> image/POPUP_LOADING_02.jpg </idleImage> <idleImage> image/POPUP_LOADING_03.jpg </idleImage> <idleImage> image/POPUP_LOADING_04.jpg </idleImage> <idleImage> image/POPUP_LOADING_05.jpg </idleImage> <idleImage> image/POPUP_LOADING_06.jpg </idleImage> </mediaDisplay> </submenu> <submenu name="view showcase" description="showcase demo" width="200"> <title>' . $title . '</title> <link>' . $link . '</link> <mediaDisplay name="photoFocusView" imageTopSide="' . $defaultfanart . '" imageFocus="null" imageParentFocus="null" backgroundColor="0:0:0" rowCount="1" columnCount="9" drawItemText="no" fontSize="15" sideTopHeightPC="100" sideColorTop="0:0:0" sideColorBottom="0:0:0" itemOffsetXPC="7" itemOffsetYPC="60" itemWidthPC="8" itemHeightPC="25" itemBorderColor="0:250:180" itemBackgroundWidthPC="0" itemBackgroundHeightPC="0" itemBackgroundColor="0:250:180" itemGapXPC="1" focusItemOffsetYPC="54" focusItemWidthPC="12" focusItemHeightPC="32" focusItemBackgroundWidthPC="12.5" focusItemBackgroundHeightPC="32.5" bottomYPC="88" showHeader="no" capXPC="90" capYPC="22" capHeightPC="10" headerImageWidthPC="0" headerXPC="2" headerYPC="3" headerWidthPC="100" headerCapXPC="90" headerCapYPC="10" headerCapWidthPC="0" menuWidthPC="25" menuXPC="5" showDefaultInfo="yes"/> </submenu> <submenu name="Search Movie" description="Search Movies using keyword" width="200"> <url>' . $scriptfile . '?searchkey=%s</url> <nextPageItemCount>48</nextPageItemCount> <input name="keyword">keyword</input> </submenu> ' . ''; } $output .= "\n</item>\n\n"; echo $output; }