This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* This will hide the topbar on viewer page | |
* put the following css in custom css field of PDF Viewer options page | |
* | |
*/ | |
.toolbar{ | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button#viewOutline { | |
display: none; | |
} | |
button#viewAttachments { | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tnc_change_share_image(){ | |
return 'IMAGE_URL_HERE'; // change to the new image url | |
} | |
add_filter('tnc_pvfw_facebook_share_thumb_url', 'tnc_change_share_image'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tnc_nofollow_pdf_viewer(){ | |
echo '<meta name="robots" content="noindex">'; | |
} | |
add_action('tnc_pvfw_head', 'tnc_nofollow_pdf_viewer'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sort Attribute values in ascending order for specific attributes | |
* @param array $args | |
* @return array return sorted $args array | |
*/ | |
function abd_sort_wc_attribute_values( $args ){ | |
if( $args['attribute'] == "Attribute Name" ){ // replace Attribute Name with your attribute's name | |
$get_options = $args['options']; | |
asort( $get_options ); | |
$args['options'] = $get_options; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sort Attribute values in ascending order for any attribute | |
* @param array $args | |
* @return array return sorted $args array | |
*/ | |
function abd_sort_wc_attribute_values( $args ){ | |
$get_options = $args['options']; | |
asort( $get_options ); | |
$args['options'] = $get_options; | |
return $args; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#toolbarContainer{ | |
font-family: 'Nanum Gothic', sans-serif; // replace with your preferred font family | |
} | |
#sidebarContainer{ | |
font-family: 'Nanum Gothic', sans-serif; // replace with your preferred font family | |
} | |
#secondaryToolbar{ | |
font-family: 'Nanum Gothic', sans-serif; // replace with your preferred font family | |
} | |
input, button, select, label{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array( | |
'America/New_York' => '(GMT-5:00) America/New_York (Eastern Standard Time)', | |
'America/Adak' => '(GMT-10:00) America/Adak (Hawaii-Aleutian Standard Time)', | |
'America/Atka' => '(GMT-10:00) America/Atka (Hawaii-Aleutian Standard Time)', | |
'America/Anchorage' => '(GMT-9:00) America/Anchorage (Alaska Standard Time)', | |
'America/Juneau' => '(GMT-9:00) America/Juneau (Alaska Standard Time)', | |
'America/Nome' => '(GMT-9:00) America/Nome (Alaska Standard Time)', | |
'America/Yakutat' => '(GMT-9:00) America/Yakutat (Alaska Standard Time)', | |
'America/Dawson' => '(GMT-8:00) America/Dawson (Pacific Standard Time)', | |
'America/Ensenada' => '(GMT-8:00) America/Ensenada (Pacific Standard Time)', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$timezone_list = array( | |
'America/New_York' => 'Eastern Standard Time', | |
'America/Adak' => 'Hawaii-Aleutian Standard Time', | |
'America/Atka' => 'Hawaii-Aleutian Standard Time', | |
'America/Anchorage' => 'Alaska Standard Time', | |
'America/Juneau' => 'Alaska Standard Time', | |
'America/Nome' => 'Alaska Standard Time', | |
'America/Yakutat' => 'Alaska Standard Time', | |
'America/Dawson' => 'Pacific Standard Time', | |
'America/Ensenada' => 'Pacific Standard Time', |