Sources: video-subtitle-pipeline artifacts/beginner-wordpress-user/ - subtitles/: en, zh, bilingual SRT/ASS (100 files) - platform/: youtube SRT + bilibili BCC per video (75 files) - manifests/: per-video manifest.json (25 files) - quality/: quality reports (50 files)
225 lines
22 KiB
Text
225 lines
22 KiB
Text
[Script Info]
|
||
Title: Bilingual Subtitles
|
||
ScriptType: v4.00+
|
||
PlayResX: 1920
|
||
PlayResY: 1080
|
||
ScaledBorderAndShadow: yes
|
||
|
||
[V4+ Styles]
|
||
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
|
||
Style: Original,Noto Sans,44,&H00FFFFFF,&H000000FF,&H00000000,&H80000000,0,0,0,0,100,100,0,0,1,2,1,2,,,36,1
|
||
Style: Translated,Noto Sans CJK SC,60,&H0000FFFF,&H000000FF,&H00000000,&H80000000,-1,0,0,0,100,100,0,0,1,2,1,2,,,86,1
|
||
|
||
[Events]
|
||
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
|
||
Dialogue: 0,0:00:00.00,0:00:02.34,Original,,0,0,0,,In this lesson, we will take a
|
||
Dialogue: 0,0:00:02.34,0:00:05.00,Original,,0,0,0,,closer look at using template parts.
|
||
Dialogue: 0,0:00:00.00,0:00:05.00,Translated,,0,0,0,,在本课中,我们将更仔细地了解如何使用模板部分。
|
||
Dialogue: 0,0:00:05.00,0:00:08.28,Original,,0,0,0,,By the end of this tutorial, you'll be able to
|
||
Dialogue: 0,0:00:08.28,0:00:11.89,Original,,0,0,0,,describe what template parts are, and how they work,
|
||
Dialogue: 0,0:00:05.00,0:00:11.89,Translated,,0,0,0,,在本教程结束时,你将能够描述模板部分是什么,以及它们如何工作,
|
||
Dialogue: 0,0:00:11.89,0:00:14.53,Original,,0,0,0,,edit a template part, and replace
|
||
Dialogue: 0,0:00:14.53,0:00:17.00,Original,,0,0,0,,a template part on a template.
|
||
Dialogue: 0,0:00:11.89,0:00:17.00,Translated,,0,0,0,,编辑一个模板部分,并在模板上替换一个模板部分。
|
||
Dialogue: 0,0:00:17.00,0:00:20.67,Original,,0,0,0,,If you visit a well-designed website, you'll notice
|
||
Dialogue: 0,0:00:20.67,0:00:24.00,Original,,0,0,0,,that one of its strengths is its consistency.
|
||
Dialogue: 0,0:00:17.00,0:00:24.00,Translated,,0,0,0,,如果你访问一个设计良好的网站,你会注意到它的优势之一是其一致性。
|
||
Dialogue: 0,0:00:24.00,0:00:27.04,Original,,0,0,0,,Its headers, footers, and sidebars often
|
||
Dialogue: 0,0:00:27.04,0:00:29.91,Original,,0,0,0,,have the same or very similar content
|
||
Dialogue: 0,0:00:24.00,0:00:29.91,Translated,,0,0,0,,它的页眉、页脚和边栏通常具有相同或非常相似的内容,
|
||
Dialogue: 0,0:00:29.91,0:00:33.48,Original,,0,0,0,,to make it easy for viewers to find the information they
|
||
Dialogue: 0,0:00:33.48,0:00:37.00,Original,,0,0,0,,are looking for, no matter where they are on a website.
|
||
Dialogue: 0,0:00:29.91,0:00:37.00,Translated,,0,0,0,,以便访客无论身处网站的哪个位置,都能轻松找到他们需要的信息。
|
||
Dialogue: 0,0:00:37.00,0:00:39.56,Original,,0,0,0,,To get this effect, do web designers have
|
||
Dialogue: 0,0:00:39.56,0:00:42.30,Original,,0,0,0,,to build their headers, footers, and sidebars
|
||
Dialogue: 0,0:00:42.30,0:00:45.00,Original,,0,0,0,,from scratch on every page in their website?
|
||
Dialogue: 0,0:00:37.00,0:00:41.16,Translated,,0,0,0,,为了实现这种效果,网页设计师是否必须在网站的
|
||
Dialogue: 0,0:00:41.16,0:00:45.00,Translated,,0,0,0,,每个页面上从头开始构建页眉、页脚和边栏?
|
||
Dialogue: 0,0:00:45.00,0:00:49.17,Original,,0,0,0,,The short answer is no. With WordPress block themes,
|
||
Dialogue: 0,0:00:49.17,0:00:53.00,Original,,0,0,0,,you will use a feature known as template parts.
|
||
Dialogue: 0,0:00:45.00,0:00:49.90,Translated,,0,0,0,,简短的回答是不用。使用\hWordPress\h区块主题时,
|
||
Dialogue: 0,0:00:49.90,0:00:53.00,Translated,,0,0,0,,你会使用一个称为模板部分的功能。
|
||
Dialogue: 0,0:00:53.00,0:00:56.00,Original,,0,0,0,,Firstly, what are template parts?
|
||
Dialogue: 0,0:00:53.00,0:00:56.00,Translated,,0,0,0,,首先,什么是模板部分?
|
||
Dialogue: 0,0:00:56.00,0:00:59.65,Original,,0,0,0,,Template parts are groups of blocks that you can
|
||
Dialogue: 0,0:00:59.65,0:01:03.18,Original,,0,0,0,,use to create repeated parts of your template,
|
||
Dialogue: 0,0:00:56.00,0:01:03.18,Translated,,0,0,0,,模板部分是一组区块,你可以用它们来创建模板中重复的部分,
|
||
Dialogue: 0,0:01:03.18,0:01:06.00,Original,,0,0,0,,like the header, footer, and a sidebar.
|
||
Dialogue: 0,0:01:03.18,0:01:06.00,Translated,,0,0,0,,比如页眉、页脚和边栏。
|
||
Dialogue: 0,0:01:06.00,0:01:09.06,Original,,0,0,0,,Let's see this in action when you're
|
||
Dialogue: 0,0:01:09.06,0:01:11.60,Original,,0,0,0,,in your WordPress dashboard,
|
||
Dialogue: 0,0:01:06.00,0:01:11.60,Translated,,0,0,0,,让我们实际操作一下,当你在\hWordPress\h仪表盘中时,
|
||
Dialogue: 0,0:01:11.60,0:01:14.00,Original,,0,0,0,,make your way to appearance, and then click on editor.
|
||
Dialogue: 0,0:01:11.60,0:01:14.00,Translated,,0,0,0,,找到外观,然后点击编辑器。
|
||
Dialogue: 0,0:01:14.00,0:01:16.40,Original,,0,0,0,,This will take us to the site editor,
|
||
Dialogue: 0,0:01:16.40,0:01:19.13,Original,,0,0,0,,and then we'll open up one of our templates,
|
||
Dialogue: 0,0:01:14.00,0:01:19.13,Translated,,0,0,0,,这将带我们进入站点编辑器,然后我们将打开一个模板,
|
||
Dialogue: 0,0:01:19.13,0:01:22.00,Original,,0,0,0,,in this case the blog home template.
|
||
Dialogue: 0,0:01:19.13,0:01:22.00,Translated,,0,0,0,,在这个例子中是博客首页模板。
|
||
Dialogue: 0,0:01:22.00,0:01:25.71,Original,,0,0,0,,And within a template, we create and modify
|
||
Dialogue: 0,0:01:25.71,0:01:29.00,Original,,0,0,0,,our header and footer template parts.
|
||
Dialogue: 0,0:01:22.00,0:01:29.00,Translated,,0,0,0,,在模板内部,我们创建和修改页眉和页脚模板部分。
|
||
Dialogue: 0,0:01:29.00,0:01:32.07,Original,,0,0,0,,Some block themes provide more or fewer options,
|
||
Dialogue: 0,0:01:32.07,0:01:35.69,Original,,0,0,0,,but almost all come pre-packaged with the header and footer
|
||
Dialogue: 0,0:01:29.00,0:01:35.69,Translated,,0,0,0,,有些区块主题提供的选项或多或少,但几乎都预装了页眉和页脚,
|
||
Dialogue: 0,0:01:35.69,0:01:41.00,Original,,0,0,0,,like you see here as part of the 2024 theme.
|
||
Dialogue: 0,0:01:35.69,0:01:41.00,Translated,,0,0,0,,就像你在这里看到的,作为\h2024\h主题的一部分。
|
||
Dialogue: 0,0:01:41.00,0:01:43.36,Original,,0,0,0,,WordPress has made it even more simple
|
||
Dialogue: 0,0:01:43.36,0:01:45.77,Original,,0,0,0,,by providing header and footer patterns
|
||
Dialogue: 0,0:01:41.00,0:01:45.77,Translated,,0,0,0,,WordPress\h通过提供页眉和页脚样板,使其变得更加简单,
|
||
Dialogue: 0,0:01:45.77,0:01:48.00,Original,,0,0,0,,that are ready to be used and modified.
|
||
Dialogue: 0,0:01:45.77,0:01:48.00,Translated,,0,0,0,,这些样板可以直接使用和修改。
|
||
Dialogue: 0,0:01:48.00,0:01:51.39,Original,,0,0,0,,So when you click on the three vertical dots of
|
||
Dialogue: 0,0:01:51.39,0:01:55.00,Original,,0,0,0,,the header template part and select replace header,
|
||
Dialogue: 0,0:01:48.00,0:01:55.00,Translated,,0,0,0,,所以,当你点击页眉模板部分的三个垂直点并选择替换页眉时,
|
||
Dialogue: 0,0:01:55.00,0:01:59.00,Original,,0,0,0,,you will notice at the top existing template parts.
|
||
Dialogue: 0,0:01:55.00,0:01:59.00,Translated,,0,0,0,,你会注意到顶部有现有的模板部分。
|
||
Dialogue: 0,0:01:59.00,0:02:03.00,Original,,0,0,0,,And these are template parts that I've already created.
|
||
Dialogue: 0,0:01:59.00,0:02:03.00,Translated,,0,0,0,,这些是我已经创建的模板部分。
|
||
Dialogue: 0,0:02:03.00,0:02:05.59,Original,,0,0,0,,And then below that, we will find
|
||
Dialogue: 0,0:02:05.59,0:02:08.00,Original,,0,0,0,,header template part patterns.
|
||
Dialogue: 0,0:02:03.00,0:02:08.00,Translated,,0,0,0,,然后在它下面,我们会找到页眉模板部分样板。
|
||
Dialogue: 0,0:02:08.00,0:02:10.64,Original,,0,0,0,,And now of course, you will be able to select
|
||
Dialogue: 0,0:02:08.00,0:02:10.64,Translated,,0,0,0,,当然,现在你将能够选择
|
||
Dialogue: 0,0:02:10.64,0:02:14.00,Original,,0,0,0,,any of these patterns that come with your theme.
|
||
Dialogue: 0,0:02:10.64,0:02:14.00,Translated,,0,0,0,,你的主题附带的任意这些样板。
|
||
Dialogue: 0,0:02:14.00,0:02:19.00,Original,,0,0,0,,And as mentioned, some themes might provide more, some less.
|
||
Dialogue: 0,0:02:14.00,0:02:19.00,Translated,,0,0,0,,如前所述,有些主题可能提供得多一些,有些少一些。
|
||
Dialogue: 0,0:02:19.00,0:02:24.00,Original,,0,0,0,,And this works exactly the same for footers.
|
||
Dialogue: 0,0:02:19.00,0:02:24.00,Translated,,0,0,0,,这对于页脚的工作原理完全相同。
|
||
Dialogue: 0,0:02:24.00,0:02:27.00,Original,,0,0,0,,Let's start by editing a header template part.
|
||
Dialogue: 0,0:02:24.00,0:02:27.00,Translated,,0,0,0,,让我们从编辑一个页眉模板部分开始。
|
||
Dialogue: 0,0:02:27.00,0:02:30.07,Original,,0,0,0,,When you click on edit in the blog toolbar,
|
||
Dialogue: 0,0:02:27.00,0:02:30.07,Translated,,0,0,0,,当你在博客工具栏中点击编辑时,
|
||
Dialogue: 0,0:02:30.07,0:02:32.88,Original,,0,0,0,,you can work on your header template part
|
||
Dialogue: 0,0:02:32.88,0:02:36.00,Original,,0,0,0,,in editing mode without any other distractions.
|
||
Dialogue: 0,0:02:30.07,0:02:36.00,Translated,,0,0,0,,你可以在编辑模式下处理你的页眉模板部分,不受任何其他干扰。
|
||
Dialogue: 0,0:02:36.00,0:02:39.00,Original,,0,0,0,,Firstly, let's open our list view.
|
||
Dialogue: 0,0:02:36.00,0:02:39.00,Translated,,0,0,0,,首先,让我们打开列表视图。
|
||
Dialogue: 0,0:02:39.00,0:02:41.87,Original,,0,0,0,,And then I'll go ahead and add my
|
||
Dialogue: 0,0:02:41.87,0:02:45.00,Original,,0,0,0,,site logo to my header template part.
|
||
Dialogue: 0,0:02:39.00,0:02:45.00,Translated,,0,0,0,,然后我将继续把我的站点标志添加到我的页眉模板部分。
|
||
Dialogue: 0,0:02:45.00,0:02:48.86,Original,,0,0,0,,So once I select the site logo block,
|
||
Dialogue: 0,0:02:45.00,0:02:48.86,Translated,,0,0,0,,所以一旦我选择了站点标志区块,
|
||
Dialogue: 0,0:02:48.86,0:02:51.28,Original,,0,0,0,,I can upload an image from my
|
||
Dialogue: 0,0:02:51.28,0:02:54.00,Original,,0,0,0,,media library or from my computer.
|
||
Dialogue: 0,0:02:48.86,0:02:54.00,Translated,,0,0,0,,我就可以从我的媒体库或电脑上传一张图片。
|
||
Dialogue: 0,0:02:54.00,0:02:57.92,Original,,0,0,0,,Next, I'll select the site title block
|
||
Dialogue: 0,0:02:57.92,0:03:02.00,Original,,0,0,0,,and add the site title for this website.
|
||
Dialogue: 0,0:02:54.00,0:03:02.00,Translated,,0,0,0,,接下来,我将选择站点标题区块并为这个网站添加站点标题。
|
||
Dialogue: 0,0:03:02.00,0:03:05.65,Original,,0,0,0,,Then I will save my header template part
|
||
Dialogue: 0,0:03:05.65,0:03:09.00,Original,,0,0,0,,and return to my blog home template.
|
||
Dialogue: 0,0:03:02.00,0:03:09.00,Translated,,0,0,0,,然后我将保存我的页眉模板部分并返回到我的博客主页模板。
|
||
Dialogue: 0,0:03:09.00,0:03:12.43,Original,,0,0,0,,Just a reminder, template parts are synced
|
||
Dialogue: 0,0:03:12.43,0:03:16.00,Original,,0,0,0,,and will update everywhere it has been used.
|
||
Dialogue: 0,0:03:09.00,0:03:16.00,Translated,,0,0,0,,提醒一下,模板部分是同步的,会在它被使用的所有地方更新。
|
||
Dialogue: 0,0:03:16.00,0:03:19.06,Original,,0,0,0,,You will notice that the color purple
|
||
Dialogue: 0,0:03:19.06,0:03:22.00,Original,,0,0,0,,indicates when a pattern is synced.
|
||
Dialogue: 0,0:03:16.00,0:03:22.00,Translated,,0,0,0,,你会注意到紫色表示一个区块样板何时是同步的。
|
||
Dialogue: 0,0:03:22.00,0:03:23.87,Original,,0,0,0,,Let's go to one of our other
|
||
Dialogue: 0,0:03:23.87,0:03:26.00,Original,,0,0,0,,templates to see this in practice.
|
||
Dialogue: 0,0:03:22.00,0:03:26.00,Translated,,0,0,0,,让我们去另一个模板看看这个的实际效果。
|
||
Dialogue: 0,0:03:26.00,0:03:29.20,Original,,0,0,0,,So when we open our page template for example,
|
||
Dialogue: 0,0:03:26.00,0:03:29.20,Translated,,0,0,0,,所以,例如当我们打开页面模板时,
|
||
Dialogue: 0,0:03:29.20,0:03:32.00,Original,,0,0,0,,we'll see the header is exactly the same.
|
||
Dialogue: 0,0:03:29.20,0:03:32.00,Translated,,0,0,0,,我们会看到页眉是完全一样的。
|
||
Dialogue: 0,0:03:32.00,0:03:35.94,Original,,0,0,0,,Or when we open up our 404 template, we'll see
|
||
Dialogue: 0,0:03:35.94,0:03:39.38,Original,,0,0,0,,that the changes have also applied here
|
||
Dialogue: 0,0:03:32.00,0:03:39.38,Translated,,0,0,0,,或者当我们打开\h404\h模板时,我们会看到更改也应用到了这里,
|
||
Dialogue: 0,0:03:39.38,0:03:42.00,Original,,0,0,0,,because template parts are synced.
|
||
Dialogue: 0,0:03:39.38,0:03:42.00,Translated,,0,0,0,,因为模板部分是同步的。
|
||
Dialogue: 0,0:03:42.00,0:03:43.99,Original,,0,0,0,,What if you wanted a different header
|
||
Dialogue: 0,0:03:43.99,0:03:45.87,Original,,0,0,0,,on say your home page for example,
|
||
Dialogue: 0,0:03:42.00,0:03:45.87,Translated,,0,0,0,,假设你希望主页使用不同的页眉,
|
||
Dialogue: 0,0:03:45.87,0:03:47.96,Original,,0,0,0,,but you would like the rest of your
|
||
Dialogue: 0,0:03:47.96,0:03:50.00,Original,,0,0,0,,website to have a standard header.
|
||
Dialogue: 0,0:03:45.87,0:03:50.00,Translated,,0,0,0,,但希望网站其余部分保留标准页眉。
|
||
Dialogue: 0,0:03:50.00,0:03:53.28,Original,,0,0,0,,In this case, you would want to create a new header
|
||
Dialogue: 0,0:03:53.28,0:03:56.52,Original,,0,0,0,,template part or replace the header with a pattern
|
||
Dialogue: 0,0:03:50.00,0:03:56.52,Translated,,0,0,0,,在这种情况下,你需要创建一个新的页眉模板部分,或用区块样板替换页眉,
|
||
Dialogue: 0,0:03:56.52,0:03:58.97,Original,,0,0,0,,and add it to your blog home template
|
||
Dialogue: 0,0:03:58.97,0:04:01.00,Original,,0,0,0,,or your front page template.
|
||
Dialogue: 0,0:03:56.52,0:04:01.00,Translated,,0,0,0,,然后将其添加到你的博客主页模板或首页模板中。
|
||
Dialogue: 0,0:04:01.00,0:04:04.25,Original,,0,0,0,,I'm going to modify my blog home template
|
||
Dialogue: 0,0:04:01.00,0:04:04.25,Translated,,0,0,0,,我将修改我的博客主页模板,
|
||
Dialogue: 0,0:04:04.25,0:04:09.00,Original,,0,0,0,,as I've selected my posts page as my home page display.
|
||
Dialogue: 0,0:04:04.25,0:04:09.00,Translated,,0,0,0,,因为我已选择文章页面作为我的主页显示。
|
||
Dialogue: 0,0:04:09.00,0:04:11.02,Original,,0,0,0,,So I will make sure I select my header,
|
||
Dialogue: 0,0:04:11.02,0:04:12.80,Original,,0,0,0,,click on the three vertical dots
|
||
Dialogue: 0,0:04:09.00,0:04:12.80,Translated,,0,0,0,,所以我会确保选中页眉,点击三个垂直点,
|
||
Dialogue: 0,0:04:12.80,0:04:15.00,Original,,0,0,0,,and then select replace header.
|
||
Dialogue: 0,0:04:12.80,0:04:15.00,Translated,,0,0,0,,然后选择“替换页眉”。
|
||
Dialogue: 0,0:04:15.00,0:04:17.93,Original,,0,0,0,,And now you can replace your home page header
|
||
Dialogue: 0,0:04:17.93,0:04:21.00,Original,,0,0,0,,by using a pattern or an existing template part.
|
||
Dialogue: 0,0:04:15.00,0:04:21.00,Translated,,0,0,0,,现在你可以使用样板或现有模板部分来替换主页页眉。
|
||
Dialogue: 0,0:04:21.00,0:04:25.67,Original,,0,0,0,,I will replace the header with an existing header template
|
||
Dialogue: 0,0:04:25.67,0:04:30.00,Original,,0,0,0,,part which I've already created called banner header.
|
||
Dialogue: 0,0:04:21.00,0:04:30.00,Translated,,0,0,0,,我将用一个已创建的名为“横幅页眉”的现有页眉模板部分来替换。
|
||
Dialogue: 0,0:04:30.00,0:04:35.00,Original,,0,0,0,,And now my home page will have its own unique header.
|
||
Dialogue: 0,0:04:30.00,0:04:35.00,Translated,,0,0,0,,现在我的主页将拥有自己独特的页眉。
|
||
Dialogue: 0,0:04:35.00,0:04:42.94,Original,,0,0,0,,And once I've saved, we can view our other templates
|
||
Dialogue: 0,0:04:35.00,0:04:42.94,Translated,,0,0,0,,一旦我保存后,我们可以查看其他模板,
|
||
Dialogue: 0,0:04:42.94,0:04:46.78,Original,,0,0,0,,to double check that they still have
|
||
Dialogue: 0,0:04:46.78,0:04:50.00,Original,,0,0,0,,the standard header in place.
|
||
Dialogue: 0,0:04:42.94,0:04:50.00,Translated,,0,0,0,,以再次确认它们仍保留着标准页眉。
|
||
Dialogue: 0,0:04:50.00,0:04:52.62,Original,,0,0,0,,Lastly, let's talk about creating
|
||
Dialogue: 0,0:04:52.62,0:04:55.00,Original,,0,0,0,,a template part from scratch.
|
||
Dialogue: 0,0:04:50.00,0:04:55.00,Translated,,0,0,0,,最后,我们来谈谈如何从头创建一个模板部分。
|
||
Dialogue: 0,0:04:55.00,0:04:58.69,Original,,0,0,0,,Make your way to patterns and
|
||
Dialogue: 0,0:04:58.69,0:05:03.00,Original,,0,0,0,,then scroll down to template parts.
|
||
Dialogue: 0,0:04:55.00,0:05:03.00,Translated,,0,0,0,,前往样板,然后向下滚动到模板部分。
|
||
Dialogue: 0,0:05:03.00,0:05:07.38,Original,,0,0,0,,Here you can view all your existing headers,
|
||
Dialogue: 0,0:05:07.38,0:05:11.00,Original,,0,0,0,,footers and general template parts.
|
||
Dialogue: 0,0:05:03.00,0:05:11.00,Translated,,0,0,0,,在这里你可以查看所有现有的页眉、页脚和通用模板部分。
|
||
Dialogue: 0,0:05:11.00,0:05:13.82,Original,,0,0,0,,To create a new template part,
|
||
Dialogue: 0,0:05:13.82,0:05:17.29,Original,,0,0,0,,click on the plus icon next to patterns
|
||
Dialogue: 0,0:05:11.00,0:05:17.29,Translated,,0,0,0,,要创建新的模板部分,点击区块样板旁边的加号图标,
|
||
Dialogue: 0,0:05:17.29,0:05:21.00,Original,,0,0,0,,and then select create template part.
|
||
Dialogue: 0,0:05:17.29,0:05:21.00,Translated,,0,0,0,,然后选择“创建模板部分”。
|
||
Dialogue: 0,0:05:21.00,0:05:24.14,Original,,0,0,0,,And from here, you can select a general template
|
||
Dialogue: 0,0:05:24.14,0:05:27.17,Original,,0,0,0,,part which is not tied to any particular area,
|
||
Dialogue: 0,0:05:21.00,0:05:27.17,Translated,,0,0,0,,从这里,你可以选择一个不绑定到任何特定区域的通用模板部分,
|
||
Dialogue: 0,0:05:27.17,0:05:31.00,Original,,0,0,0,,a header template part or a footer template part.
|
||
Dialogue: 0,0:05:27.17,0:05:31.00,Translated,,0,0,0,,一个页眉模板部分或一个页脚模板部分。
|
||
Dialogue: 0,0:05:31.00,0:05:35.00,Original,,0,0,0,,In this case, we are going to create a footer template part.
|
||
Dialogue: 0,0:05:31.00,0:05:35.00,Translated,,0,0,0,,在这个例子中,我们将创建一个页脚模板部分。
|
||
Dialogue: 0,0:05:35.00,0:05:37.97,Original,,0,0,0,,So firstly, we need to name it appropriately,
|
||
Dialogue: 0,0:05:37.97,0:05:40.38,Original,,0,0,0,,in this case, a four column footer
|
||
Dialogue: 0,0:05:35.00,0:05:40.38,Translated,,0,0,0,,首先,我们需要给它起个合适的名字,比如叫四列页脚,
|
||
Dialogue: 0,0:05:40.38,0:05:42.71,Original,,0,0,0,,and then we can click create and this
|
||
Dialogue: 0,0:05:42.71,0:05:44.91,Original,,0,0,0,,will take us into focus mode again
|
||
Dialogue: 0,0:05:40.38,0:05:44.91,Translated,,0,0,0,,然后点击创建,这会把我们再次带入专注模式,
|
||
Dialogue: 0,0:05:44.91,0:05:49.00,Original,,0,0,0,,and from here, we can start building from scratch.
|
||
Dialogue: 0,0:05:44.91,0:05:49.00,Translated,,0,0,0,,从这里开始,我们就可以从头开始构建了。
|
||
Dialogue: 0,0:05:49.00,0:05:51.46,Original,,0,0,0,,I'm going to take a shortcut and actually
|
||
Dialogue: 0,0:05:51.46,0:05:54.00,Original,,0,0,0,,grab a pattern from the patterns directory.
|
||
Dialogue: 0,0:05:49.00,0:05:54.00,Translated,,0,0,0,,我打算走个捷径,直接从区块样板目录里抓取一个样板。
|
||
Dialogue: 0,0:05:54.00,0:05:57.68,Original,,0,0,0,,So make your way to WordPress.org,
|
||
Dialogue: 0,0:05:57.68,0:06:01.44,Original,,0,0,0,,click on extend and select patterns
|
||
Dialogue: 0,0:05:54.00,0:06:01.44,Translated,,0,0,0,,所以,请访问\hWordPress.org,点击扩展并选择样板,
|
||
Dialogue: 0,0:06:01.44,0:06:06.00,Original,,0,0,0,,and from here, you can select from thousands of patterns.
|
||
Dialogue: 0,0:06:01.44,0:06:06.00,Translated,,0,0,0,,从这里,你可以从数千个样板中进行选择。
|
||
Dialogue: 0,0:06:06.00,0:06:11.38,Original,,0,0,0,,I will select community contributions, click on footers
|
||
Dialogue: 0,0:06:11.38,0:06:16.00,Original,,0,0,0,,and then you can search for the right pattern.
|
||
Dialogue: 0,0:06:06.00,0:06:16.00,Translated,,0,0,0,,我会选择社区贡献,点击页脚,然后你就可以搜索合适的样板了。
|
||
Dialogue: 0,0:06:16.00,0:06:20.57,Original,,0,0,0,,Once you find a pattern that appeals to you, you can
|
||
Dialogue: 0,0:06:20.57,0:06:25.00,Original,,0,0,0,,copy the pattern, return to your website and paste
|
||
Dialogue: 0,0:06:16.00,0:06:25.00,Translated,,0,0,0,,一旦你找到一个喜欢的样板,就可以复制它,回到你的网站并粘贴,
|
||
Dialogue: 0,0:06:25.00,0:06:31.00,Original,,0,0,0,,and now you can start modifying it to meet your needs.
|
||
Dialogue: 0,0:06:25.00,0:06:31.00,Translated,,0,0,0,,现在你就可以开始修改它以满足你的需求了。
|
||
Dialogue: 0,0:06:31.00,0:06:35.33,Original,,0,0,0,,And once updated, we can return to the patterns area
|
||
Dialogue: 0,0:06:31.00,0:06:35.33,Translated,,0,0,0,,一旦更新完成,我们就可以返回到样板区域,
|
||
Dialogue: 0,0:06:35.33,0:06:37.96,Original,,0,0,0,,and you will notice that your new footer
|
||
Dialogue: 0,0:06:37.96,0:06:40.53,Original,,0,0,0,,is part of your existing template parts
|
||
Dialogue: 0,0:06:35.33,0:06:40.53,Translated,,0,0,0,,你会注意到你的新页脚已成为现有模板部分的一部分,
|
||
Dialogue: 0,0:06:40.53,0:06:44.00,Original,,0,0,0,,and you can add it to any template.
|
||
Dialogue: 0,0:06:40.53,0:06:44.00,Translated,,0,0,0,,并且你可以把它添加到任何模板中。
|
||
Dialogue: 0,0:06:44.00,0:06:48.40,Original,,0,0,0,,When you select manage all template parts, you will
|
||
Dialogue: 0,0:06:48.40,0:06:52.73,Original,,0,0,0,,be able to rename and delete custom template parts
|
||
Dialogue: 0,0:06:44.00,0:06:52.73,Translated,,0,0,0,,当你选择管理所有模板部分时,你将能够重命名和删除自定义模板部分,
|
||
Dialogue: 0,0:06:52.73,0:06:55.86,Original,,0,0,0,,or clear the customizations of template
|
||
Dialogue: 0,0:06:55.86,0:06:59.00,Original,,0,0,0,,parts that were provided by your theme.
|
||
Dialogue: 0,0:06:52.73,0:06:59.00,Translated,,0,0,0,,或者清除由你的主题提供的模板部分的自定义设置。
|
||
Dialogue: 0,0:06:59.00,0:07:02.72,Original,,0,0,0,,I trust you now feel comfortable editing your templates
|
||
Dialogue: 0,0:07:02.72,0:07:06.00,Original,,0,0,0,,and creating a header and footer for your site.
|
||
Dialogue: 0,0:06:59.00,0:07:06.00,Translated,,0,0,0,,我相信你现在已经能自如地编辑模板,并为你的站点创建页眉和页脚了。
|