| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770 |
- <?php
- /**
- * The XSL used to style sitemaps is essentially a bunch of
- * static strings. This class handles the construction of
- * those strings.
- *
- * @package Jetpack
- * @since 4.8.0
- */
- /**
- * Builds the XSL files required by Jetpack_Sitemap_Manager.
- *
- * @since 4.8.0
- */
- class Jetpack_Sitemap_Stylist {
- /**
- * Convert named entities, strip all HTML except anchor tags,
- * and interpolate with vsprintf. This is a helper function
- * for all the internationalized UI strings in this class
- * which have to include URLs.
- *
- * Note that $url_array should be indexed by integers like so:
- *
- * array(
- * 1 => 'example.com',
- * 2 => 'example.org',
- * );
- *
- * Then '%1$s' in the format string will substitute 'example.com'
- * and '%2$s' will substitute 'example.org'.
- *
- * @access private
- * @since 4.8.0
- * @link http://php.net/manual/en/function.vsprintf.php Format string documentation.
- *
- * @param string $format A vsprintf-style format string to be sanitized.
- * @param array $url_array The string substitution array to be passed to vsprintf.
- *
- * @return string The sanitized string.
- */
- private static function sanitize_with_links( $format, $url_array ) {
- return vsprintf(
- wp_kses(
- ent2ncr( $format ),
- array(
- 'a' => array(
- 'href' => true,
- 'title' => true,
- ),
- )
- ),
- $url_array
- );
- }
- /**
- * Returns the xsl of a sitemap xml file as a string.
- *
- * @access public
- * @since 4.8.0
- *
- * @return string The contents of the xsl file.
- */
- public static function sitemap_xsl() {
- $title = esc_html( ent2ncr( __( 'XML Sitemap', 'jetpack' ) ) );
- $header_url = esc_html( ent2ncr( __( 'URL', 'jetpack' ) ) );
- $header_lastmod = esc_html( ent2ncr( __( 'Last Modified', 'jetpack' ) ) );
- $description = self::sanitize_with_links(
- __(
- 'This is an XML Sitemap generated by <a href="%1$s" rel="noopener noreferrer" target="_blank">Jetpack</a>, meant to be consumed by search engines like <a href="%2$s" rel="noopener noreferrer" target="_blank">Google</a> or <a href="%3$s" rel="noopener noreferrer" target="_blank">Bing</a>.',
- 'jetpack'
- ),
- array(
- 1 => 'http://jetpack.com/',
- 2 => 'https://www.google.com/',
- 3 => 'https://www.bing.com/',
- )
- );
- $more_info = self::sanitize_with_links(
- __(
- 'You can find more information on XML sitemaps at <a href="%1$s" rel="noopener noreferrer" target="_blank">sitemaps.org</a>',
- 'jetpack'
- ),
- array(
- 1 => 'http://sitemaps.org',
- )
- );
- $generated_by = self::sanitize_with_links(
- __(
- 'Generated by <a href="%s" rel="noopener noreferrer" target="_blank">Jetpack for WordPress</a>',
- 'jetpack'
- ),
- array(
- 1 => 'https://jetpack.com',
- )
- );
- $css = self::sitemap_xsl_css();
- return <<<XSL
- <?xml version='1.0' encoding='UTF-8'?>
- <xsl:stylesheet version='2.0'
- xmlns:html='http://www.w3.org/TR/REC-html40'
- xmlns:sitemap='http://www.sitemaps.org/schemas/sitemap/0.9'
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
- <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>$title</title>
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
- <style type='text/css'>
- $css
- </style>
- </head>
- <body>
- <div id='description'>
- <h1>$title</h1>
- <p>$description</p>
- <p>$more_info</p>
- </div>
- <div id='content'>
- <!-- <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> -->
- <table>
- <tr>
- <th>#</th>
- <th>$header_url</th>
- <th>$header_lastmod</th>
- </tr>
- <xsl:for-each select="sitemap:urlset/sitemap:url">
- <tr>
- <xsl:choose>
- <xsl:when test='position() mod 2 != 1'>
- <xsl:attribute name="class">odd</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <td>
- <xsl:value-of select = "position()" />
- </td>
- <td>
- <xsl:variable name='itemURL'>
- <xsl:value-of select='sitemap:loc'/>
- </xsl:variable>
- <a href='{\$itemURL}'>
- <xsl:value-of select='sitemap:loc'/>
- </a>
- </td>
- <td>
- <xsl:value-of select='sitemap:lastmod'/>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </div>
- <div id='footer'>
- <p>$generated_by</p>
- </div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>\n
- XSL;
- }
- /**
- * Returns the xsl of a sitemap index xml file as a string.
- *
- * @access public
- * @since 4.8.0
- *
- * @return string The contents of the xsl file.
- */
- public static function sitemap_index_xsl() {
- $title = esc_html( ent2ncr( __( 'XML Sitemap Index', 'jetpack' ) ) );
- $header_url = esc_html( ent2ncr( __( 'Sitemap URL', 'jetpack' ) ) );
- $header_lastmod = esc_html( ent2ncr( __( 'Last Modified', 'jetpack' ) ) );
- $description = self::sanitize_with_links(
- __(
- 'This is an XML Sitemap Index generated by <a href="%1$s" rel="noopener noreferrer" target="_blank">Jetpack</a>, meant to be consumed by search engines like <a href="%2$s" rel="noopener noreferrer" target="_blank">Google</a> or <a href="%3$s" rel="noopener noreferrer" target="_blank">Bing</a>.',
- 'jetpack'
- ),
- array(
- 1 => 'http://jetpack.com/',
- 2 => 'https://www.google.com/',
- 3 => 'https://www.bing.com/',
- )
- );
- $more_info = self::sanitize_with_links(
- __(
- 'You can find more information on XML sitemaps at <a href="%1$s" rel="noopener noreferrer" target="_blank">sitemaps.org</a>',
- 'jetpack'
- ),
- array(
- 1 => 'http://sitemaps.org',
- )
- );
- $generated_by = self::sanitize_with_links(
- __(
- 'Generated by <a href="%s" rel="noopener noreferrer" target="_blank">Jetpack for WordPress</a>',
- 'jetpack'
- ),
- array(
- 1 => 'https://jetpack.com',
- )
- );
- $css = self::sitemap_xsl_css();
- return <<<XSL
- <?xml version='1.0' encoding='UTF-8'?>
- <xsl:stylesheet version='2.0'
- xmlns:html='http://www.w3.org/TR/REC-html40'
- xmlns:sitemap='http://www.sitemaps.org/schemas/sitemap/0.9'
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
- <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>$title</title>
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
- <style type='text/css'>
- $css
- </style>
- </head>
- <body>
- <div id='description'>
- <h1>$title</h1>
- <p>$description</p>
- <p>$more_info</p>
- </div>
- <div id='content'>
- <table>
- <tr>
- <th>#</th>
- <th>$header_url</th>
- <th>$header_lastmod</th>
- </tr>
- <xsl:for-each select='sitemap:sitemapindex/sitemap:sitemap'>
- <tr>
- <xsl:choose>
- <xsl:when test='position() mod 2 != 1'>
- <xsl:attribute name="class">odd</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <td>
- <xsl:value-of select = "position()" />
- </td>
- <td>
- <xsl:variable name='itemURL'>
- <xsl:value-of select='sitemap:loc'/>
- </xsl:variable>
- <a href='{\$itemURL}'>
- <xsl:value-of select='sitemap:loc'/>
- </a>
- </td>
- <td>
- <xsl:value-of select='sitemap:lastmod'/>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </div>
- <div id='footer'>
- <p>$generated_by</p>
- </div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>\n
- XSL;
- }
- /**
- * Returns the xsl of an image sitemap xml file as a string.
- *
- * @access public
- * @since 4.8.0
- *
- * @return string The contents of the xsl file.
- */
- public static function image_sitemap_xsl() {
- $title = esc_html( ent2ncr( __( 'XML Image Sitemap', 'jetpack' ) ) );
- $header_url = esc_html( ent2ncr( __( 'Page URL', 'jetpack' ) ) );
- $header_image_url = esc_html( ent2ncr( __( 'Image URL', 'jetpack' ) ) );
- $header_thumbnail = esc_html( ent2ncr( __( 'Thumbnail', 'jetpack' ) ) );
- $header_title = esc_html( ent2ncr( __( 'Title', 'jetpack' ) ) );
- $header_lastmod = esc_html( ent2ncr( __( 'Last Modified', 'jetpack' ) ) );
- $header_caption = esc_html( ent2ncr( __( 'Caption', 'jetpack' ) ) );
- $description = self::sanitize_with_links(
- __(
- 'This is an XML Image Sitemap generated by <a href="%1$s" rel="noopener noreferrer" target="_blank">Jetpack</a>, meant to be consumed by search engines like <a href="%2$s" rel="noopener noreferrer" target="_blank">Google</a> or <a href="%3$s" rel="noopener noreferrer" target="_blank">Bing</a>.',
- 'jetpack'
- ),
- array(
- 1 => 'http://jetpack.com/',
- 2 => 'https://www.google.com/',
- 3 => 'https://www.bing.com/',
- )
- );
- $more_info = self::sanitize_with_links(
- __(
- 'You can find more information on XML sitemaps at <a href="%1$s" rel="noopener noreferrer" target="_blank">sitemaps.org</a>',
- 'jetpack'
- ),
- array(
- 1 => 'http://sitemaps.org',
- )
- );
- $generated_by = self::sanitize_with_links(
- __(
- 'Generated by <a href="%s" rel="noopener noreferrer" target="_blank">Jetpack for WordPress</a>',
- 'jetpack'
- ),
- array(
- 1 => 'https://jetpack.com',
- )
- );
- $css = self::sitemap_xsl_css();
- return <<<XSL
- <?xml version='1.0' encoding='UTF-8'?>
- <xsl:stylesheet version='2.0'
- xmlns:html='http://www.w3.org/TR/REC-html40'
- xmlns:sitemap='http://www.sitemaps.org/schemas/sitemap/0.9'
- xmlns:image='http://www.google.com/schemas/sitemap-image/1.1'
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
- <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>$title</title>
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
- <style type='text/css'>
- $css
- </style>
- </head>
- <body>
- <div id='description'>
- <h1>$title</h1>
- <p>$description</p>
- <p>$more_info</p>
- </div>
- <div id='content'>
- <!-- <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> -->
- <table>
- <tr>
- <th>#</th>
- <th>$header_url</th>
- <th>$header_image_url</th>
- <th>$header_title</th>
- <th>$header_caption</th>
- <th>$header_lastmod</th>
- <th>$header_thumbnail</th>
- </tr>
- <xsl:for-each select="sitemap:urlset/sitemap:url">
- <tr>
- <xsl:choose>
- <xsl:when test='position() mod 2 != 1'>
- <xsl:attribute name="class">odd</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <td>
- <xsl:value-of select = "position()" />
- </td>
- <td>
- <xsl:variable name='pageURL'>
- <xsl:value-of select='sitemap:loc'/>
- </xsl:variable>
- <a href='{\$pageURL}'>
- <xsl:value-of select='sitemap:loc'/>
- </a>
- </td>
- <xsl:variable name='itemURL'>
- <xsl:value-of select='image:image/image:loc'/>
- </xsl:variable>
- <td>
- <a href='{\$itemURL}'>
- <xsl:value-of select='image:image/image:loc'/>
- </a>
- </td>
- <td>
- <xsl:value-of select='image:image/image:title'/>
- </td>
- <td>
- <xsl:value-of select='image:image/image:caption'/>
- </td>
- <td>
- <xsl:value-of select='sitemap:lastmod'/>
- </td>
- <td>
- <a href='{\$itemURL}'>
- <img class='thumbnail' src='{\$itemURL}'/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </div>
- <div id='footer'>
- <p>$generated_by</p>
- </div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>\n
- XSL;
- }
- /**
- * Returns the xsl of a video sitemap xml file as a string.
- *
- * @access public
- * @since 4.8.0
- *
- * @return string The contents of the xsl file.
- */
- public static function video_sitemap_xsl() {
- $title = esc_html( ent2ncr( __( 'XML Video Sitemap', 'jetpack' ) ) );
- $header_url = esc_html( ent2ncr( __( 'Page URL', 'jetpack' ) ) );
- $header_image_url = esc_html( ent2ncr( __( 'Video URL', 'jetpack' ) ) );
- $header_thumbnail = esc_html( ent2ncr( __( 'Thumbnail', 'jetpack' ) ) );
- $header_title = esc_html( ent2ncr( __( 'Title', 'jetpack' ) ) );
- $header_lastmod = esc_html( ent2ncr( __( 'Last Modified', 'jetpack' ) ) );
- $header_description = esc_html( ent2ncr( __( 'Description', 'jetpack' ) ) );
- $description = self::sanitize_with_links(
- __(
- 'This is an XML Video Sitemap generated by <a href="%1$s" rel="noopener noreferrer" target="_blank">Jetpack</a>, meant to be consumed by search engines like <a href="%2$s" rel="noopener noreferrer" target="_blank">Google</a> or <a href="%3$s" rel="noopener noreferrer" target="_blank">Bing</a>.',
- 'jetpack'
- ),
- array(
- 1 => 'http://jetpack.com/',
- 2 => 'https://www.google.com/',
- 3 => 'https://www.bing.com/',
- )
- );
- $more_info = self::sanitize_with_links(
- __(
- 'You can find more information on XML sitemaps at <a href="%1$s" rel="noopener noreferrer" target="_blank">sitemaps.org</a>',
- 'jetpack'
- ),
- array(
- 1 => 'http://sitemaps.org',
- )
- );
- $generated_by = self::sanitize_with_links(
- __(
- 'Generated by <a href="%s" rel="noopener noreferrer" target="_blank">Jetpack for WordPress</a>',
- 'jetpack'
- ),
- array(
- 1 => 'https://jetpack.com',
- )
- );
- $css = self::sitemap_xsl_css();
- return <<<XSL
- <?xml version='1.0' encoding='UTF-8'?>
- <xsl:stylesheet version='2.0'
- xmlns:html='http://www.w3.org/TR/REC-html40'
- xmlns:sitemap='http://www.sitemaps.org/schemas/sitemap/0.9'
- xmlns:video='http://www.google.com/schemas/sitemap-video/1.1'
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
- <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>$title</title>
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
- <style type='text/css'>
- $css
- </style>
- </head>
- <body>
- <div id='description'>
- <h1>$title</h1>
- <p>$description</p>
- <p>$more_info</p>
- </div>
- <div id='content'>
- <!-- <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> -->
- <table>
- <tr>
- <th>#</th>
- <th>$header_url</th>
- <th>$header_image_url</th>
- <th>$header_title</th>
- <th>$header_description</th>
- <th>$header_lastmod</th>
- <th>$header_thumbnail</th>
- </tr>
- <xsl:for-each select="sitemap:urlset/sitemap:url">
- <tr>
- <xsl:choose>
- <xsl:when test='position() mod 2 != 1'>
- <xsl:attribute name="class">odd</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <td>
- <xsl:value-of select = "position()" />
- </td>
- <td>
- <xsl:variable name='pageURL'>
- <xsl:value-of select='sitemap:loc'/>
- </xsl:variable>
- <a href='{\$pageURL}'>
- <xsl:value-of select='sitemap:loc'/>
- </a>
- </td>
- <xsl:variable name='itemURL'>
- <xsl:value-of select='video:video/video:content_loc'/>
- </xsl:variable>
- <td>
- <a href='{\$itemURL}'>
- <xsl:value-of select='video:video/video:content_loc'/>
- </a>
- </td>
- <td>
- <xsl:value-of select='video:video/video:title'/>
- </td>
- <td>
- <xsl:value-of select='video:video/video:description'/>
- </td>
- <td>
- <xsl:value-of select='sitemap:lastmod'/>
- </td>
- <td>
- <xsl:variable name='thumbURL'>
- <xsl:value-of select='video:video/video:thumbnail_loc'/>
- </xsl:variable>
- <a href='{\$thumbURL}'>
- <img class='thumbnail' src='{\$thumbURL}'/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </div>
- <div id='footer'>
- <p>$generated_by</p>
- </div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>\n
- XSL;
- }
- /**
- * Returns the xsl of a news sitemap xml file as a string.
- *
- * @access public
- * @since 4.8.0
- *
- * @return string The contents of the xsl file.
- */
- public static function news_sitemap_xsl() {
- $title = esc_html( ent2ncr( __( 'XML News Sitemap', 'jetpack' ) ) );
- $header_url = esc_html( ent2ncr( __( 'Page URL', 'jetpack' ) ) );
- $header_title = esc_html( ent2ncr( __( 'Title', 'jetpack' ) ) );
- $header_pubdate = esc_html( ent2ncr( __( 'Publication Date', 'jetpack' ) ) );
- $description = self::sanitize_with_links(
- __(
- 'This is an XML News Sitemap generated by <a href="%1$s" rel="noopener noreferrer" target="_blank">Jetpack</a>, meant to be consumed by search engines like <a href="%2$s" rel="noopener noreferrer" target="_blank">Google</a> or <a href="%3$s" rel="noopener noreferrer" target="_blank">Bing</a>.',
- 'jetpack'
- ),
- array(
- 1 => 'http://jetpack.com/',
- 2 => 'https://www.google.com/',
- 3 => 'https://www.bing.com/',
- )
- );
- $more_info = self::sanitize_with_links(
- __(
- 'You can find more information on XML sitemaps at <a href="%1$s" rel="noopener noreferrer" target="_blank">sitemaps.org</a>',
- 'jetpack'
- ),
- array(
- 1 => 'http://sitemaps.org',
- )
- );
- $generated_by = self::sanitize_with_links(
- __(
- 'Generated by <a href="%s" rel="noopener noreferrer" target="_blank">Jetpack for WordPress</a>',
- 'jetpack'
- ),
- array(
- 1 => 'https://jetpack.com',
- )
- );
- $css = self::sitemap_xsl_css();
- return <<<XSL
- <?xml version='1.0' encoding='UTF-8'?>
- <xsl:stylesheet version='2.0'
- xmlns:html='http://www.w3.org/TR/REC-html40'
- xmlns:sitemap='http://www.sitemaps.org/schemas/sitemap/0.9'
- xmlns:news='http://www.google.com/schemas/sitemap-news/0.9'
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
- <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>$title</title>
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
- <style type='text/css'>
- $css
- </style>
- </head>
- <body>
- <div id='description'>
- <h1>$title</h1>
- <p>$description</p>
- <p>$more_info</p>
- </div>
- <div id='content'>
- <!-- <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> -->
- <table>
- <tr>
- <th>#</th>
- <th>$header_url</th>
- <th>$header_title</th>
- <th>$header_pubdate</th>
- </tr>
- <xsl:for-each select="sitemap:urlset/sitemap:url">
- <tr>
- <xsl:choose>
- <xsl:when test='position() mod 2 != 1'>
- <xsl:attribute name="class">odd</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <td>
- <xsl:value-of select = "position()" />
- </td>
- <xsl:variable name='pageURL'>
- <xsl:value-of select='sitemap:loc'/>
- </xsl:variable>
- <td>
- <a href='{\$pageURL}'>
- <xsl:value-of select='sitemap:loc'/>
- </a>
- </td>
- <td>
- <a href='{\$pageURL}'>
- <xsl:value-of select='news:news/news:title'/>
- </a>
- </td>
- <td>
- <xsl:value-of select='news:news/news:publication_date'/>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </div>
- <div id='footer'>
- <p>$generated_by</p>
- </div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>\n
- XSL;
- }
- /**
- * The CSS to be included in sitemap xsl stylesheets;
- * factored out for uniformity.
- *
- * @access public
- * @since 4.8.0
- *
- * @return string The CSS.
- */
- public static function sitemap_xsl_css() {
- return <<<CSS
- body {
- font: 14px 'Open Sans', Helvetica, Arial, sans-serif;
- margin: 0;
- }
- a {
- color: #3498db;
- text-decoration: none;
- }
- h1 {
- margin: 0;
- }
- #description {
- background-color: #81a844;
- color: #FFF;
- padding: 30px 30px 20px;
- }
- #description a {
- color: #fff;
- }
- #content {
- padding: 10px 30px 30px;
- background: #fff;
- }
- a:hover {
- border-bottom: 1px solid;
- }
- th, td {
- font-size: 12px;
- }
- th {
- text-align: left;
- border-bottom: 1px solid #ccc;
- }
- th, td {
- padding: 10px 15px;
- }
- .odd {
- background-color: #E7F1D4;
- }
- #footer {
- margin: 20px 30px;
- font-size: 12px;
- color: #999;
- }
- #footer a {
- color: inherit;
- }
- #description a, #footer a {
- border-bottom: 1px solid;
- }
- #description a:hover, #footer a:hover {
- border-bottom: none;
- }
- img.thumbnail {
- max-height: 100px;
- max-width: 100px;
- }
- CSS;
- }
- }
|