Forum Replies Created
-
AuthorPosts
-
FocuxTheme Support
KeymasterCan you help me test this player on your computer https://www.mediaelementjs.com/ ?
Does this player works on your Browser?FocuxTheme Support
KeymasterThe recommended method is that you can add more detail items to the “Additional Information” field on the product editing screen without changing the codes. https://www.dropbox.com/s/1mg8gqx4ns38g85/WechatIMG51.jpg?dl=0
Write the item content format as below
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax Highlighter<dd>xxx: xxxx</dd><dd>xxx: xxxx</dd>- xxx: xxxx
If you want to add an icon, you can write as
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax Highlighter<dd><i class="fa fa-x"></i> xxx: xxx</dd><dd><i class="fa fa-x"></i> xxx: xxx</dd>- xxx: xxx
You can refer the icon usage on https://fontawesome.com
Also, if you want to customize the template instead of the method above. Just activate the child theme, and add the following function to the functions.php
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax Highlighterfunction dgwork_item_details(){global $post;$details='';$append_license = '';$last_updated_date=esc_attr(get_post_meta($post->ID, "_dgwork_last_updated_date", true));$file_type=esc_attr(get_post_meta($post->ID, "_dgwork_custom_file_type", true));$file_size=esc_attr(get_post_meta($post->ID, "_dgwork_file_size", true));$license=esc_attr(get_post_meta($post->ID, "_dgwork_license", true));$requirements=esc_attr(get_post_meta($post->ID, "_dgwork_requirements", true));$custom_license_group = get_post_meta( get_the_ID(), '_dgwork_license_info', true );$additional_details = get_post_meta( get_the_ID(), '_dgwork_additional_details', true );$details.='<aside id="dgwork-product-info" class="widget"><dl><dt>'.esc_html__('Details','dgwork').'</dt>';$categories = get_the_term_list( $post->ID, 'download_category', '', ', ', '' );if ( '' != $categories ){$details.='<dd><i class="fa fa-columns"></i>'.esc_html__('Category','dgwork').': '.$categories.'</dd>';}$details.='<dd><i class="fa fa-calendar"></i>'.esc_html__('Released Date','dgwork').': '.get_the_date().'</dd>';if($last_updated_date!==''){$details.='<dd><i class="fa fa-calendar-o"></i>'.esc_html__('Last Updated','dgwork').': '.$last_updated_date.'</dd>';}if($file_type!==''){$details.='<dd><i class="fa fa-file-zip-o"></i>'.esc_html__('File Types','dgwork').': '.$file_type.'</dd>';}if($file_size!==''){$details.='<dd><i class="fa fa-folder-open-o"></i>'.esc_html__('File Size','dgwork').': '.$file_size.'</dd>';}if(!isset($custom_license_group[0]) || empty($custom_license_group[0]) || $custom_license_group[0]==''){if($license!==''){switch ($license){case 'GPL2':$details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>';break;case 'GPL3':$details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://www.gnu.org/licenses/gpl-3.0.en.html').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>';break;case 'BSD':$details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('http://www.linfo.org/bsdlicense.html').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>';break;case 'ApacheLicense':$details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('http://www.apache.org/licenses/LICENSE-2.0').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>';break;case 'MIT':$details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://opensource.org/licenses/MIT').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>';break;case 'cc':$details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://creativecommons.org/licenses/').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>';break;case 'noCopyright':$details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': '.esc_html__('No Copyright','dgwork').'</dd>';break;default:$details.='';break;}$details.= apply_filters('dgwork_append_preset_license',$append_license);}}else{$details.='<dd class="copyright"><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': ';foreach ( (array) $custom_license_group as $key => $entry ) {$license_name = $license_link = '';if ( isset( $entry['_dgwork_custom_license_name'] ) )$license_name = esc_html( $entry['_dgwork_custom_license_name'] );if ( isset( $entry['_dgwork_custom_license_link'] ) )$license_link = esc_url( $entry['_dgwork_custom_license_link'] );$details.= '<a href="'.esc_url($license_link).'" target="_blank" rel="noopener noreferrer nofollow">'.esc_html($license_name).'</a> ';}$details.='</dd>';}if($requirements!==''){$details.='<dd><i class="fa fa-laptop"></i>'.esc_html__('Requirements','dgwork').': '.esc_html($requirements).'</dd>';}if($additional_details!==''){$details.= $additional_details;}$details.='</dl></aside>';echo wp_kses_post($details);}endif;function dgwork_item_details(){ global $post; $details=''; $append_license = ''; $last_updated_date=esc_attr(get_post_meta($post->ID, "_dgwork_last_updated_date", true)); $file_type=esc_attr(get_post_meta($post->ID, "_dgwork_custom_file_type", true)); $file_size=esc_attr(get_post_meta($post->ID, "_dgwork_file_size", true)); $license=esc_attr(get_post_meta($post->ID, "_dgwork_license", true)); $requirements=esc_attr(get_post_meta($post->ID, "_dgwork_requirements", true)); $custom_license_group = get_post_meta( get_the_ID(), '_dgwork_license_info', true ); $additional_details = get_post_meta( get_the_ID(), '_dgwork_additional_details', true ); $details.='<aside id="dgwork-product-info" class="widget"> <dl> <dt>'.esc_html__('Details','dgwork').'</dt>'; $categories = get_the_term_list( $post->ID, 'download_category', '', ', ', '' ); if ( '' != $categories ){ $details.='<dd><i class="fa fa-columns"></i>'.esc_html__('Category','dgwork').': '.$categories.'</dd>'; } $details.='<dd><i class="fa fa-calendar"></i>'.esc_html__('Released Date','dgwork').': '.get_the_date().'</dd>'; if($last_updated_date!==''){ $details.='<dd><i class="fa fa-calendar-o"></i>'.esc_html__('Last Updated','dgwork').': '.$last_updated_date.'</dd>'; } if($file_type!==''){ $details.='<dd><i class="fa fa-file-zip-o"></i>'.esc_html__('File Types','dgwork').': '.$file_type.'</dd>'; } if($file_size!==''){ $details.='<dd><i class="fa fa-folder-open-o"></i>'.esc_html__('File Size','dgwork').': '.$file_size.'</dd>'; } if(!isset($custom_license_group[0]) || empty($custom_license_group[0]) || $custom_license_group[0]==''){ if($license!==''){ switch ($license){ case 'GPL2': $details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>'; break; case 'GPL3': $details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://www.gnu.org/licenses/gpl-3.0.en.html').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>'; break; case 'BSD': $details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('http://www.linfo.org/bsdlicense.html').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>'; break; case 'ApacheLicense': $details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('http://www.apache.org/licenses/LICENSE-2.0').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>'; break; case 'MIT': $details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://opensource.org/licenses/MIT').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>'; break; case 'cc': $details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': <a href="'.esc_url('https://creativecommons.org/licenses/').'" target="_blank" rel="noopener noreferrer nofollow">'.$license.'</a></dd>'; break; case 'noCopyright': $details.='<dd><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': '.esc_html__('No Copyright','dgwork').'</dd>'; break; default: $details.=''; break; } $details.= apply_filters('dgwork_append_preset_license',$append_license); } }else{ $details.='<dd class="copyright"><i class="fa fa-copyright"></i>'.esc_html__('Licenses','dgwork').': '; foreach ( (array) $custom_license_group as $key => $entry ) { $license_name = $license_link = ''; if ( isset( $entry['_dgwork_custom_license_name'] ) ) $license_name = esc_html( $entry['_dgwork_custom_license_name'] ); if ( isset( $entry['_dgwork_custom_license_link'] ) ) $license_link = esc_url( $entry['_dgwork_custom_license_link'] ); $details.= '<a href="'.esc_url($license_link).'" target="_blank" rel="noopener noreferrer nofollow">'.esc_html($license_name).'</a> '; } $details.='</dd>'; } if($requirements!==''){ $details.='<dd><i class="fa fa-laptop"></i>'.esc_html__('Requirements','dgwork').': '.esc_html($requirements).'</dd>'; } if($additional_details!==''){ $details.= $additional_details; } $details.='</dl></aside>'; echo wp_kses_post($details); } endif;function dgwork_item_details(){ global $post; $details=''; $append_license = ''; $last_updated_date=esc_attr(get_post_meta($post->ID, "_dgwork_last_updated_date", true)); $file_type=esc_attr(get_post_meta($post->ID, "_dgwork_custom_file_type", true)); $file_size=esc_attr(get_post_meta($post->ID, "_dgwork_file_size", true)); $license=esc_attr(get_post_meta($post->ID, "_dgwork_license", true)); $requirements=esc_attr(get_post_meta($post->ID, "_dgwork_requirements", true)); $custom_license_group = get_post_meta( get_the_ID(), '_dgwork_license_info', true ); $additional_details = get_post_meta( get_the_ID(), '_dgwork_additional_details', true ); $details.=''; echo wp_kses_post($details); } endif;
Use get_post_meta($post->ID, ‘custom_field_name’, true); to output the value.
But I don’t recommend this way, because if we will update this part in the future, you may have to change the codes again. So I still recommend the first method.
Thanks
FocuxTheme Support
KeymasterPlease update ThemeVan Toolkit to v1.5.0 via Plugins page in your backend. The pagination issue is fixed.
FocuxTheme Support
KeymasterFirst of all, DGWork v1.8.5 is released, you can update via Appearance > Themes page.
I promise I have tested on Windows 10 (Virtual Machine on Macbook) and it’s Youtube video, because it was playing so that the player buttons will be automatically hidden.
Anyway, although I can’t reproduce the player issue, I tried to update the plyr.js(a player javascript plugin) to the latest version and rewrite the player part.
Now the video player works on my Mac and Win10 chrome. You can see this video https://www.dropbox.com/s/u6jv9ugr6i0zdt3/dgwork-player.mp4?dl=0 This time I purposely show the windows 10 desktop in this video.
Also, in the new version 1.8.5, the header image issue is also fixed.
FocuxTheme Support
KeymasterSo sorry for the delay, because our website cache hasn’t updated, so I missed some new topics.
I will check and fix this issue within 1 hour. You will be able to update ThemeVan Toolkit plugin after I release the new version.
FocuxTheme Support
KeymasterHi
Please also post your domain here, or I can’t log in.
FocuxTheme Support
KeymasterYou are running the latest version of app and plugin.
The slider field and some other fields are dynamically loaded from mobile/config/options/ folder,
the plugin read the json files like home.json, preloading.json (These are the option configuration files)So, if the option doesn’t display, the only reason is that the plugin can’t read the option json files from your local custom URL. Can you read the options file via https://your-custom-url/config/options/home.json?
I think if you deploy the app folder online, the option will be displayed.
Thanks
FocuxTheme Support
KeymasterHi
Please check this screenshot https://www.dropbox.com/s/44gsd7kd7jndmy1/dgwork-playing.png?dl=0
I checked the demo site on Windows + Chrome, the video can be played if click the bottom play button. The youtube player buttons are not clickable.Am I missing anything so that I can’t reproduce this issue?
Thanks
FocuxTheme Support
KeymasterAnother solution to change the header image for the global site, use the following CSS
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax Highlighter#dgwork-page-header{background-image: url(YOUR IMAGE URL);}#dgwork-page-header{ background-image: url(YOUR IMAGE URL); }#dgwork-page-header{ background-image: url(YOUR IMAGE URL); }
For the player issue, is it possible to post temporary WordPress login details via the private reply? I want to check if it’s caused by the plugin.
Thanks
FocuxTheme Support
KeymasterHi
As my understanding, you want to change the header image (Dark and network pattern), right?
You can change the header image from Appearance > Customize > Header image for the global site.
Also, you can set the page header picture for the specific page in the page editing screen.Thanks
-
AuthorPosts