function pdf24Plugin_createDocSizeOptions() { global $pdf24Plugin; $currentSize = pdf24Plugin_getDocSize(); $out = ''; foreach ($pdf24Plugin['docSizes'] as $key => $val) { if ($key != 'default') { $out .= '<option value="' . $key . '"' . ($key == $currentSize ? ' selected' : '') . '>' . $key . '</option>'; } } return $out; }
function pdf24Plugin_getBlogHiddenFields($postsCount) { global $pdf24Plugin; $arr = array('blogCharset' => get_bloginfo('charset'), 'blogPosts' => $postsCount, 'blogUrl' => get_bloginfo('siteurl'), 'blogName' => get_bloginfo('name'), 'blogValueEncoding' => $pdf24Plugin['defaultFilter']); if (pdf24Plugin_isEmailOptionsInUse()) { $arr['blogEmailText'] = pdf24Plugin_getEmailText(); $arr['blogEmailType'] = pdf24Plugin_getEmailType(); $arr['blogEmailSubject'] = pdf24Plugin_getEmailSubject(); $arr['blogEmailFrom'] = pdf24Plugin_getEmailFrom(); } if (pdf24Plugin_isDocOptionsInUse()) { $arr['blogDocHeader'] = pdf24Plugin_getDocHeader(); $arr['blogDocSize'] = $pdf24Plugin['docSizes'][pdf24Plugin_getDocSize()]; $arr['blogDocOrientation'] = pdf24Plugin_getDocOrientation(); $arr['blogDocStyle'] = pdf24Plugin_getDocStyle(); } if (pdf24Plugin_isCustomizedDocTpl()) { $arr['blogDocTpl'] = pdf24Plugin_getCustomizedDocTpl(); } if (pdf24Plugin_isCustomizedDocEntryTpl()) { $arr['blogDocEntryTpl'] = pdf24Plugin_getCustomizedDocEntryTpl(); } return pdf24Plugin_getFormHiddenFields0($arr, array('skipFilterFor' => 'blogValueEncoding')); }