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
/* | |
* Add our Custom Fields to simple products | |
*/ | |
function mytheme_woo_add_custom_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
// Text Field |
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
<?php | |
/** | |
* ----------------------------------------------------------------------------------------- | |
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
* ----------------------------------------------------------------------------------------- | |
*/ | |
// HTML Minifier | |
function minify_html($input) { |
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
<?php | |
/** | |
* Retrieves an image from a URL and uploads it using ld_handle_upload_from_path. See that function for more details. | |
* | |
* Note: This function should also work for local file paths as well, but the implementation is slightly different than ld_handle_upload_from_path. | |
* | |
* @param $image_url | |
* @param int $attach_to_post | |
* @param bool|true $add_to_media |
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
# Cron jobs for Mautic 2 | |
#* * * * * php /var/www/html/app/console mautic:segments:update | |
#* * * * * php /var/www/html/app/console mautic:campaigns:update | |
#* * * * * php /var/www/html/app/console mautic:campaigns:trigger | |
# Cron jobs for Mautic 3 | |
* * * * * php /var/www/html/bin/console mautic:segments:update | |
* * * * * php /var/www/html/bin/console mautic:campaigns:update | |
* * * * * php /var/www/html/bin/console mautic:campaigns:trigger |
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
Mẫu | |
<iframe height="920" | |
src="https://drive.google.com/viewerng/viewer?url=https://yendung.bacgiang.gov.vn/documents/22815/7173479/1557369706658_gm-5-2019-1.signed-yedung.pdf/101e0b0c-3d45-4177-ba81-6bda676f8c9d?pid=explorer&efh=false&a=v&chrome=false&embedded=true" | |
style="border: none;" width="710"> | |
</iframe> | |
<iframe height="920" | |
src="https://drive.google.com/viewerng/viewer?url={domain}{documentLink}?pid=explorer&efh=false&a=v&chrome=false&embedded=true" | |
style="border: none;" width="710"> | |
</iframe> |
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
[email protected] | |
admin.email.from.name=Test Test | |
liferay.home=/home/portal | |
setup.wizard.enabled=false | |
jdbc.default.username=*** | |
jdbc.default.driverClassName=com.mysql.jdbc.Driver | |
jdbc.default.password=**** | |
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false |
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
/** Convert Syntax **/ | |
select CONVERT(BINARY(CONVERT(tengiaovien USING latin1)) USING utf8) from adoosite_giaovien | |
/** Article Category **/ | |
select | |
catid ArticleCatId, | |
CONVERT(BINARY(CONVERT(title USING latin1)) USING utf8) ArticleCatName, | |
parent ParentID | |
from adoosite_news_cat WHERE active = 1 | |
ORDER BY parent |
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
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
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
#if (!$entries.isEmpty()) | |
<div class="danhsach-tin-lienthong"> | |
#foreach ($entry in $entries) | |
#set($renderer = $entry.getAssetRenderer() ) | |
#set($className = $renderer.getClassName() ) | |
#if( $className == "com.liferay.portlet.journal.model.JournalArticle" ) | |
#set( $journalArticle = $renderer.getArticle() ) | |
#set( $link = $renderer.getURLViewInContext($renderRequest, $renderResponse, '') ) | |
#set( $entryId = $entry.getEntryId() + "" ) |
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
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
Manage multiple hostnames (domains, sub-domains) within a single instance of CodeIgniter. | |
Example: | |
If you had the following domain/sub-domain style for your site: | |
your-domain.com |
NewerOlder