Esempio n. 1
0
        $pdf_output .= '<bookmark content="' . the_title('', '', false) . '" level="1" /><tocentry content="' . the_title('', '', false) . '" level="1" />';
        $pdf_output .= '<div class="post">
				<h2>test<a href="' . get_permalink() . '" rel="bookmark" title="Permanent Link to ' . the_title('', '', false) . '">' . the_title('', '', false) . '</a></h2>';
        // no authors and dates on static pages
        if (!is_page()) {
            $pdf_output .= '<p class="small subtitle">' . get_the_author_meta('display_name') . ' &middot; ' . date('l, F jS, Y', mpdf_mysql2unix($post->post_date)) . '</p>';
        }
        $pdf_output .= '<div class="entry">' . wpautop($post->post_content, true) . '</div>';
        if (!is_page() && !is_single()) {
            $pdf_output .= '<p class="postmetadata">Posted in ' . $cat_links . ' | ' . '<a href="' . get_permalink() . '#comment">' . $comment_link . '</a></p>';
        }
        // the following is the extended metadata for a single page
        if (is_single()) {
            $pdf_output .= '<p class="postmetadata alt">
						<span>
							This entry was posted on ' . date('l, F jS, Y', mpdf_mysql2unix($post->post_date)) . ' at ' . date('g:i a', mpdf_mysql2unix($post->post_date)) . ' and is filed under ' . $cat_links . '
							You can follow any responses to this entry through the <a href="' . get_bloginfo('comments_rss2_url') . '">Comments (RSS)</a> feed.';
            if ('open' == $post->comment_status && 'open' == $post->ping_status) {
                // Both Comments and Pings are open
                $pdf_output .= ' You can leave a response, or <a href="' . get_trackback_url() . '" rel="trackback">trackback</a> from your own site.';
            } elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
                // Only Pings are Open
                $pdf_output .= ' Responses are currently closed, but you can <a href="' . get_trackback_url() . '" rel="trackback">trackback</a> from your own site.';
            } elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
                // Comments are open, Pings are not
                $pdf_output .= ' You can skip to the end and leave a response. Pinging is currently not allowed.';
            } elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
                // Neither Comments, nor Pings are open
                $pdf_output .= ' Both comments and pings are currently closed.';
            }
            $pdf_output .= '</span>
Esempio n. 2
0
        $pdf_output .= '<bookmark content="' . the_title('', '', false) . '" level="1" /><tocentry content="' . the_title('', '', false) . '" level="1" />';
        $pdf_output .= '<div class="post">
				<h2><a href="' . get_permalink() . '" rel="bookmark" title="Permanenter Link zu ' . the_title('', '', false) . '">' . the_title('', '', false) . '</a></h2>';
        // no authors and dates on static pages
        if (!is_page()) {
            $pdf_output .= '<p class="small subtitle">' . get_the_author_meta('display_name') . ' &middot; ' . date_i18n('l', mpdf_mysql2unix($post->post_date)) . ' den ' . date_i18n('j. F Y', mpdf_mysql2unix($post->post_date)) . '</p>';
        }
        $pdf_output .= '<div class="entry">' . wpautop($post->post_content, true) . '</div>';
        if (!is_page() && !is_single()) {
            $pdf_output .= '<p class="postmetadata">Gepostet in ' . $cat_links . ' | ' . '<a href="' . get_permalink() . '#comment">' . $comment_link . '</a></p>';
        }
        // the following is the extended metadata for a single page
        if (is_single()) {
            $pdf_output .= '<p class="postmetadata alt">
						<span>
							Dieser Beitrag wurde publiziert am ' . date_i18n('l', mpdf_mysql2unix($post->post_date)) . ' den ' . date_i18n('j. F Y', mpdf_mysql2unix($post->post_date)) . ' um ' . date_i18n('H:i', mpdf_mysql2unix($post->post_date)) . '
							in der Kategorie: ' . $cat_links . '.
							Kommentare können über den <a href="' . get_bloginfo('comments_rss2_url') . '">Kommentar (RSS)</a> Feed verfolgt werden.';
            if ('open' == $post->comment_status && 'open' == $post->ping_status) {
                // Both Comments and Pings are open
                $pdf_output .= '
								Du kannst ein Kommentar abgeben oder erstelle einen <a href="' . get_trackback_url() . '" rel="trackback">Trackback</a> dieses Beitrages auf deine Webseite.';
            } elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
                // Only Pings are Open
                $pdf_output .= '
								Kommentare sind geschlossen aber Du kannst einen <a href="' . get_trackback_url() . '" rel="trackback">Trackback</a> zu diesem Beitrag auf deiner Webseite erstellen.';
            } elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
                // Comments are open, Pings are not
                $pdf_output .= '
								Du kannst zum Ende springen und ein Kommentar abgeben. Pingen ist momentan nicht erlaubt.';
            } elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
Esempio n. 3
0
        }
        $pdf_output .= '<bookmark content="' . the_title('', '', false) . '" level="1" /><tocentry content="' . the_title('', '', false) . '" level="1" />';
        $pdf_output .= '<div class="post">
				<h2><a href="' . get_permalink() . '" rel="bookmark" title="Lien permanent vers ' . the_title('', '', false) . '">' . the_title('', '', false) . '</a></h2>';
        // no authors and dates on static pages
        if (!is_page()) {
            $pdf_output .= '<p class="small subtitle">' . get_the_author_meta('display_name') . ' , le ' . date_i18n('l', mpdf_mysql2unix($post->post_date)) . ' ' . date_i18n('j F Y', mpdf_mysql2unix($post->post_date)) . '</p>';
        }
        $pdf_output .= '<div class="entry">' . wpautop($post->post_content, true) . '</div>';
        if (!is_page() && !is_single()) {
            $pdf_output .= '<p class="postmetadata">Post&eacute; dans ' . $cat_links . ' | ' . '<a href="' . get_permalink() . '#comment">' . $comment_link . '</a></p>';
        }
        // the following is the extended metadata for a single page
        if (is_single()) {
            $pdf_output .= '<p class="postmetadata alt">
						<span>Le ' . date_i18n('l', mpdf_mysql2unix($post->post_date)) . ' ' . date_i18n('j F Y', mpdf_mysql2unix($post->post_date)) . ' &agrave; ' . date_i18n('H:i', mpdf_mysql2unix($post->post_date)) . ' . Class&eacute; dans ' . $cat_links . '. Vous pouvez suivre toutes les r&eacute;ponses &agrave; ce billet via le <a href="' . get_bloginfo('comments_rss2_url') . '"> fils de commentaire (RSS)</a>.';
            if ('open' == $post->comment_status && 'open' == $post->ping_status) {
                // Both Comments and Pings are open
                $pdf_output .= ' Vous pouvez laisser une r&eacute;, ou <a href="' . get_trackback_url() . '" rel="trackback">un trackback</a> depuis votre site.';
            } elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
                // Only Pings are Open
                $pdf_output .= ' Les r&eacute;ponses sont closes en ce moment, mais vous pouvez faire un <a href="' . get_trackback_url() . '" rel="trackback">trackback</a> depuis votre propre site.';
            } elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
                // Comments are open, Pings are not
                $pdf_output .= ' Vous pouvez aller jusqu&apos; &agrave; la fin et laisser une r&eacute;ponse. Le ping n&apos;est pas permis.';
            } elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
                // Neither Comments, nor Pings are open
                $pdf_output .= ' Les commentaires et pings ne sont plus permis.';
            }
            $pdf_output .= '</span>
					</p>';