This file contains 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
import React, { useState } from 'react'; | |
import { Document, Page, PDFViewer } from '@react-pdf/renderer'; | |
import { Html } from 'react-pdf-html'; | |
const MyDocument = () => { | |
const html = ` | |
<div> | |
<h1>Heading 1</h1> | |
<h2>Heading 2</h2> | |
<p>This is some introductory text.</p> |
This file contains 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
// src/App.js | |
import React from 'react'; | |
import { pdf, Document, Page, Text,StyleSheet,View } from '@react-pdf/renderer'; | |
import { saveAs } from 'file-saver'; | |
function App() { | |
const styles = StyleSheet.create({ | |
page: { | |
flexDirection: 'row', | |
backgroundColor: '#E4E4E4', |
This file contains 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
<!-- Meta Pixel Code --> | |
<script> | |
!function(f,b,e,v,n,t,s) | |
{if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
n.callMethod.apply(n,arguments):n.queue.push(arguments)}; | |
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; | |
n.queue=[];t=b.createElement(e);t.async=!0; | |
t.src=v;s=b.getElementsByTagName(e)[0]; | |
s.parentNode.insertBefore(t,s)}(window, document,'script', | |
'https://connect.facebook.net/en_US/fbevents.js'); |
This file contains 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 | |
add_action('wp', 'mysialus'); | |
function mysialus(){ | |
if(!is_admin()){ | |
if(!is_user_logged_in()){ | |
if(!is_page(1587)){ | |
wp_redirect( get_permalink(1587)); | |
exit; | |
} | |
} |
This file contains 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('_PS_ADMIN_DIR_')) { | |
define('_PS_ADMIN_DIR_', __DIR__); | |
} | |
include _PS_ADMIN_DIR_.'/../config/config.inc.php'; | |
$id_lang=2; | |
$start=3001; | |
$limit=4000; | |
$order_by='id_product'; |
This file contains 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 ( !empty( $_GET['branch'] ) ) { | |
add_action( 'pre_user_query', 'add_my_custom_queries' ); | |
} | |
$user_query = new WP_User_Query( $arr ); | |
if ( !empty( $_GET['branch'] ) ) { | |
remove_action( 'pre_user_query', 'add_my_custom_queries' ); | |
} | |
function add_my_custom_queries( $query ) { | |
global $wpdb; |
This file contains 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
$combination = new Combination(20);//id_product_attribute add there | |
$combination->price = (float)20; | |
$combination->save(); |
This file contains 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
$product = new Product(3); | |
$product->price = 30; | |
$product->save(); |
This file contains 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
index.php?fc=module&module=MODULE_NAME&controller=CONTROLLER_NAME |
NewerOlder