TRUE )); // Link 'write a new entry...' $output .= '
» ' . __('Új bejegyzés hozzáadása.',$textdomain) . '
'; if ($msg !== FALSE) { $output .= '
'.$msg.'
'; } $entriesPerPage = (int)$gwolle_gb_settings['entriesPerPage']; if (!$entriesPerPage || $entriesPerPage < 1) { // This option has not been set, or has manually been edited/deleted in the database. Use default value. $entriesPerPage = 20; } $entriesCount = gwolle_gb_get_entry_count(array( 'entry_status' => 'checked' )); $countPages = round($entriesCount / $entriesPerPage); if ($countPages * $entriesPerPage < $entriesCount) { $countPages++; } if (!$_REQUEST['pageNum']) { $pageNum = 1; } else { $pageNum = $_REQUEST['pageNum']; } if ($pageNum > $countPages) { $pageNum = 1; } if ($pageNum == 1 && $entriesCount > 0) { $firstEntryNum = 1; $mysqlFirstRow = 0; } elseif ($entriesCount == 0) { $firstEntryNum = 0; $mysqlFirstRow = 0; } else { $firstEntryNum = ($pageNum-1)*$entriesPerPage+1; $mysqlFirstRow = $firstEntryNum-1; } $lastEntryNum = $pageNum * $entriesPerPage; if ($entriesCount == 0) { $lastEntryNum = 0; } elseif ($lastEntryNum > $entriesCount) { $lastEntryNum = $firstEntryNum + ($entriesCount - ($pageNum-1) * $entriesPerPage) - 1; } // Get the entries $entries = gwolle_gb_get_entries(array( 'offset' => $mysqlFirstRow, 'show' => 'checked', 'num_entries' => $entriesPerPage )); // page navigation $output .= ''; if ($entries === FALSE) { $output .= __('(no entries yet)',$textdomain); } else { // Get option how to display the date $date_format = get_option('date_format'); foreach($entries as $entry) { $output .= ' 0) { $output .= 'admin-entry'; } $output .= '">'; $output .= '
'; $output .= ''.$entry['entry_author_name_html'].''; if (strlen(str_replace(' ','',$entry['entry_author_origin'])) > 0) { $output .= ' ' . __('innen,$textdomain) . ' ' . gwolle_gb_format_value_for_output($entry['entry_author_origin']) . ''; } $output .= ' ' . __('írta ekkor',$textdomain) . ' ' . date($date_format, $entry['entry_date']) . ':'; $output .= '
'; $output .= '
'; $entry_content = gwolle_gb_format_value_for_output($entry['entry_content']); if ($gwolle_gb_settings['showSmilies'] === TRUE) { $entry_content = convert_smilies($entry_content); } if ($gwolle_gb_settings['showLineBreaks'] === TRUE) { $output .= nl2br($entry_content); } else { $output .= $entry_content; } $output .= '
'; $output .= ''; } } ?>