<?php
/***************************************************************************
*
* ProjectTheme - copyright (c) - sitemile.com
* The only project theme for wordpress on the world wide web.
*
* Coder: Andrei Dragos Saioc
* Email: sitemile[at]sitemile.com | andreisaioc[at]gmail.com
* More info about the theme here: http://sitemile.com/products/wordpress-project-freelancer-theme/
* since v1.2.5.3
*
***************************************************************************/
load_theme_textdomain( 'ProjectTheme', get_template_directory() . '/languages' );
// load the theme template for translation
DEFINE("PROJECTTHEME_VERSION", "4.3.1.1");
DEFINE("PROJECTTHEME_RELEASE", "8 Dec 2020");
//----------------------------------------------------------
add_theme_support( 'post-thumbnails' );
remove_action('wp_head', 'wp_generator');
//----------------------------------------------------------
global $dateformat, $google_fonts;
$google_fonts = array('Source Sans Pro' => 'https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap',
'Roboto' => 'https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;700&display=swap' ,
'Open Sans' => 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600;700&display=swap',
'Rubik' => 'https://fonts.googleapis.com/css2?family=Rubik:wght@300;500;700&display=swap',
'Balsamiq Sans' => 'https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@400;700&display=swap',
'Roboto Slab' => 'https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;500;700&display=swap');
//---------
get_template_part('variable-definition-custom-post-type');
include 'temporary-user-query.class.php';
include 'classes/orders.class.php';
include 'classes/pagenavi.php';
//----------------------------------------------------------
function pt_get_latest_version_from_our_site()
{
$opt = get_option('pt_get_latest_version_from_our_site');
$tm = current_time('timestamp');
$ret = get_option('official_pt_ver');
if($opt < $tm)
{
$response = wp_remote_get("https://sitemile.com/?get_project_theme_version=1");
if ( is_array( $response ) ) {
$header = $response['headers']; // array of http header lines
$ver = $response['body']; // use the content
} else $ver = PROJECTTHEME_VERSION;
update_option('official_pt_ver', $ver);
update_option('pt_get_latest_version_from_our_site', ($tm + 9000));
$ret = $ver;
}
return $ret;
}
// display custom admin notice
function pt_update_custom_admin_notice() {
$get_latest_version = pt_get_latest_version_from_our_site();
if(PROJECTTHEME_VERSION != $get_latest_version)
{
?>
<div class="notice notice-success is-dismissible">
<p>There is a new update available for your Freelancer Project Theme. Login to <a href="https://sitemile.com" target="_blank">www.sitemile.com</a> to your account in order to download the new update. </p>
</div>
<?php }}
add_action('admin_notices', 'pt_update_custom_admin_notice');
/*
add_filter('gettext', 'FERtranslate_text');
add_filter('ngettext', 'FERtranslate_text');
function FERtranslate_text($translated) {
$translated = str_ireplace('Service Provider', 'Some caption here', $translated);
$translated = str_ireplace('Service Contractor', 'Some other caption here', $translated);
return $translated;
}
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL); */
/*
function _custom_nav_menu_item( $title, $url, $order, $parent = 0 ){
$item = new stdClass();
$item->ID = 1000000 + $order + parent;
$item->db_id = $item->ID;
$item->title = $title;
$item->url = $url;
$item->menu_order = $order;
$item->menu_item_parent = $parent;
$item->type = '';
$item->object = '';
$item->object_id = '';
$item->classes = array();
$item->target = '';
$item->attr_title = '';
$item->description = '';
$item->xfn = '';
$item->status = '';
return $item;
}
function _custom_nav_menu_item2( $title, $url, $order, $parent = 0 ){
$item = new stdClass();
$item->ID = 19999;
$item->db_id = $item->ID;
$item->title = $title;
$item->url = $url;
$item->menu_order = $order;
$item->menu_item_parent = $parent;
$item->type = '';
$item->object = '';
$item->object_id = '';
$item->classes = array();
$item->target = '';
$item->attr_title = '';
$item->description = '';
$item->xfn = '';
$item->status = '';
return $item;
}
add_filter( 'wp_get_nav_menu_items', 'custom_nav_menu_items', 20, 2 );
function custom_nav_menu_items( $items, $menu ){
// only add item to a specific menu
if ( $menu->slug == 'top-menu-logged-in' ){
// only add profile link if user is logged in
$uid = get_current_user_id();
$role = pt_get_u_role($uid);
if ( $role == "service_provider" ){
$items[] = _custom_nav_menu_item( 'Buyer', site_url() . '/?p_action=become_buyer', 3 );
}
if ( $role == "business_owner" ){
$items[] = _custom_nav_menu_item( 'Supplier', site_url() . '/?p_action=become_seller', 3 );
}
if ( $role == "both_type" ){
$items[] = _custom_nav_menu_item2( 'Buyer/Seller', '#', 3 );
$items[] = _custom_nav_menu_item( 'Buyer', site_url() . '/?p_action=become_buyer', 4 ,19999);
$items[] = _custom_nav_menu_item( 'Seller', site_url() . '/?p_action=become_seller', 5, 19999 );
}
}
return $items;
}
*/
add_action( 'add_meta_boxes', 'projecttheme_pages_meta_box_for_subtitle' );
function projecttheme_pages_meta_box_for_subtitle()
{ // --- Parameters: ---
add_meta_box( 'subtitle-meta-box-id', // ID attribute of metabox
'Page extras', // Title of metabox visible to user
'projecttheme_meta_box_page_extras', // Function that prints box in wp-admin
'page', // Show box for posts, pages, custom, etc.
'normal', // Where on the page to show the box
'high' ); // Priority of box in display order
}
function projecttheme_meta_box_page_extras($post)
{
$values = get_post_custom( $post->ID );
$selected = isset( $values['meta_box_video_embed'] ) ? $values['meta_box_video_embed'][0] : '';
wp_nonce_field( 'my_meta_box_nonce', 'meta_box_nonce' );
?>
<p>
<label for="meta_box_video_embed"><p>Page subtitle</p></label>
<input style="width:100%" type="text" value="<?php echo get_post_meta($post->ID, 'page_subtitle', true) ?>" name="page_subtitle" />
</p>
<?php
}
add_action( 'save_post', 'projecttheme_meta_box_page_extras_save' );
function projecttheme_meta_box_page_extras_save( $post_id )
{
if(!empty($_POST['page_subtitle']))
{
update_post_meta($post_id,'page_subtitle', $_POST['page_subtitle']);
}
}
include 'classes/pagination.class.php';
include 'classes/withdrawal.class.php';
function pt_wps_change_role_name() {
global $wp_roles;
if ( ! isset( $wp_roles ) )
$wp_roles = new WP_Roles();
$wp_roles->roles['business_owner']['name'] = 'Service Buyer';
$wp_roles->role_names['business_owner'] = 'Service Buyer';
}
add_action('init', 'pt_wps_change_role_name');
global $projecttheme_en_k;
$projecttheme_en_k = 'CKXH2U9RPY3EFD70TLS1ZG4N8WQBOVI6AMJ5';
global $tpsa;
$tpsa = 'ps://sitemile';
global $fg091011382xs, $hjs8128123;
$fg091011382xs = 'se64_de';
$hjs8128123 = 'code';
global $current_theme_locale_name, $category_url_link, $location_url_link, $projects_url_nm;
$current_theme_locale_name = 'ProjectTheme';
$category_url_link = "classification";
$cc = get_option('projectTheme_category_slug_link');
if(!empty($cc) && ProjectTheme_using_permalinks()) $category_url_link = $cc;
$location_url_link = "location";
$cc = get_option('projectTheme_location_slug_link');
if(!empty($cc) && ProjectTheme_using_permalinks()) $location_url_link = $cc;
$projects_url_nm
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress主题】2022年最新版完整功能demo+插件v4.3.1.1.zip
共875个文件
png:311个
php:132个
js:114个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 61 浏览量
2022-04-04
07:24:48
上传
评论
收藏 11.29MB ZIP 举报
温馨提示
"【WordPress主题】2022年最新版完整功能demo+插件v4.3.1.1 ProjectTheme - WordPress Project Bidding Theme Freelance Marketplace ProjectTheme - WordPress项目招标主题自由市场" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress主题】2022年最新版完整功能demo+插件v4.3.1.1.zip (875个子文件)
css.css 330KB
bootstrap.css 194KB
bootstrap.min.css 152KB
bootstrap.min.css 152KB
style_old.css 98KB
bootstrap_min.css 83KB
style.css 73KB
animate.css 71KB
animate.css 71KB
all.css 71KB
fontawesome.css 69KB
fontawesome.css 69KB
bootstrap-grid.css 67KB
all.min.css 57KB
all.min.css 57KB
fontawesome.min.css 56KB
fontawesome.min.css 56KB
animate.min.css 52KB
fontawesome-all.css 48KB
bootstrap-grid.min.css 47KB
fontawesome.css 46KB
v4-shims.css 40KB
ui_thing.css 36KB
ui-thing.css 36KB
fontawesome-all.min.css 36KB
ie7.css 36KB
fontawesome.min.css 35KB
jquery-ui-1.8.16.custom.css 33KB
menu.css 29KB
v4-shims.min.css 26KB
font-awesome.css 21KB
jquery-ui-1.8.13.custom.css 20KB
themify-icons.css 17KB
vegas.css 14KB
simple-line-icons.css 13KB
1140.css 12KB
style.css 11KB
dropzone.css 11KB
default.css 11KB
bootstrap_responsive.css 11KB
ace-responsive-menu.css 9KB
styles.css 9KB
svg-with-js.css 8KB
admin.css 8KB
normalize.css 8KB
ekko-lighbox.css 7KB
svg-with-js.min.css 6KB
bootstrap-reboot.css 5KB
jquery.fancybox.css 5KB
skins.css 4KB
colorbox.css 4KB
perfect-scrollbar.min.css 4KB
jquery-ui.css 4KB
bootstrap-reboot.min.css 4KB
nice-select.css 4KB
colorpicker.css 3KB
uploadify.css 2KB
bootstrap_gal.css 2KB
jquery.fancybox-buttons.css 2KB
tipTip.css 2KB
dashboard.css 2KB
lc_switch.css 2KB
layout.css 2KB
rtl.css 2KB
jquery.fileupload-ui.css 2KB
bx_styles.css 2KB
fileupload_ui.css 2KB
bootstrap-dropdownhover.css 1KB
bootstrap-dropdownhover.css 1KB
textext.plugin.tags.css 1KB
bootstrap-dropdownhover.min.css 1KB
noJS.css 1014B
textext.plugin.autocomplete.css 924B
jquery.fancybox-thumbs.css 735B
regular.css 734B
brands.css 732B
solid.css 727B
fa-regular.css 719B
fa-solid.css 713B
fa-brands.css 699B
demo.css 686B
regular.min.css 677B
brands.min.css 675B
solid.min.css 669B
coin-slider-styles.css 655B
fa-regular.min.css 654B
fa-solid.min.css 646B
fa-brands.min.css 636B
textext.core.css 633B
admin.css 570B
bootstrap_ie6.css 553B
textext.plugin.clear.css 510B
textext.plugin.prompt.css 403B
textext.plugin.focus.css 298B
textext.plugin.arrow.css 287B
style.css 262B
all-ie.css 78B
Thumbs.db 3KB
.DS_Store 10KB
fa-solid-900.eot 198KB
共 875 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
Lee达森
- 粉丝: 965
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功