コード例 #1
0
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    font-size: 12px !important;
    line-height: 13px;
    padding: 3px 8px;
    text-decoration: none;
}
</style>
</head>
<body>
	<h1>Select the template for the mobile version:</h1>
	<form method="post" action="admin.php?page=knews_news" target="_parent">
<?php 
    require_once KNEWS_DIR . '/includes/knews_util.php';
    knews_display_templates(true);
    ?>
	<p style="clear:both; padding:20px 0 30px 0; text-align:center;"><input type="submit" value="Use this template" class="button-primary" /></p>
	<input type="hidden" name="action" id="action" value="add_news_mobile" />
	<input type="hidden" name="new_news" id="new_news" value="mobile version" />
	<input type="hidden" name="lang" id="lang" value="<?php 
    echo $Knews_plugin->get_safe('news_lang');
    ?>
" />
	<input type="hidden" name="parent" id="parent" value="<?php 
    echo $Knews_plugin->get_safe('id_news');
    ?>
" />

	</form>
<?php 
コード例 #2
0
    if (count($languages) == 1) {
        foreach ($languages as $l) {
            echo '<input type="hidden" name="lang" id="lang" value="' . $l['language_code'] . '" />';
        }
    } else {
        echo __('Error', 'knews') . ": " . __('Language not detected!', 'knews');
    }
}
?>
						</p>
						<p><?php 
_e('Choose a template', 'knews');
?>
: </p>
						<?php 
knews_display_templates();
?>
						<h3 style="clear:both">Type of newsletter</h3>
						<p><input type="radio" name="newstype" value="manual" /> Manual newsletter</p>
						<p><input type="radio" name="newstype" value="autocreation" /> Newsletter for auto-creation <a href="<?php 
_e('http://www.knewsplugin.com/automated-newsletter-creation/', 'knews');
?>
" style="background:url(<?php 
echo KNEWS_URL;
?>
/images/help.png) no-repeat 5px 0; padding:3px 0 3px 30px; color:#0646ff; font-size:13px;" target="_blank"><?php 
_e('Auto-create Newsletters Tutorial', 'knews');
?>
</a></p>
						<p><input type="radio" name="newstype" value="autoresponder" /> Newsletter for autoresponder <a href="http://www.knewsplugin.com/knews-have-autoresponders/" style="background:url(<?php 
echo KNEWS_URL;