ChaDmiS
Forum Replies Created
-
Forum: Plugins
In reply to: [Image Watermark] Browser rendering bugI solved the problem. Initially PHP 5.6 was installed, I updated to version 7.0 – everything is working correctly!
Forum: Plugins
In reply to: [Archives Calendar Widget] The property "month_select" does not work properlyThe news page – it is template file in theme.
Thank U. It works ??
I’d like to to have a new option for the calendar – Setting the address of the file that will move calendar, to be able to specify the logic as in archive.php, but the file itself was another.
Forum: Plugins
In reply to: [Archives Calendar Widget] The property "month_select" does not work properlyAnd why do you want to paste the third line here:
case ‘next’:
if($archiveMonth == 12)
{
$archiveMonth = 1;
$archiveYear ++;
}
else
$archiveMonth ++;
if(arcw_findMonth($archiveYear, $archiveMonth, $months) < 0)
{
$months[] = (object)array(‘year’ => $archiveYear, ‘month’ => $archiveMonth);
arcw_sortMonths($months,array(“year”,”month”));
}
break;
case ’empty’:
if(is_archive()) echo ” – ARCHIVES – “;
break;
default:
if(is_archive())
{
if(arcw_findMonth($archiveYear, $archiveMonth, $months) < 0)
{
$archiveYear = $months[0]->year;
$archiveMonth = $months[0]->month;
}
}
else
{
$archiveYear = $months[0]->year;
$archiveMonth = $months[0]->month;
}Forum: Plugins
In reply to: [Archives Calendar Widget] The property "month_select" does not work properlyI do not quite understand why you want to insert the first line here:
function arcw_month_days($year, $month)
{
switch(intval($month))
{
case 4: case 6: case 9: case 11: // april, june, september, november
return 30; // 30 days
case 2: //february
echo “$archiveMonth – $archiveYear “;
if( $year%400==0 || ( $year%100 != 00 && $year%4==0 ) ) // intercalary year check
return 29; // 29 days or
return 28; // 28 days
default: // other months
return 31; // 31 days
}
}Forum: Plugins
In reply to: [Archives Calendar Widget] The property "month_select" does not work properlyOkay. I wrote the code, which you specify. Displays “current: 11/2014 -”
Forum: Plugins
In reply to: [Archives Calendar Widget] The property "month_select" does not work properlyThe function date (“d-m-Y”) gives “12/23/2014”.
Announcement ‘title’ is not helpingForum: Plugins
In reply to: [Archives Calendar Widget] The property "month_select" does not work properlyФункция date(“d-m-Y”) выдает “23-12-2014”.
Объявление ‘title’ тоже не помогаетForum: Plugins
In reply to: [Archives Calendar Widget] The property "month_select" does not work properlyLink to website: https://test.brooklynseo.ru/novosti-zakonodatel-stva/
I use the function:
<?php archive_calendar( array( ‘next_text’ => ”,
‘prev_text’ => ”,
‘month_view’ => true,
‘month_select’ => ‘current’,
‘categories’ => array( 1 ) ) ); ?>