Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bg-az-counter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
azbyka_bg
bg-az-counter
Commits
b76570f7
Commit
b76570f7
authored
Dec 24, 2019
by
Vadim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 2.8.1
* Поправил стили * Запрет вывода на экран рейтинга при отключенной опции
parent
5a17b1c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
bg_az-counter.php
bg_az-counter.php
+2
-2
styles.css
css/styles.css
+8
-8
rating.php
inc/rating.php
+2
-1
No files found.
bg_az-counter.php
View file @
b76570f7
...
...
@@ -3,7 +3,7 @@
Plugin Name: Bg Az-Counter
Plugin URI: https://bogaiskov.ru
Description: Подсчет количества посещений страниц на базе stat.azbyka.ru
Version: 2.8
Version: 2.8
.1
Author: VBog
Author URI: https://bogaiskov.ru
License: GPL2
...
...
@@ -38,7 +38,7 @@
if
(
!
defined
(
'ABSPATH'
)
)
{
die
(
'Sorry, you are not allowed to access this page directly.'
);
}
define
(
'BG_COUNTER_VERSION'
,
'2.8'
);
define
(
'BG_COUNTER_VERSION'
,
'2.8
.1
'
);
define
(
'BG_COUNTER_LOG'
,
dirname
(
__FILE__
)
.
'/bg_counter.log'
);
define
(
'BG_COUNTER_STAT_COUNTERS'
,
'https://stat.azbyka.ru/counters'
);
...
...
css/styles.css
View file @
b76570f7
...
...
@@ -4,7 +4,7 @@
margin
:
5px
;
padding
:
0
;
}
.widget-item
.bg-az-top-posts
li
,
.widget-item
.bg-az-top-posts
>
li
,
.widget-item
.bg-az-counter
p
{
margin
:
0px
;
padding
:
5px
;
...
...
@@ -21,18 +21,18 @@
border
:
none
;
border-radius
:
50%
;
}
.widget-item
li
a
,
.widget-item
.bg-az-top-posts
>
li
a
,
.widget-item
.bg-az-counter
p
{
color
:
#90694a
;
}
.widget-item
li
.bg-az-count
,
.widget-item
.bg-az-top-posts
>
li
.bg-az-count
,
.widget-item
p
.bg-az-counter-now
,
.widget-item
p
.bg-az-counter-unit
,
.widget-item
p
.bg-az-counter-views
,
.widget-item
p
.bg-az-counter-posts
{
color
:
#999
;
}
.widget-item
li
:hover
{
.widget-item
.bg-az-top-posts
>
li
:hover
{
background
:
#fff
;
color
:
#e88f57
;
transition
:
all
.4s
ease
;
...
...
@@ -52,17 +52,17 @@ i.fa-star-o:before {
}
.widget-item
.bg-az-counter
p
,
.widget-item
.bg-az-top-posts
li
{
.widget-item
.bg-az-top-posts
>
li
{
display
:
table-row
;
}
.widget-item
.bg-az-counter
p
>
span
,
.widget-item
li
>
a
,
.widget-item
li
>
span
{
.widget-item
.bg-az-top-posts
>
li
>
a
,
.widget-item
.bg-az-top-posts
>
li
>
span
{
display
:
table-cell
;
text-align
:
right
;
}
.widget-item
.bg-az-counter
p
>
span
.bg-az-counter-title
,
.widget-item
li
>
a
{
.widget-item
.bg-az-top-posts
>
li
>
a
{
width
:
100%
;
padding
:
0
3px
5px
3px
;
text-align
:
left
;
...
...
inc/rating.php
View file @
b76570f7
...
...
@@ -35,6 +35,8 @@ GET /item-score/project/test/author/1
function
bg_az_counter_rating
(
$type
,
$id
)
{
global
$project
;
$option
=
get_option
(
'bg_counter_options'
);
if
(
!
$option
[
'rate'
])
return
false
;
if
(
!
$id
)
return
false
;
if
(
$type
==
'post'
)
{
// Список типов записей имеющих страницу во фронте
...
...
@@ -46,7 +48,6 @@ function bg_az_counter_rating($type, $id) {
if
(
get_post_status
(
$id
)
!=
'publish'
)
return
false
;
}
else
return
false
;
$option
=
get_option
(
'bg_counter_options'
);
if
(
$option
[
'title'
])
$page_title
=
$option
[
'title'
];
else
$page_title
=
get_the_title
(
$id
);
if
(
$option
[
'author'
])
$author
=
$option
[
'author'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment