Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WordPress_SexHackMe_Plugin
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
WordPress_SexHackMe_Plugin
Commits
deaa6c7b
Commit
deaa6c7b
authored
2 years ago
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep going...
parent
861e1b3f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
1 deletion
+13
-1
adv.png
img/adv.png
+0
-0
adv_icon.png
img/adv_icon.png
+0
-0
porn.png
img/porn.png
+0
-0
porn_icon.png
img/porn_icon.png
+0
-0
class-meta-box.php
includes/class-meta-box.php
+7
-0
class-post_types.php
includes/class-post_types.php
+3
-1
sexhackme.php
sexhackme.php
+3
-0
No files found.
img/adv.png
0 → 100644
View file @
deaa6c7b
37.7 KB
This diff is collapsed.
Click to expand it.
img/adv_icon.png
0 → 100644
View file @
deaa6c7b
732 Bytes
This diff is collapsed.
Click to expand it.
img/porn.png
0 → 100644
View file @
deaa6c7b
6.29 KB
This diff is collapsed.
Click to expand it.
img/porn_icon.png
0 → 100644
View file @
deaa6c7b
702 Bytes
This diff is collapsed.
Click to expand it.
includes/class-meta-box.php
View file @
deaa6c7b
...
...
@@ -34,6 +34,12 @@ if(!class_exists('SH_MetaBox')) {
add_meta_box
(
'sh-mbox-videodescription'
,
'Videos'
,
'wp_SexHackMe\SH_MetaBox::load_metabox_video'
,
'sexhack_video'
,
'normal'
,
'default'
);
remove_meta_box
(
'postimagediv'
,
'sexhack_video'
,
'side'
);
add_meta_box
(
'postimagediv'
,
'Video Thumbnail'
,
'post_thumbnail_meta_box'
,
'sexhack_video'
,
'side'
,
'default'
);
// XXX Remove Paid Member Subscription meta boxes
remove_meta_box
(
'pms_post_content_restriction'
,
'sexhack_video'
,
'default'
);
// XXX Remove Members plugin meta box
remove_meta_box
(
'members-cp'
,
'sexhack_video'
,
'default'
);
}
public
static
function
load_metabox_video
(
$post
)
...
...
@@ -102,6 +108,7 @@ if(!class_exists('SH_MetaBox')) {
// Sanitize user input.
$video
->
description
=
sanitize_text_field
(
$_POST
[
'video_description'
]
);
sexhack_log
(
$_POST
);
// Update the meta field in the database.
//update_post_meta( $post_id, 'video_description', $my_data );
sh_save_video
(
$video
);
...
...
This diff is collapsed.
Click to expand it.
includes/class-post_types.php
View file @
deaa6c7b
...
...
@@ -41,6 +41,7 @@ if(!class_exists('SH_PostTypes')) {
'show_ui'
=>
true
,
'show_in_menu'
=>
true
,
// Visibility in admin menu.
'menu_position'
=>
32
,
'menu_icon'
=>
SH_PLUGIN_DIR_URL
.
'img/adv_icon.png'
,
'capability_type'
=>
'post'
,
'hierarchical'
=>
false
,
'publicly_queryable'
=>
true
,
...
...
@@ -82,6 +83,7 @@ if(!class_exists('SH_PostTypes')) {
'show_in_menu'
=>
true
,
'show_in_rest'
=>
true
,
'menu_position'
=>
32
,
'menu_icon'
=>
SH_PLUGIN_DIR_URL
.
'img/porn_icon.png'
,
'capability_type'
=>
'post'
,
// TODO Maybe We should create our own cap type?
// 'capabilities' => array(), // Or just select specific capabilities here
'hierarchical'
=>
true
,
...
...
@@ -89,7 +91,7 @@ if(!class_exists('SH_PostTypes')) {
'rewrite'
=>
false
,
'query_var'
=>
true
,
'has_archive'
=>
true
,
'supports'
=>
array
(
'title'
),
// 'thumbnail',
'editor','excerpt','trackbacks','custom-fields','comments','revisions','author','page-attributes'),
'supports'
=>
array
(
'title'
,
'thumbnail'
),
//
'editor','excerpt','trackbacks','custom-fields','comments','revisions','author','page-attributes'),
'taxonomies'
=>
array
(),
//'category'), // ,'post_tag'), // TODO Shouldn't we have a "video_type" taxonomy for VR or flat?
));
$DEFAULTSLUG
=
get_option
(
'sexhack_gallery_slug'
,
'v'
);
...
...
This diff is collapsed.
Click to expand it.
sexhackme.php
View file @
deaa6c7b
...
...
@@ -609,8 +609,11 @@ if(!class_exists('SexHackMe_Plugin')) {
if
(
WP_DEBUG
===
true
){
// only matched?
//add_action("the_post", 'wp_SexHackMe\debug_rewrite_rules');
sexhack_log
(
"REQUEST: "
.
$_SERVER
[
'REQUEST_URI'
]
.
" QUERY: "
.
$_SERVER
[
'QUERY_STRING'
]
.
"POST:"
);
sexhack_log
(
$_POST
);
}
?>
This diff is collapsed.
Click to expand it.
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