class PageNavi_Options_Page extends scbAdminPage {
function setup() {
$this->textdomain = 'wp-pagenavi';
$this->args = array(
'page_title' => __('PageNavi Settings', $this->textdomain),
'menu_title' => __('PageNavi', $this->textdomain),
'page_slug' => 'pagenavi',
);
}
// Update the validate method to match the parent class
function validate($new_data, $old_data) {
foreach ( array('style', 'num_pages', 'num_larger_page_numbers', 'larger_page_numbers_multiple') as $key )
$new_data[$key] = absint(@$new_data[$key]);
foreach ( array('use_pagenavi_css', 'always_show') as $key )
$new_data[$key] = (bool) @$new_data[$key];
return $new_data;
}
function page_content() {
$rows = array(
array(
'title' => __('Text For Number Of Pages', $this->textdomain),
'type' => 'text',
'name' => 'pages_text',
'extra' => 'size="50"',
'desc' => '
%CURRENT_PAGE% - ' . __('The current page number.', $this->textdomain) . '
%TOTAL_PAGES% - ' . __('The total number of pages.', $this->textdomain)
),
array(
'title' => __('Text For Current Page', $this->textdomain),
'type' => 'text',
'name' => 'current_text',
'desc' => '
%PAGE_NUMBER% - ' . __('The page number.', $this->textdomain)
),
array(
'title' => __('Text For Page', $this->textdomain),
'type' => 'text',
'name' => 'page_text',
'desc' => '
%PAGE_NUMBER% - ' . __('The page number.', $this->textdomain)
),
array(
'title' => __('Text For First Page', $this->textdomain),
'type' => 'text',
'name' => 'first_text',
'desc' => '
%TOTAL_PAGES% - ' . __('The total number of pages.', $this->textdomain)
),
array(
'title' => __('Text For Last Page', $this->textdomain),
'type' => 'text',
'name' => 'last_text',
'desc' => '
%TOTAL_PAGES% - ' . __('The total number of pages.', $this->textdomain)
),
array(
'title' => __('Text For Previous Page', $this->textdomain),
'type' => 'text',
'name' => 'prev_text',
),
array(
'title' => __('Text For Next Page', $this->textdomain),
'type' => 'text',
'name' => 'next_text',
),
array(
'title' => __('Text For Previous ...', $this->textdomain),
'type' => 'text',
'name' => 'dotleft_text',
),
array(
'title' => __('Text For Next ...', $this->textdomain),
'type' => 'text',
'name' => 'dotright_text',
),
);
$out =
html('h3', __('Page Navigation Text', $this->textdomain))
.html('p', __('Leaving a field blank will hide that part of the navigation.', $this->textdomain))
.$this->table($rows);
$rows = array(
array(
'title' => __('Use pagenavi-css.css', $this->textdomain),
'type' => 'checkbox',
'name' => 'use_pagenavi_css',
),
array(
'title' => __('Page Navigation Style', $this->textdomain),
'type' => 'select',
'name' => 'style',
'values' => array(1 => __('Normal', $this->textdomain), 2 => __('Drop-down List', $this->textdomain)),
'text' => false
),
array(
'title' => __('Always Show Page Navigation', $this->textdomain),
'type' => 'checkbox',
'name' => 'always_show',
'desc' => __("Show navigation even if there's only one page.", $this->textdomain)
),
array(
'title' => __('Number Of Pages To Show', $this->textdomain),
'type' => 'text',
'name' => 'num_pages',
'extra' => 'class="small-text"'
),
array(
'title' => __('Number Of Larger Page Numbers To Show', $this->textdomain),
'type' => 'text',
'name' => 'num_larger_page_numbers',
'extra' => 'class="small-text"',
'desc' =>
'
' . __('Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts.', $this->textdomain) .
'
' . __('For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50.', $this->textdomain) .
'
' . __('Enter 0 to disable.', $this->textdomain)
),
array(
'title' => __('Show Larger Page Numbers In Multiples Of', $this->textdomain),
'type' => 'text',
'name' => 'larger_page_numbers_multiple',
'extra' => 'class="small-text"',
'desc' =>
'
' . __('For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25', $this->textdomain)
),
);
$out .=
html('h3', __('Page Navigation Options', $this->textdomain))
.$this->table($rows);
echo $this->form_wrap($out);
}
}
Varanasi: Os indianos vem ao Rio Ganges pelo menos uma vez na vida para esse ritual de purificação Varanasi: Escadarias de pedra ou ghats Varanasi: Muitos barcos levam os turistas para os passeios no rio Ganges Varanasi: Escadarias de pedra ou ghats Varanasi: Escadarias ou Ghats onde os indianos descem ao rio Ganges para se banhar Varanasi: Passeio de barco ao amanhecer para assistir o Ritual do banho sagrado no Rio Ganges Varanasi: Os Indianos rezam, se banham, cremão seus mortos e jogam as cinzas no rio Varanasi: Acampamento dos Sadhus considerados homens santos por terem uma vida de devoção Varanasi: Sadhus fumando um cachimbinho da paz Varanasi: Os Sadhus são despreendidos dos bens materiais, mas nem tente fotografar sem pagar antes Varanasi: Os Brahmanes (teólogos do hinduísmo) compartilhando o acampamento dos Sadhus Varanasi: Os indianos adoram ser fotografados e ficam minutos parados com a mesma expressão
Numa atmosfera mística, uma multidão banha–se nas águas do rio Ganges em Varanasi na Índia, ao pé de um dos 64 Ghats, que são as escadarias de pedra construídas na beira do rio. Logo ao amanhecer, o som dos sinos e cornetas dos templos vizinhos chama para o ritual da purificação, ato que para os hinduistas significa a liberdade dos pecados de uma vida. O corpo acolhe nossa alma e a sua limpeza tem uma função higiênica e espiritual.
Os hinduistas acreditam que Varanasi foi fundada pelo proprio Shiva, Deus da transformação, e que morrer na cidade significa livrar-se dos ciclos das reencarnações.