وضاحت
🇨🇳 🎬 🧱 This Gutenberg block allows for embedding a video in a WordPress post or page. If the user who views the page is in China, a different video will show from users in the rest of the world. This is to appropriately deal with China’s Internet wall which blocks YouTube and other video platforms.
For more information on how to develop this block, please see the github repo.
The plugin has been developed for CNCF and The Linux Foundation.
تصوير
بلاڪس
واحد: هي پلگ ان 1 بلاڪ مهيا ڪري ٿو.
- China Video Block
انسٽاليشن
- Upload the plugin files to the
/wp-content/plugins/china-video-block
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Use the Settings->China Video Block screen to set the IPInfo.io token
- Insert the block into a post or page.
جائزا
تعاون ڪندڙ & ڊولپرز
“China Video Block” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙجمع: “China Video Block” 2 جڳهن ۾ ترجمو ڪيو ويو آهي. ترجمي ڪندڙن جي مهرباني سندن تعاون لاءِ.
ترجمو ڪريو “China Video Block” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.
لاگ تبدیل ڪريو
0.2.5
Fixes PHP Notice “Trying to access array offset on value of type bool”
WordPress 5.8 compatibility
0.2.4
- loads the front-end script using wp_enqueue_script() only when the block is present on the page
0.2.3
- fixed the ver number on the script so that the block doesn’t keep breaking
0.2.2
- added a browser-busting version querystring for the front.js file so that browsers download the new file when it updates
0.2.1
- added compiled build file
0.2.0
- rewrite of the code to favor the China video; the problem was that, when favoring the non-China video, it would produce a failed request for users in China since it was loaded on page load before being changed to the China video
- when the ipinfo call produces and error, no cookie value is now set so that the call can be tried again during a subsequent page load
0.1.0
- First release